From 1bdbce58c4c6a06513e614521635a059eb65416c Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 22 Feb 2017 17:36:26 -0600 Subject: Add error message to rs9113 recipe --- recipes-kernel/rs9113/rs9113.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/recipes-kernel/rs9113/rs9113.inc b/recipes-kernel/rs9113/rs9113.inc index 3b722cf..a956ee5 100644 --- a/recipes-kernel/rs9113/rs9113.inc +++ b/recipes-kernel/rs9113/rs9113.inc @@ -31,8 +31,15 @@ python do_fetch_prepend () { PV = gitversion PV += "-" - PV += d.getVar("MLINUX_KERNEL_VERSION",True) - PV += d.getVar("MLINUX_KERNEL_EXTRA_VERSION",True) + try: + PV += d.getVar("MLINUX_KERNEL_VERSION",True) + except TypeError: + bb.fatal("MLINUX_KERNEL_VERSION missing from conf/local.conf, usually put there by setup.sh") + + try: + PV += d.getVar("MLINUX_KERNEL_EXTRA_VERSION",True) + except TypeError: + bb.fatal("MLINUX_KERNEL_EXTRA_VERSION missing from conf/local.conf, usually put there by setup.sh") bb.note("PV is " + PV) gt += ":mlinux/ipk.git " + gitversion -- cgit v1.2.3