summaryrefslogtreecommitdiffstats
path: root/recipes-ti/beagleboard/beaglebone-capes.bb
blob: 2a9f1fb2fded9f92278904256d9f03e511a466b0 (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
DESCRIPTION = "Userspace setup for beaglebone capes"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"

PR = "r2"

inherit allarch

SRC_URI = "file://cape.service \
           file://cape.sh \
           file://cape-stop.sh \
          "

do_install() {
	install -d ${D}${base_libdir}/systemd/system/
	install -m 0644 ${WORKDIR}/cape.service ${D}${base_libdir}/systemd/system

	install -d ${D}${base_libdir}/systemd/system/basic.target.wants
	ln -sf ../cape.service ${D}${base_libdir}/systemd/system/basic.target.wants/

	install -d ${D}${bindir}
	install -m 0755 ${WORKDIR}/cape*.sh ${D}${bindir}
}

FILES_${PN} += "${base_libdir}/systemd/system"