diff options
author | Martin Roth <martinroth@google.com> | 2015-08-24 11:26:20 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2015-08-25 15:40:44 +0000 |
commit | 1fff0d26f80c9f412a500f40b29bbbd88572febc (patch) | |
tree | 41cfa364f59e8e3e9833a8700475cb81987ee6e9 /util/xcompile | |
parent | 56354d503d89c1e87b7b426a0ec31077b6af0e6e (diff) |
xcompile: Force localization of objdump to C
In testing other localization changes, I found that I couldn't build
anymore because xcompile wasn't picking up my toolchain. I traced it
to the regex comparison of '.*format \(.[a-z0-9-]*\)' to the string
'formato del fichero elf32-i386'. Forcing the localization of
objdump to C before doing the comparison fixes the issue.
Change-Id: I6bed5a9824807dd5bc5a38b711ab47e2af4b0c29
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: http://review.coreboot.org/11304
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Zheng Bao <zheng.bao@amd.com>
Diffstat (limited to 'util/xcompile')
-rwxr-xr-x | util/xcompile/xcompile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 4560771bfe..e712ac34e3 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -103,7 +103,7 @@ testas() { 2>/dev/null || return 1 # Check output content type. - local obj_type="$(${gccprefix}objdump -p $obj_file)" + local obj_type="$(LANG=C LC_ALL= ${gccprefix}objdump -p $obj_file)" local obj_arch="$(expr "$obj_type" : '.*format \(.[a-z0-9-]*\)')" [ "$obj_arch" = "$full_arch" ] || return 1 |