mirror of
https://abf.rosa.ru/djam/kernel-6.1.git
synced 2025-02-25 00:02:55 +00:00
Fix building UML on 32 bit (copy hack from non-UML)
This commit is contained in:
parent
6b48b8dafb
commit
88e63d63e7
1 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
%define sublevel 25
|
%define sublevel 25
|
||||||
|
|
||||||
# Release number. Increase this before a rebuild.
|
# Release number. Increase this before a rebuild.
|
||||||
%define rpmrel 5
|
%define rpmrel 6
|
||||||
%define fullrpmrel %{rpmrel}
|
%define fullrpmrel %{rpmrel}
|
||||||
|
|
||||||
%define rpmtag %{disttag}
|
%define rpmtag %{disttag}
|
||||||
|
@ -1064,6 +1064,12 @@ cp .config .config.default
|
||||||
cat %{build_dir}/.config.append >> .config
|
cat %{build_dir}/.config.append >> .config
|
||||||
%kmake oldconfig ARCH=um
|
%kmake oldconfig ARCH=um
|
||||||
diff -u .config.default .config || :
|
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
|
%kmake ARCH=um linux
|
||||||
install -Dm0755 linux %{temp_root}%{_bindir}/linux-uml-%{kver_full}
|
install -Dm0755 linux %{temp_root}%{_bindir}/linux-uml-%{kver_full}
|
||||||
#rm -fv linux
|
#rm -fv linux
|
||||||
|
|
Loading…
Add table
Reference in a new issue