mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-04 06:54:36 +02:00
tcmode: add unset or nonexistant EXTERNAL_TOOLCHAIN check
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
@@ -85,6 +85,10 @@ python toolchain_metadata_setup () {
|
||||
l.finalize()
|
||||
oe_import(l)
|
||||
|
||||
external_toolchain = l.getVar('EXTERNAL_TOOLCHAIN', True)
|
||||
if not external_toolchain or not os.path.exists(external_toolchain):
|
||||
bb.fatal("Error: EXTERNAL_TOOLCHAIN must be set to the path to your sourcery toolchain")
|
||||
|
||||
if os.path.exists(bb.data.expand('${EXTERNAL_TOOLCHAIN}/bin/gcc', l)):
|
||||
d.setVar('TOOLCHAIN_PATH_ADD', '')
|
||||
populate_toolchain_links(l)
|
||||
|
||||
Reference in New Issue
Block a user