blob: 99d0e4cb337cb34f2710be07db6c8899bcb8f99e (
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
|
SUMMARY = "USB Gadget neXt Configfs Library"
LICENSE = "GPLv2 & LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c"
inherit autotools pkgconfig systemd
DEPENDS = "libconfig"
EXTRA_OECONF = "--includedir=${includedir}/usbgx"
PV = "0.1.0+git${SRCPV}"
SRCREV = "566993a7647ed5cb36098f27084fd2d5d1f0f017"
SRCBRANCH = "os_descriptors"
SRC_URI = " \
git://github.com/toradex/libusbgx.git;branch=${SRCBRANCH} \
file://usbg.service \
file://g1.schema \
"
S = "${WORKDIR}/git"
do_install_append () {
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/usbg.service ${D}${systemd_unitdir}/system
fi
install -d ${D}${sysconfdir}/usbg/
install -m 0644 ${WORKDIR}/g1.schema ${D}${sysconfdir}/usbg/g1.schema
}
NATIVE_SYSTEMD_SUPPORT = "1"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "usbg.service"
PACKAGES =+ "${PN}-examples"
FILES_${PN}-examples = " \
${bindir}/gadget-* \
${bindir}/show-gadgets \
${bindir}/show-udcs \
${systemd_unitdir}/system/usbg.service \
${sysconfdir}/usbg/g1.schema \
"
|