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.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 () {