summaryrefslogtreecommitdiff
path: root/scripts/bin_size
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-05 21:17:15 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-08 17:16:22 -0700
commitd3dd3b5a29bb9582957451531fed461628dfc834 (patch)
tree1c9961963861552a1a4759c27cc624a3098da860 /scripts/bin_size
parent0b4eb462da10f832b28d518abffa4d77805928a0 (diff)
kbuild: allow compressors (gzip, bzip2, lzma) to take multiple inputs
Allow the compression commands in Kbuild (i.e. gzip, bzip2, lzma) to take multiple input files and emit the concatenated compressed output. This avoids an intermediate step when a kernel image is built from multiple components, such as the relocatable x86-32 kernel. Sam Ravnborg integrated the bin_size script into the Makefile. [ Impact: new build feature, not yet used ] Signed-off-by: H. Peter Anvin <hpa@zytor.com> Acked-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/bin_size')
-rw-r--r--scripts/bin_size10
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/bin_size b/scripts/bin_size
deleted file mode 100644
index 43e1b360cee..00000000000
--- a/scripts/bin_size
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-if [ $# = 0 ] ; then
- echo Usage: $0 file
-fi
-
-size_dec=`stat -c "%s" $1`
-size_hex_echo_string=`printf "%08x" $size_dec |
- sed 's/\(..\)\(..\)\(..\)\(..\)/\\\\x\4\\\\x\3\\\\x\2\\\\x\1/g'`
-/bin/echo -ne $size_hex_echo_string