[kernel] r5868 - dists/exp/linux-2.6/debian/bin

Jurij Smakov jurij-guest at costa.debian.org
Mon Feb 13 08:54:24 UTC 2006


Author: jurij-guest
Date: Mon Feb 13 08:54:23 2006
New Revision: 5868

Added:
   dists/exp/linux-2.6/debian/bin/sparc32-image-postproc   (contents, props changed)
Log:
Add sparc32-image-postproc which will do the
stripping of the sparc32 image.


Added: dists/exp/linux-2.6/debian/bin/sparc32-image-postproc
==============================================================================
--- (empty file)
+++ dists/exp/linux-2.6/debian/bin/sparc32-image-postproc	Mon Feb 13 08:54:23 2006
@@ -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}"



More information about the Kernel-svn-changes mailing list