]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
buildman: Correct CROSS_COMPILE output for sandbox
authorSimon Glass <sjg@chromium.org>
Thu, 2 Mar 2023 13:11:44 +0000 (06:11 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Mar 2023 21:15:14 +0000 (13:15 -0800)
At present, 'buildman -A sandbox' adds the path containing the
toolchain at present. We can assume that this is in the path and
we don't want to set CROSS_COMPILE=/bin/ so change this to align
with what MakeEnvironment() does.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/buildman/toolchain.py

index 688f2e26872600cfb05c30713038391a21e21ae4..8f9130bdcdf6dabad62fac45bf7dc7e64ae65632 100644 (file)
@@ -156,9 +156,8 @@ class Toolchain:
         Returns:
             Value of that environment variable or arguments
         """
-        wrapper = self.GetWrapper()
         if which == VAR_CROSS_COMPILE:
-            return wrapper + os.path.join(self.path, self.cross)
+            return self.GetWrapper() + self.cross
         elif which == VAR_PATH:
             return self.path
         elif which == VAR_ARCH: