Do not try to build 64-bit kernels for 32-bit systems, for now

This commit is contained in:
Evgenii Shatokhin 2018-07-08 22:54:29 +03:00
parent 16b61b0a03
commit 95d0f2b220

View file

@ -583,6 +583,7 @@ patch -p1 --fuzz=0 < %{SOURCE701}
# Configs
cp %{SOURCE110} .
%if %build_debug
sed -i 's/# CONFIG_DEBUG_INFO is not set/CONFIG_DEBUG_INFO=y\nCONFIG_DEBUG_INFO_DWARF4=y\nCONFIG_GDB_SCRIPTS=y/' \
./kernel-%{arch_suffix}.config
@ -619,6 +620,11 @@ for flav in ${FLAVOURS}; do
make ARCH=%{_arch} oldconfig && \
mv .config arch/x86/configs/%{arch_suffix}_defconfig-${flav} && \
echo "Created arch/x86/configs/%{arch_suffix}_defconfig-${flav}."
# Do not try to build 64-bit kernels for 32-bit systems, for now.
%ifarch %{ix86}
sed -i 's/CONFIG_64BIT=y/# CONFIG_64BIT is not set/' arch/x86/configs/%{arch_suffix}_defconfig-${flav}
%endif
done
# Remove the no longer needed parts of the config files