summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-03-30 11:24:24 -0500
committerJohn Klug <john.klug@multitech.com>2017-03-30 11:24:24 -0500
commit50fb898d80f1e244cb369589c850f04f414eee6d (patch)
tree859a0f42bcc1a072c797353af2fa3a4aa38a15a4
parent7463028c890f133fe70f1566b5e795ec08bd8f2e (diff)
downloadmeta-multitech-50fb898d80f1e244cb369589c850f04f414eee6d.tar.gz
meta-multitech-50fb898d80f1e244cb369589c850f04f414eee6d.tar.bz2
meta-multitech-50fb898d80f1e244cb369589c850f04f414eee6d.zip
Fix the pre-downloaded rs9113 ipk build3.3.6
-rw-r--r--recipes-kernel/rs9113/rs9113.inc21
1 files changed, 14 insertions, 7 deletions
diff --git a/recipes-kernel/rs9113/rs9113.inc b/recipes-kernel/rs9113/rs9113.inc
index a956ee5..b511029 100644
--- a/recipes-kernel/rs9113/rs9113.inc
+++ b/recipes-kernel/rs9113/rs9113.inc
@@ -22,10 +22,7 @@ python do_fetch_prepend () {
bb.note("export is " + ex)
gt = "git archive -v --remote=git@"
- try:
- gt += d.getVar("MTS_INTERNAL_GIT")
- except TypeError:
- bb.fatal("MTS_INTERNAL_GIT must be in BB_ENV_EXTRAWHITE")
+
gitversion = d.getVar("PV",True)
@@ -35,17 +32,27 @@ python do_fetch_prepend () {
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)
+
+ ipkn = "rs9113-from-src_" + PV + ".0_mtcdt.ipk"
+ bb.note("ipkname is " + ipkn)
+ bb.note ("ipk path is " + DR + "/" + ipkn)
+
+ try:
+ gt += d.getVar("MTS_INTERNAL_GIT")
+ except TypeError:
+ if os.path.isfile(DR + "/" + ipkn):
+ return
+ bb.fatal("Need " + DR + "/" + ipkn + " or set MTS_INTERNAL_GIT and add it to BB_ENV_EXTRAWHITE")
+
gt += ":mlinux/ipk.git " + gitversion
bb.note("git is " + gt)
- tar = "tar -vx --strip-components 1 -C " + DR + " rs9113/rs9113-from-src_"
- tar += PV + ".0_mtcdt.ipk"
+ tar = "tar -vx --strip-components 1 -C " + DR + " rs9113/" + ipkn
bb.note("tar is " + tar)
os.system(ex + ";" + gt + "|" + tar)
}