summaryrefslogtreecommitdiff
path: root/recipes-core/multitech/cell-radio-fwswitch_1.0.bb
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-08-25 19:34:07 -0500
committerJohn Klug <john.klug@multitech.com>2017-09-14 17:28:58 -0500
commit0905bccd773c060999563665b873a06255cb03f8 (patch)
tree8645d8e743036040b049efc57e387db93b7eda89 /recipes-core/multitech/cell-radio-fwswitch_1.0.bb
parentb0f3ba090fd0335a1260f378c990c5aadca7d21f (diff)
downloadmeta-mlinux-0905bccd773c060999563665b873a06255cb03f8.tar.gz
meta-mlinux-0905bccd773c060999563665b873a06255cb03f8.tar.bz2
meta-mlinux-0905bccd773c060999563665b873a06255cb03f8.zip
Initial integration of cell-radio-fwswitch
Diffstat (limited to 'recipes-core/multitech/cell-radio-fwswitch_1.0.bb')
-rw-r--r--recipes-core/multitech/cell-radio-fwswitch_1.0.bb34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-core/multitech/cell-radio-fwswitch_1.0.bb b/recipes-core/multitech/cell-radio-fwswitch_1.0.bb
new file mode 100644
index 0000000..8c19029
--- /dev/null
+++ b/recipes-core/multitech/cell-radio-fwswitch_1.0.bb
@@ -0,0 +1,34 @@
+DESCRIPTION = "Radio firmware switching functionality for dual image units (only LNA3 radios for now)"
+SECTION = "base"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+PR = "r1"
+
+RDEPENDS_${PN} = "radio-query radio-cmd"
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "cell-radio-fwswitch"
+INITSCRIPT_PARAMS = "start 63 5 ."
+
+SRC_URI = "\
+ file://cell-radio-fwswitch.default \
+ file://cell-radio-fwswitch.init \
+ file://cell-radio-fwswitch.sh \
+"
+
+do_install () {
+ install -d ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/cell-radio-fwswitch.init ${D}${sysconfdir}/init.d/cell-radio-fwswitch
+
+ install -d ${D}${sysconfdir}/default
+ install -m 0644 ${WORKDIR}/cell-radio-fwswitch.default ${D}${sysconfdir}/default/cell-radio-fwswitch
+
+ install -d ${D}${sbindir}
+ install -m 0755 ${WORKDIR}/cell-radio-fwswitch.sh ${D}${sbindir}/cell-radio-fwswitch
+}
+
+do_install_append_mtcap() {
+ # enable cell-radio-fwswitch init script on boot for MTCAP
+ sed -i 's/ENABLED="no"/ENABLED="yes"/g' ${D}${sysconfdir}/default/cell-radio-fwswitch
+}