Skip to content

Commit fc370ec

Browse files
Josh Huntsravnborg
authored andcommitted
kbuild: add vmlinux to kernel rpm
We are building an automated system to test kernels weekly and need to provide an rpm to our QA dept. We would like to use the ability to create kernel rpms already in the kernel's Makefile, but need the vmlinux file included in the rpm for later debugging. This patch adds a compressed vmlinux to the kernel rpm when doing a make rpm-pkg or binrpm-pkg and upon install places the vmlinux file in /boot. Signed-off-by: Josh Hunt <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]>
1 parent d21d52d commit fc370ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/package/mkspec

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ echo "%endif"
8686
echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$KERNELRELEASE"
8787

8888
echo 'cp .config $RPM_BUILD_ROOT'"/boot/config-$KERNELRELEASE"
89+
90+
echo "%ifnarch ppc64"
91+
echo 'cp vmlinux vmlinux.orig'
92+
echo 'bzip2 -9 vmlinux'
93+
echo 'mv vmlinux.bz2 $RPM_BUILD_ROOT'"/boot/vmlinux-$KERNELRELEASE.bz2"
94+
echo 'mv vmlinux.orig vmlinux'
95+
echo "%endif"
96+
8997
echo ""
9098
echo "%clean"
9199
echo '#echo -rf $RPM_BUILD_ROOT'

0 commit comments

Comments
 (0)