提交 58531b0c 编写于 作者: L Laurent Vivier 提交者: Michael Ellerman

powerpc/boot: allow wrapper to work on non-english system

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: NLaurent Vivier <laurent@vivier.eu>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 6c308215
...@@ -154,7 +154,7 @@ if [ -z "$kernel" ]; then ...@@ -154,7 +154,7 @@ if [ -z "$kernel" ]; then
kernel=vmlinux kernel=vmlinux
fi 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 case "$elfformat" in
elf64-powerpcle) format=elf64lppc ;; elf64-powerpcle) format=elf64lppc ;;
elf64-powerpc) format=elf32ppc ;; elf64-powerpc) format=elf32ppc ;;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册