mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
icecc.bbclass: Fix STAGING_BINDIR_TOOLCHAIN usage
STAGING_BINDIR_TOOLCHAIN is actually a path list, not a single path. Fix icecc.bbclass to try all the paths in the variable instead of treating it as a single path. (From OE-Core rev: 8db0d3c14c166265b740030c208e0e19a0b2a1c6) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6d0d577767
commit
b20373e72d
@@ -210,15 +210,14 @@ def icecc_get_tool(bb, d, tool):
|
||||
else:
|
||||
ice_dir = d.expand('${STAGING_BINDIR_TOOLCHAIN}')
|
||||
target_sys = d.expand('${TARGET_SYS}')
|
||||
tool_bin = os.path.join(ice_dir, "%s-%s" % (target_sys, tool))
|
||||
if os.path.isfile(tool_bin):
|
||||
return tool_bin
|
||||
else:
|
||||
external_tool_bin = icecc_get_external_tool(bb, d, tool)
|
||||
if os.path.isfile(external_tool_bin):
|
||||
return external_tool_bin
|
||||
else:
|
||||
return ""
|
||||
for p in ice_dir.split(':'):
|
||||
tool_bin = os.path.join(p, "%s-%s" % (target_sys, tool))
|
||||
if os.path.isfile(tool_bin):
|
||||
return tool_bin
|
||||
external_tool_bin = icecc_get_external_tool(bb, d, tool)
|
||||
if os.path.isfile(external_tool_bin):
|
||||
return external_tool_bin
|
||||
return ""
|
||||
|
||||
def icecc_get_and_check_tool(bb, d, tool):
|
||||
# Check that g++ or gcc is not a symbolic link to icecc binary in
|
||||
|
||||
Reference in New Issue
Block a user