summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113/rs9113.inc
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-12-11 11:54:40 -0600
committerJohn Klug <john.klug@multitech.com>2020-06-21 04:09:32 -0500
commit60d8beda66a3767306236f931de5a30af430efa6 (patch)
tree73a0cb8fdd6d6a0369d892dd0e99f11b40fd1279 /recipes-kernel/rs9113/rs9113.inc
parentd0c53bea1ee4a9e1d1706cd62bec1d658f3cd444 (diff)
downloadmeta-multitech-60d8beda66a3767306236f931de5a30af430efa6.tar.gz
meta-multitech-60d8beda66a3767306236f931de5a30af430efa6.tar.bz2
meta-multitech-60d8beda66a3767306236f931de5a30af430efa6.zip
Add new package rs9113-rm to remove rs9113 packages from devices with no rs9113 part
Diffstat (limited to 'recipes-kernel/rs9113/rs9113.inc')
-rw-r--r--recipes-kernel/rs9113/rs9113.inc14
1 files changed, 12 insertions, 2 deletions
diff --git a/recipes-kernel/rs9113/rs9113.inc b/recipes-kernel/rs9113/rs9113.inc
index be7c994..1eb4629 100644
--- a/recipes-kernel/rs9113/rs9113.inc
+++ b/recipes-kernel/rs9113/rs9113.inc
@@ -8,8 +8,10 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
# noarch contains the init script and configuration for the driver and
# the firmware file (firmware/*.rps).
-PACKAGES = "${PN}-utils-extra ${PN}-misc kernel-module-${PN} ${PN}-util ${PN}-dbg ${PN}-noarch ${PN}-autostart ${PN}-btclonly"
+PACKAGES = "${PN}-rm {PN}-utils-extra ${PN}-misc kernel-module-${PN} ${PN}-util ${PN}-dbg ${PN}-noarch ${PN}-autostart ${PN}-btclonly"
ALLOW_EMPTY_${PN}-autostart = "1"
+
+PACKAGE_ARCH_${PN}-rm = "all"
PACKAGE_ARCH_${PN}-noarch = "all"
PACKAGE_ARCH_${PN}-misc = "all"
PACKAGE_ARCH_${PN}-autostart = "all"
@@ -26,9 +28,14 @@ ALLOW_EMPTY_${PN}-btclonly = "1"
DR = "${DL_DIR}/rs9113-ipk"
FILESEXTRAPATHS_append := "${DR}:"
-INITSCRIPT_PACKAGES = "${PN}-autostart"
+INITSCRIPT_PACKAGES = "${PN}-autostart ${PN}-rm"
INITSCRIPT_NAME_${PN}-autostart = "rs9113"
INITSCRIPT_PARAMS_${PN}-autostart = "start 50 S ."
+
+# ${PN}-rm must start after mts-io driver is loaded.
+INITSCRIPT_NAME_${PN}-rm = "mts-rm-rs9113"
+INITSCRIPT_PARAMS_${PN}-rm = "start 39 S ."
+
RDEPENDS_${PN}-autostart = "${PN}-noarch"
BB_STRICT_CHECKSUM = "0"
@@ -87,6 +94,8 @@ python do_fetch_prepend () {
os.system(ex + ";" + gt + "|" + tar)
}
+FILES_${PN}-rm = "${sysconfdir}/init.d/mts-rm-rs9113"
+
# Required drivers for Bluetooth and WiFi
FILES_kernel-module-${PN} = " \
/opt/rs9113/*.ko \
@@ -160,6 +169,7 @@ do_install () {
install -m 0755 ${MR}/wpa_supplicant ${D}/opt/rs9113/init.d
install -m 0755 ${MR}/rs9113.init ${D}${sysconfdir}/init.d/rs9113
install -m 0644 ${MR}/rs9113.default ${D}${sysconfdir}/default/rs9113
+ install -m 0755 ${MR}/mts-rm-rs9113 ${D}${sysconfdir}/init.d/mts-rm-rs9113
}
python do_cleanall_prepend () {