Skip to contentSkip to conversation

buildman: Correct CROSS_COMPILE output for sandbox

PATCH In review Simon Glass 1 participant 2 messages Mar 2, 2023 – Mar 8, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildman: Correct CROSS_COMPILE output for sandbox

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.

---

 tools/buildman/toolchain.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
tools/buildman/toolchain.py +1 -2
index ea1ad1bcb83..664143b1aea 100644
@@ -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:
Signature · 1 line
2.40.0.rc0.216.gc4246ad0f0-goog
#1 lore raw

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.

---

 tools/buildman/toolchain.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Applied to u-boot-dm/next, thanks!