Skip to content

Commit 4a2ff67

Browse files
Michael Tokarevmichal42
authored andcommitted
kbuild: fix bzImage build for x86
As has been discussed previously (and Sam has been CC'ed), the fix is still incorrect. It replaces "echo -ne" with "/bin/echo -ne", but neither of the two are guaranteed to support the necessary arguments and necessary (hexadecimal) escape sequences. What should be used here is printf(1). The trivial patch below (on top of these kbuild changes) fixes this issue. Signed-Off-By: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 053fe57 commit 4a2ff67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/Makefile.lib‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -f -9 > $@) || \
208208

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

0 commit comments

Comments
 (0)