Skip to content

Commit

Permalink
kbuild/mkspec: Simplify vmlinux.bz2 creation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Borislav Petkov authored and Michal Marek committed Apr 27, 2015
1 parent b787f68 commit 92f43c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/package/mkspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 92f43c4

Please sign in to comment.