Merge remote-tracking branch 'oe_21/master' into vuplus-3.0
[vuplus_openvuplus_3.0] / meta-bsp / common / recipes / vuplus / vuplus-platform-util.bb
diff --git a/meta-bsp/common/recipes/vuplus/vuplus-platform-util.bb b/meta-bsp/common/recipes/vuplus/vuplus-platform-util.bb
new file mode 100644 (file)
index 0000000..75378db
--- /dev/null
@@ -0,0 +1,39 @@
+SECTION = "base"
+LICENSE = "CLOSED"
+
+PV="15.1"
+PR="${SRCDATE}.${SRCDATE_PR}"
+
+SRC_URI = " \
+    http://archive.vuplus.com/download/build_support/vuplus/platform-util-${MACHINE}-${PV}-${PR}.tar.gz \
+"
+
+S="${WORKDIR}/platform-util-${MACHINE}"
+
+do_install() {
+       install -d ${D}${bindir}
+       install -m 0755 ${S}/* ${D}${bindir}
+}
+
+do_package_qa() {
+}
+
+PACKAGE_ARCH := "${MACHINE_ARCH}"
+FILES_${PN}="/"
+
+inherit update-rc.d
+
+INITSCRIPT_PARAMS = "start 65 S . stop 90 0 ."
+INITSCRIPT_NAME = "${PN}"
+
+SRC_URI += "file://${INITSCRIPT_NAME}.sysvinit"
+
+do_install_append() {
+        if [ -f ${WORKDIR}/${INITSCRIPT_NAME}.sysvinit ]; then
+                install -d ${D}${INIT_D_DIR}
+                install -m 0755 ${WORKDIR}/${INITSCRIPT_NAME}.sysvinit ${D}${INIT_D_DIR}/${INITSCRIPT_NAME}
+        fi
+}
+
+
+