Add sparc32-image-postproc which will do the

stripping of the sparc32 image.

svn path=/dists/exp/linux-2.6/; revision=5868
This commit is contained in:
Jurij Smakov 2006-02-13 08:54:23 +00:00
parent 973bd8d5c6
commit 427e94ab59
1 changed files with 10 additions and 0 deletions

10
debian/bin/sparc32-image-postproc vendored Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# It is a bit cumbersome here. Since we are executed when
# the image is already installed and in place, we must
# unpack it, then strip it, then gzip it again.
image_dest="${IMAGE_TOP}/boot/vmlinuz-${version}"
image_temp="$(mktemp)"
gzip -dc "${image_dest}" > "${image_temp}"
strip -R .comment -R .note -K sun4u_init -K _end -K _start "${image_temp}"
gzip -9c "${image_temp}" > "${image_dest}"
rm -rf "${image_temp}"