From 95d0f2b220dc62e5fa2bf83c65250fada3952658 Mon Sep 17 00:00:00 2001 From: Evgenii Shatokhin Date: Sun, 8 Jul 2018 22:54:29 +0300 Subject: [PATCH] Do not try to build 64-bit kernels for 32-bit systems, for now --- kernel.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel.spec b/kernel.spec index 649f451..6d0201d 100644 --- a/kernel.spec +++ b/kernel.spec @@ -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