summaryrefslogtreecommitdiff
path: root/scripts/package
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2015-04-19 00:05:14 +0200
committerMichal Marek <mmarek@suse.cz>2015-04-27 14:16:35 +0200
commit92f43c452c5313a7914eab2b08d966a6c5007baa (patch)
tree7fdd9f4e808188ea9e3f14c231e8f2a98643bebe /scripts/package
parentb787f68c36d49bb1d9236f403813641efa74a031 (diff)
downloadlinux-rpi-92f43c452c5313a7914eab2b08d966a6c5007baa.tar.gz
linux-rpi-92f43c452c5313a7914eab2b08d966a6c5007baa.tar.bz2
linux-rpi-92f43c452c5313a7914eab2b08d966a6c5007baa.zip
kbuild/mkspec: Simplify vmlinux.bz2 creation
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>
Diffstat (limited to 'scripts/package')
-rwxr-xr-xscripts/package/mkspec4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/package/mkspec b/scripts/package/mkspec
index d9ab94b17de0..89f9669d4f00 100755
--- a/scripts/package/mkspec
+++ b/scripts/package/mkspec
@@ -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