kbuild/mkspec: Simplify vmlinux.bz2 creation
authorBorislav Petkov <bp@suse.de>
Sat, 18 Apr 2015 22:05:14 +0000 (00:05 +0200)
committerMichal Marek <mmarek@suse.cz>
Mon, 27 Apr 2015 12:16:35 +0000 (14:16 +0200)
No need for the intermediary vmlinux.orig - bzip2 can keep the original
files used for compression with --keep.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/package/mkspec

index d9ab94b17de0bc119a6fbf3958886d1735085fdf..89f9669d4f0070fcaa694814341a7adb48fdc814 100755 (executable)
@@ -111,10 +111,8 @@ echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$KERNELRELEASE"
 echo 'cp .config $RPM_BUILD_ROOT'"/boot/config-$KERNELRELEASE"
 
 echo "%ifnarch ppc64"
-echo 'cp vmlinux vmlinux.orig'
-echo 'bzip2 -9 vmlinux'
+echo 'bzip2 -9 --keep vmlinux'
 echo 'mv vmlinux.bz2 $RPM_BUILD_ROOT'"/boot/vmlinux-$KERNELRELEASE.bz2"
-echo 'mv vmlinux.orig vmlinux'
 echo "%endif"
 
 if ! $PREBUILT; then