summaryrefslogtreecommitdiff
path: root/recipes-bsp/gpio-export/gpio-export_1.0.bb
blob: 392382af179cac2fbcd87c7c3a4e64bec6a03bd1 (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
SUMMARY = "Scripts and systemd service file to export unused GPIO to Userspace"
LICENSE = "PD"
PR = "r2"

inherit systemd

SRC_URI = " \
    file://gpio-export.sh \
    file://gpio-export.service \
    file://COPYING \
"

LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING;md5=1c3a7fb45253c11c74434676d84fe7dd"

do_install () {
    install -d ${D}/${bindir}
    install -m 0755 ${WORKDIR}/*.sh ${D}/${bindir}

    install -d ${D}${systemd_unitdir}/system/
    install -m 0644 ${WORKDIR}/gpio-export.service ${D}${systemd_unitdir}/system
}

SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "gpio-export.service"

PACKAGE_ARCH = "${MACHINE_ARCH}"