diff options
author | Josh Hunt <josh@scalex86.org> | 2009-02-11 21:10:57 -0800 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-02-15 12:50:08 +0100 |
commit | fc370ecfdb37b853bd8e2118c7ad9f99fa9ac5cd (patch) | |
tree | aa4e98a688c0db69bbf082c41aa29b5e916f41e9 /scripts | |
parent | d21d52d4a155e36d4dc93d642cd52cb63f7ef91b (diff) | |
download | kernel_samsung_espresso10-fc370ecfdb37b853bd8e2118c7ad9f99fa9ac5cd.zip kernel_samsung_espresso10-fc370ecfdb37b853bd8e2118c7ad9f99fa9ac5cd.tar.gz kernel_samsung_espresso10-fc370ecfdb37b853bd8e2118c7ad9f99fa9ac5cd.tar.bz2 |
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 <josh@scalex86.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/package/mkspec | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/package/mkspec b/scripts/package/mkspec index 2500886..ee448cd 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -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' |