aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-galileo/galileo-target/galileo-target_0.1.bb
blob: 0706672cccb459d735efb449954ef02ccf70d1c9 (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
DESCRIPTION = "Clanton Software Sketch Framework"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"

SRC_URI = "file://galileo-target.tar.bz2 \
           file://launcher.sh \
           file://galileo-target.service \
           file://galileo_target_1.0.1_upgrade.patch \
           file://usb_improv_patch-1.patch \
           file://autodetect_pins_galileo.patch \
           file://galileo-sketch-reset.service"

INSTALLDIR = "/opt/cln/galileo"
FILES_${PN} += "${INSTALLDIR} \
                ${systemd_unitdir}/system/"
FILES_${PN}-dbg += "${INSTALLDIR}/.debug"

RDEPENDS_${PN} = "dmidecode"

do_compile() {
	make
}

do_install() {
	oe_runmake install DESTDIR=${D}/

        install -d ${D}${sysconfdir}
        install -m 0755 ${WORKDIR}/launcher.sh ${D}${INSTALLDIR}/

        install -d ${D}${systemd_unitdir}/system
        install -m 0644 ${WORKDIR}/galileo-target.service ${D}${systemd_unitdir}/system/
        install -m 0644 ${WORKDIR}/galileo-sketch-reset.service ${D}${systemd_unitdir}/system/
}

inherit systemd
SYSTEMD_SERVICE_${PN} = "galileo-target.service galileo-sketch-reset.service"