From 88e63d63e70af0a9589dc1bc0da6b9bd11142dbb Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Mon, 16 Mar 2020 19:38:59 +0300 Subject: [PATCH] Fix building UML on 32 bit (copy hack from non-UML) --- kernel.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel.spec b/kernel.spec index dad954b..aa662c2 100644 --- a/kernel.spec +++ b/kernel.spec @@ -11,7 +11,7 @@ %define sublevel 25 # Release number. Increase this before a rebuild. -%define rpmrel 5 +%define rpmrel 6 %define fullrpmrel %{rpmrel} %define rpmtag %{disttag} @@ -1064,6 +1064,12 @@ cp .config .config.default cat %{build_dir}/.config.append >> .config %kmake oldconfig ARCH=um diff -u .config.default .config || : +# Looks like 'make oldconfig' removes '# CONFIG_64BIT is not set' for some +# reason. For now, let us restore it. +%ifarch %{ix86} +sed -i 's/CONFIG_64BIT=y//' .config +echo '# CONFIG_64BIT is not set' >> .config +%endif %kmake ARCH=um linux install -Dm0755 linux %{temp_root}%{_bindir}/linux-uml-%{kver_full} #rm -fv linux