Skip to content

Commit

Permalink
kbuild: Fix size_append issue for bzip2/lzma kernel
Browse files Browse the repository at this point in the history
The Makefile.lib will call "echo -ne" to append uncompressed kernel size to
bzip2/lzma kernel image.
The "echo" here depends on the shell that /bin/sh pointing to.
On Ubuntu system, the /bin/sh is pointing to dash, which does not support
"echo -e" at all. Use /bin/echo instead of shell echo should always be safe.

Signed-off-by: Alek Du <[email protected]>
Acked-by: WANG Cong <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
alekdu authored and sravnborg committed Oct 11, 2009
1 parent a3ee947 commit 58242b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Makefile.lib
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -f -9 > $@) || \

# Bzip2 and LZMA do not include size in file... so we have to fake that;
# append the size as a 32-bit littleendian number as gzip does.
size_append = echo -ne $(shell \
size_append = /bin/echo -ne $(shell \
dec_size=0; \
for F in $1; do \
fsize=$$(stat -c "%s" $$F); \
Expand Down

0 comments on commit 58242b2

Please sign in to comment.