Patchwork [2/3] external-csl-toolchain: skip parsing if CSL_VER_MAIN isn't set

login
register
mail settings
Submitter Joshua Lock
Date Feb. 22, 2012, 1:46 a.m.
Message ID <1a900bc54bca64ea4a28fbd6fcd2b9b4469c567f.1329875013.git.josh@linux.intel.com>
Download mbox | patch
Permalink /patch/21521/
State Accepted
Commit 264d1254e5ac11613af06c0f1c53c736f54e9f54
Headers show

Comments

Joshua Lock - Feb. 22, 2012, 1:46 a.m.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
 meta/recipes-core/meta/external-csl-toolchain.bb |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/recipes-core/meta/external-csl-toolchain.bb b/meta/recipes-core/meta/external-csl-toolchain.bb
index d15578b..07c3e30 100644
--- a/meta/recipes-core/meta/external-csl-toolchain.bb
+++ b/meta/recipes-core/meta/external-csl-toolchain.bb
@@ -150,3 +150,11 @@  FILES_linux-libc-headers = "${includedir}/asm* \
 "
 FILES_gdbserver = "${bindir}/gdbserver ${libdir}/bin/sysroot-gdbserver"
 FILES_gdbserver-dbg = "${bindir}/.debug/gdbserver"
+
+CSL_VER_MAIN ??= ""
+
+python () {
+    if not d.getVar("CSL_VER_MAIN"):
+	raise bb.parse.SkipPackage("External CSL toolchain not configured (CSL_VER_MAIN not set).")
+}
+