diff options
author | John Klug <john.klug@multitech.com> | 2017-02-22 17:36:26 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-02-22 17:36:26 -0600 |
commit | 1bdbce58c4c6a06513e614521635a059eb65416c (patch) | |
tree | 38bebd605f2fb9159697ff0571d60d2d2d2c5841 /recipes-kernel/rs9113/rs9113.inc | |
parent | f127ab260b01fadfcd9f59a3a1529f4c819ab225 (diff) | |
download | meta-multitech-1bdbce58c4c6a06513e614521635a059eb65416c.tar.gz meta-multitech-1bdbce58c4c6a06513e614521635a059eb65416c.tar.bz2 meta-multitech-1bdbce58c4c6a06513e614521635a059eb65416c.zip |
Add error message to rs9113 recipe
Diffstat (limited to 'recipes-kernel/rs9113/rs9113.inc')
-rw-r--r-- | recipes-kernel/rs9113/rs9113.inc | 11 |
1 files 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 |