summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mts-io-sysfs_0.1.26.bb
blob: 23c8963c8160dc9c20bc2886f4150d97a8bc9e6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
DESCRIPTION = "mts-io sysfs wrapper"
HOMEPAGE = "http://www.multitech.net/"
SECTION = "base"
PRIORITY = "optional"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
inherit update-rc.d

DEPENDS = "libmts"
RDEPENDS_${PN} = "bash"
PR = "r1"

SRCREV = "${PV}"

SRC_URI = "git://git@gitlab.multitech.net/mirrors/mts-io-sysfs;protocol=ssh;branch=master \
           file://mts-io-sysfs.init"

S = "${WORKDIR}/git"

do_configure_append() {
}

do_compile() {
    oe_runmake
}


fakeroot do_install() {
    install -d ${D}${sbindir}
    install -m 0755 ${S}/build/mts-io-sysfs ${D}${sbindir}/mts-io-sysfs
    install -d 0755 ${D}${sysconfdir}/init.d
    install -m 0755 ${WORKDIR}/mts-io-sysfs.init  ${D}${sysconfdir}/init.d/eeprom-config
}


INITSCRIPT_NAME = "eeprom-config"
# Must start after MTS-IO to read the accessory cards.
INITSCRIPT_PARAMS = "start 40 S ."


PACKAGES = "${PN}"

FILES_${PN} += "${libdir}/mts-io-sysfs*"
FILES_${PN} += "${sbindir}/mts-io-sysfs"

# disable this on purpose for dev purposes
do_rm_work() {
    echo "skipping"
}