005cba778f5b038e3438c13dadab8611e6a6ce4e
[vuplus_openvuplus_3.0] / meta-bsp / recipes-vuplus / vuplus-platform-util / vuplus-platform-util.inc
1 SECTION = "base"
2 LICENSE = "CLOSED"
3
4 PROVIDES += "vuplus-platform-util"
5 RPROVIDES_${PN} += "vuplus-platform-util"
6
7 PV="15.1"
8 PR="${SRCDATE}.${SRCDATE_PR}"
9
10 SRC_URI = " \
11     http://archive.vuplus.com/download/build_support/vuplus/platform-util-${MACHINE}-${PV}-${PR}.tar.gz \
12     file://${INITSCRIPT_NAME}.sysvinit \
13 "
14
15 S="${WORKDIR}/platform-util-${MACHINE}"
16
17 do_install() {
18         install -d ${D}${bindir}
19         install -m 0755 ${S}/* ${D}${bindir}
20 }
21
22 do_package_qa() {
23 }
24
25 PACKAGE_ARCH := "${MACHINE_ARCH}"
26 FILES_${PN}="/"
27
28 inherit update-rc.d
29
30 INITSCRIPT_PARAMS = "start 65 S . stop 90 0 ."
31 INITSCRIPT_NAME = "vuplus-platform-util"
32
33 do_install_append() {
34         if [ -f ${WORKDIR}/${INITSCRIPT_NAME}.sysvinit ]; then
35                 install -d ${D}${INIT_D_DIR}
36                 install -m 0755 ${WORKDIR}/${INITSCRIPT_NAME}.sysvinit ${D}${INIT_D_DIR}/${INITSCRIPT_NAME}
37         fi
38 }
39
40 INSANE_SKIP_${PN} = "already-stripped"
41