summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113/rs9113.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/rs9113/rs9113.inc')
-rw-r--r--recipes-kernel/rs9113/rs9113.inc11
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