linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add vmlinux to kernel rpm
@ 2009-01-23  0:16 Josh Hunt
  0 siblings, 0 replies; only message in thread
From: Josh Hunt @ 2009-01-23  0:16 UTC (permalink / raw)
  To: sam; +Cc: linux-kernel, linux-kbuild, kiran

Adds compressed vmlinux to rpm when doing "make {rpm-pkg,binrpm-pkg}".
Installs vmlinux.bz2 to /boot.

Signed-off-by: Josh Hunt <josh@scalex86.org>

Index: linux-2.6.28/scripts/package/mkspec
===================================================================
--- linux-2.6.28.orig/scripts/package/mkspec    2008-12-24
15:26:37.000000000 -0800
+++ linux-2.6.28/scripts/package/mkspec    2009-01-21
16:53:03.000000000 -0800
@@ -86,6 +86,14 @@ echo "%endif"
 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 'mv vmlinux.bz2
$RPM_BUILD_ROOT'"/boot/vmlinux-$KERNELRELEASE.bz2"
+echo 'mv vmlinux.orig vmlinux'
+echo "%endif"
+
 echo ""
 echo "%clean"
 echo '#echo -rf $RPM_BUILD_ROOT' 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-23  1:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-23  0:16 [PATCH] Add vmlinux to kernel rpm Josh Hunt

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).