tcmode-external-sourcery: make failure to extract the sysroot fatal

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2012-07-29 13:47:53 -04:00
parent e8e3508084
commit 24d3e7a797

View File

@@ -75,7 +75,8 @@ python toolchain_metadata_setup () {
stderr=subprocess.PIPE,
env={"PATH": l.getVar('PATH', True)})[0].rstrip()
except bb.process.CmdError as exc:
bb.warn(str(exc))
bb.fatal(str(exc))
d.setVar('EXTERNAL_TOOLCHAIN_SYSROOT', toolchain_sysroot)
if os.path.exists(bb.data.expand('${EXTERNAL_TOOLCHAIN}/bin/gcc', l)):