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:
parent
973bd8d5c6
commit
427e94ab59
|
@ -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}"
|
Loading…
Reference in New Issue