linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/boot: allow wrapper to work on non-english system
@ 2015-11-05 11:31 Laurent Vivier
  2015-11-26 12:15 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: Laurent Vivier @ 2015-11-05 11:31 UTC (permalink / raw)
  To: benh, paulus; +Cc: linuxppc-dev, linux-kernel, Laurent Vivier

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>
---
 arch/powerpc/boot/wrapper | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper
index 3f50c27..1c0b6ec 100755
--- a/arch/powerpc/boot/wrapper
+++ b/arch/powerpc/boot/wrapper
@@ -137,7 +137,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	;;
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: powerpc/boot: allow wrapper to work on non-english system
  2015-11-05 11:31 [PATCH] powerpc/boot: allow wrapper to work on non-english system Laurent Vivier
@ 2015-11-26 12:15 ` Michael Ellerman
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2015-11-26 12:15 UTC (permalink / raw)
  To: Laurent Vivier, benh, paulus; +Cc: linuxppc-dev, linux-kernel, Laurent Vivier

On Thu, 2015-05-11 at 11:31:34 UTC, Laurent Vivier wrote:
> 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>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/58531b0c800fd514f04ae42b

cheers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-26 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-05 11:31 [PATCH] powerpc/boot: allow wrapper to work on non-english system Laurent Vivier
2015-11-26 12:15 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).