From 20c8a729e38865412f931c42fb0c155c902aeea3 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Wed, 15 Aug 2012 17:12:40 -0700 Subject: [PATCH] tcmode: add unset or nonexistant EXTERNAL_TOOLCHAIN check Signed-off-by: Christopher Larson --- conf/distro/include/tcmode-external-sourcery.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/distro/include/tcmode-external-sourcery.inc b/conf/distro/include/tcmode-external-sourcery.inc index 341994a..d3d708d 100644 --- a/conf/distro/include/tcmode-external-sourcery.inc +++ b/conf/distro/include/tcmode-external-sourcery.inc @@ -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)