diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2018-11-30 20:43:36 -0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2018-11-30 17:12:36 -0800 |
| commit | f29268ee21106dfd9f578088745c43aa5e6ed3a3 (patch) | |
| tree | 853ad416cd3f3056b59e94f55a0b361879d92e52 /meta-oe/recipes-support/libusbgx/libusbgx_git.bb | |
| parent | ebc7b9e20ac22f6f2ad373621917f53e8a9af81c (diff) | |
| download | meta-openembedded-f29268ee21106dfd9f578088745c43aa5e6ed3a3.tar.gz | |
libusbgx: Add recipe
The libusbgx allow easier use and setup of USB gadgets. To easy
integration on different systems a libusbgx-config package is provided
so it can be used to start and enable respective USB gadget schema.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libusbgx/libusbgx_git.bb')
| -rw-r--r-- | meta-oe/recipes-support/libusbgx/libusbgx_git.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libusbgx/libusbgx_git.bb b/meta-oe/recipes-support/libusbgx/libusbgx_git.bb new file mode 100644 index 0000000000..d73ca61060 --- /dev/null +++ b/meta-oe/recipes-support/libusbgx/libusbgx_git.bb | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | SUMMARY = "USB Gadget neXt Configfs Library" | ||
| 2 | LICENSE = "GPLv2 & LGPLv2.1" | ||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 4 | file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c" | ||
| 5 | |||
| 6 | DEPENDS = "libconfig" | ||
| 7 | |||
| 8 | inherit autotools pkgconfig systemd update-rc.d | ||
| 9 | |||
| 10 | PV = "0.2.0+git${SRCPV}" | ||
| 11 | SRCREV = "45c14ef4d5d7ced0fbf984208de44ced6d5ed898" | ||
| 12 | SRCBRANCH = "master" | ||
| 13 | SRC_URI = " \ | ||
| 14 | git://github.com/libusbgx/libusbgx.git;branch=${SRCBRANCH} \ | ||
| 15 | file://gadget-start \ | ||
| 16 | file://usbgx.initd \ | ||
| 17 | file://usbgx.service \ | ||
| 18 | " | ||
| 19 | |||
| 20 | S = "${WORKDIR}/git" | ||
| 21 | |||
| 22 | SYSTEMD_PACKAGES = "${PN}" | ||
| 23 | SYSTEMD_SERVICE_${PN} = "usbgx.service" | ||
| 24 | |||
| 25 | INITSCRIPT_NAME = "usbgx" | ||
| 26 | INITSCRIPT_PARAMS = "defaults" | ||
| 27 | |||
| 28 | EXTRA_OECONF = "--includedir=${includedir}/usbgx" | ||
| 29 | |||
| 30 | do_install_append() { | ||
| 31 | install -Dm 0755 ${WORKDIR}/gadget-start ${D}/${bindir}/gadget-start | ||
| 32 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
| 33 | install -Dm 0644 ${WORKDIR}/usbgx.service ${D}${systemd_system_unitdir}/usbgx.service | ||
| 34 | fi | ||
| 35 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | ||
| 36 | install -Dm 0755 ${WORKDIR}/usbgx.initd ${D}${sysconfdir}/init.d/usbgx | ||
| 37 | fi | ||
| 38 | } | ||
| 39 | |||
| 40 | RDEPENDS_${PN} += "libusbgx-config" | ||
