[PATCH] kbuild: rpm-pkg: Disable vmlinux.bz2 for ppc64 and ppc64le
Yi Li
liyiadam at gmail.com
Tue May 22 18:45:57 AEST 2018
petitboot bootloader cannot load vmlinux.bz2.
Signed-off-by: Yi Li <liyiadam at gmail.com>
---
scripts/package/mkspec | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/package/mkspec b/scripts/package/mkspec
index e05646d..e4146ec 100755
--- a/scripts/package/mkspec
+++ b/scripts/package/mkspec
@@ -93,8 +93,10 @@ $M make %{?_smp_mflags} INSTALL_MOD_PATH=%{buildroot} KBUILD_SRC= modules_instal
make %{?_smp_mflags} INSTALL_HDR_PATH=%{buildroot}/usr KBUILD_SRC= headers_install
cp System.map %{buildroot}/boot/System.map-$KERNELRELEASE
cp .config %{buildroot}/boot/config-$KERNELRELEASE
+ %ifnarch ppc64 ppc64le
bzip2 -9 --keep vmlinux
mv vmlinux.bz2 %{buildroot}/boot/vmlinux-$KERNELRELEASE.bz2
+ %endif
$S$M rm -f %{buildroot}/lib/modules/$KERNELRELEASE/build
$S$M rm -f %{buildroot}/lib/modules/$KERNELRELEASE/source
$S$M mkdir -p %{buildroot}/usr/src/kernels/$KERNELRELEASE
--
1.8.3.1
More information about the Linuxppc-dev
mailing list