[SeaBIOS] [PATCH] Fix layoutrom step on i18n-equipped systems

Patrick Georgi pgeorgi at google.com
Mon Dec 1 22:56:09 CET 2014

objdump output parsing expects C locale strings
and formatting. Make sure it gets what it requires.

Signed-off-by: Patrick Georgi <pgeorgi at google.com>
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index eecb8a1..9191509 100644
--- a/Makefile
+++ b/Makefile
@@ -158,9 +158,9 @@ $(OUT)romlayout16.lds: $(OUT)ccode32flat.o $(OUT)code32seg.o $(OUT)ccode16.o $(O
 	$(Q)$(CC) $(CFLAGS32FLAT) -c $(OUT)version.c -o $(OUT)version.o
 	$(Q)$(LD) $(LD32BIT_FLAG) -r $(OUT)ccode32flat.o $(OUT)version.o -o $(OUT)code32flat.o
 	$(Q)$(LD) $(LD32BIT_FLAG) -r $(OUT)ccode16.o $(OUT)romlayout.o -o $(OUT)code16.o
-	$(Q)$(OBJDUMP) -thr $(OUT)code32flat.o > $(OUT)code32flat.o.objdump
-	$(Q)$(OBJDUMP) -thr $(OUT)code32seg.o > $(OUT)code32seg.o.objdump
-	$(Q)$(OBJDUMP) -thr $(OUT)code16.o > $(OUT)code16.o.objdump
+	$(Q)LC_ALL=C $(OBJDUMP) -thr $(OUT)code32flat.o > $(OUT)code32flat.o.objdump
+	$(Q)LC_ALL=C $(OBJDUMP) -thr $(OUT)code32seg.o > $(OUT)code32seg.o.objdump
+	$(Q)LC_ALL=C $(OBJDUMP) -thr $(OUT)code16.o > $(OUT)code16.o.objdump
 	$(Q)$(PYTHON) ./scripts/layoutrom.py $(OUT)code16.o.objdump $(OUT)code32seg.o.objdump $(OUT)code32flat.o.objdump $(OUT)$(KCONFIG_AUTOHEADER) $(OUT)romlayout16.lds $(OUT)romlayout32seg.lds $(OUT)romlayout32flat.lds
 # These are actually built by scripts/layoutrom.py above, but by pulling them

More information about the SeaBIOS mailing list