Fix building UML on 32 bit (copy hack from non-UML)

This commit is contained in:
Mikhail Novosyolov 2020-03-16 19:38:59 +03:00
parent 6b48b8dafb
commit 88e63d63e7

View file

@ -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