]> git.sur5r.net Git - u-boot/blobdiff - tools/buildman/toolchain.py
genconfig.py: Print defconfig next to warnings
[u-boot] / tools / buildman / toolchain.py
index 5cf97ac8148e290804ab240937abf52e2d45bd4d..2076323d5d39825f17b0460d09ce3dd383bc50b3 100644 (file)
@@ -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