summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-03-02 06:11:44 -0700
committerSimon Glass <sjg@chromium.org>2023-03-08 13:15:14 -0800
commitbd0a548ad4a155fec29473d4cc8e135832926973 (patch)
treece673fe6f511d292ff481e029d30f5be1f3b9bfd
parent00d54ae8f4ea17af90dee294f326a156a00cb4ba (diff)
downloadu-boot-bd0a548ad4a155fec29473d4cc8e135832926973.tar.gz
u-boot-bd0a548ad4a155fec29473d4cc8e135832926973.tar.bz2
u-boot-bd0a548ad4a155fec29473d4cc8e135832926973.zip
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. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--tools/buildman/toolchain.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py
index 688f2e2687..8f9130bdcd 100644
--- a/tools/buildman/toolchain.py
+++ b/tools/buildman/toolchain.py
@@ -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: