linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kbuild/mkspec: Simplify vmlinux.bz2 creation
@ 2015-04-18 22:05 Borislav Petkov
  2015-04-22 14:28 ` Michal Marek
  0 siblings, 1 reply; 2+ messages in thread
From: Borislav Petkov @ 2015-04-18 22:05 UTC (permalink / raw)
  To: LKML; +Cc: Michal Marek, linux-kbuild

From: Borislav Petkov <bp@suse.de>

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>
Cc: Michal Marek <mmarek@suse.cz>
Cc: linux-kbuild@vger.kernel.org
---
 scripts/package/mkspec | 4 +---
 1 file changed, 1 insertion(+), 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
-- 
2.3.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kbuild/mkspec: Simplify vmlinux.bz2 creation
  2015-04-18 22:05 [PATCH] kbuild/mkspec: Simplify vmlinux.bz2 creation Borislav Petkov
@ 2015-04-22 14:28 ` Michal Marek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2015-04-22 14:28 UTC (permalink / raw)
  To: Borislav Petkov; +Cc: LKML, linux-kbuild

On Sun, Apr 19, 2015 at 12:05:14AM +0200, Borislav Petkov wrote:
> From: Borislav Petkov <bp@suse.de>
> 
> 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>
> Cc: Michal Marek <mmarek@suse.cz>
> Cc: linux-kbuild@vger.kernel.org

Applied to kbuild.git#misc. I will push it after v4.1-rc1 becomes
available, though.

Michal

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-22 14:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-18 22:05 [PATCH] kbuild/mkspec: Simplify vmlinux.bz2 creation Borislav Petkov
2015-04-22 14:28 ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).