mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
buildman: disable localized and unicode output of all build tools
Build tools like Make, gcc or binutils support localized output or unicode encoded output dependent on the default system locale. This is not useful for buildman, where we want reproducible warning or error messages or where the output of binutils is further processed. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
parent
fe67eaccd0
commit
b0e994c29e
1 changed files with 5 additions and 1 deletions
|
@ -144,7 +144,9 @@ class Toolchain:
|
|||
"""Returns an environment for using the toolchain.
|
||||
|
||||
Thie takes the current environment and adds CROSS_COMPILE so that
|
||||
the tool chain will operate correctly.
|
||||
the tool chain will operate correctly. This also disables localized
|
||||
output and possibly unicode encoded output of all build tools by
|
||||
adding LC_ALL=C.
|
||||
|
||||
Args:
|
||||
full_path: Return the full path in CROSS_COMPILE and don't set
|
||||
|
@ -159,6 +161,8 @@ class Toolchain:
|
|||
env['CROSS_COMPILE'] = wrapper + self.cross
|
||||
env['PATH'] = self.path + ':' + env['PATH']
|
||||
|
||||
env['LC_ALL'] = 'C'
|
||||
|
||||
return env
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue