mirror of
https://abf.rosa.ru/djam/kernel-6.7-xanmod.git
synced 2025-02-24 17:42:49 +00:00
Handle the case when CONFIG_64BIT gets removed
'#CONFIG_64BIT is not set' is present in the template config for i586 but it seems to be removed somehow when preparing the actual config. I haven't investigated why and how. For now, let us simply restore it.
This commit is contained in:
parent
95d0f2b220
commit
4c120bba95
1 changed files with 7 additions and 3 deletions
10
kernel.spec
10
kernel.spec
|
@ -612,18 +612,22 @@ CONFIG_DIR=arch/x86/configs
|
|||
mkdir -p "${CONFIG_DIR}"
|
||||
|
||||
for flav in ${FLAVOURS}; do
|
||||
cfg_file=arch/x86/configs/%{arch_suffix}_defconfig-${flav}
|
||||
echo "Creating configuration file for \"$flav\" kernel."
|
||||
cp ./kernel-%{arch_suffix}.config .config
|
||||
# Make sure a newline is at the end of the basic part of the config.
|
||||
echo >> .config
|
||||
cat ./kernel-${flav}-%{arch_suffix}.config >> .config
|
||||
make ARCH=%{_arch} oldconfig && \
|
||||
mv .config arch/x86/configs/%{arch_suffix}_defconfig-${flav} && \
|
||||
echo "Created arch/x86/configs/%{arch_suffix}_defconfig-${flav}."
|
||||
mv .config ${cfg_file} && \
|
||||
echo "Created ${cfg_file}."
|
||||
|
||||
# Do not try to build 64-bit kernels for 32-bit systems, for now.
|
||||
# Looks like something might have removed '# CONFIG_64BIT is not set' from
|
||||
# the config, let us restore it.
|
||||
%ifarch %{ix86}
|
||||
sed -i 's/CONFIG_64BIT=y/# CONFIG_64BIT is not set/' arch/x86/configs/%{arch_suffix}_defconfig-${flav}
|
||||
sed -i 's/CONFIG_64BIT=y//' ${cfg_file}
|
||||
echo '# CONFIG_64BIT is not set' >> ${cfg_file}
|
||||
%endif
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue