]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc/boot: allow wrapper to work on non-english system
authorLaurent Vivier <laurent@vivier.eu>
Thu, 5 Nov 2015 11:31:34 +0000 (12:31 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Nov 2015 11:11:16 +0000 (22:11 +1100)
if the language is not english objdump output is not parsed correctly
and format is "". Later, "ld -m $format" fails.

This patch adds "LANG=C" to force english output for objdump.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/wrapper

index ceaa75d5a684330aa58246c3991fc2954f4ac353..6a19fcef5596fa7ae5211b27cdc59b4562995d72 100755 (executable)
@@ -154,7 +154,7 @@ if [ -z "$kernel" ]; then
     kernel=vmlinux
 fi
 
-elfformat="`${CROSS}objdump -p "$kernel" | grep 'file format' | awk '{print $4}'`"
+LANG=C elfformat="`${CROSS}objdump -p "$kernel" | grep 'file format' | awk '{print $4}'`"
 case "$elfformat" in
     elf64-powerpcle)   format=elf64lppc        ;;
     elf64-powerpc)     format=elf32ppc ;;