mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 16:27:27 +00:00
e9ed7ba6b3
Upgrade usb-swithmode to version 2.5.2 and the accompanying usb-switchmode-data to 20170806. Signed-off-by: Marc Ferland <ferlandm@amotus.ca> Signed-off-by: Khem Raj <raj.khem@gmail.com>
28 lines
998 B
BlitzBasic
28 lines
998 B
BlitzBasic
SUMMARY = "A mode switching tool for controlling 'flip flop' (multiple device) USB gear"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
|
|
|
DEPENDS = "libusb1"
|
|
|
|
SRC_URI = "http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2"
|
|
SRC_URI[md5sum] = "16b9a8efa1bf8fbd7d5612757eae4f26"
|
|
SRC_URI[sha256sum] = "abffac09c87eacd78e101545967dc25af7e989745b4276756d45dbf4008a2ea6"
|
|
|
|
inherit pkgconfig systemd
|
|
|
|
SYSTEMD_SERVICE_${PN} = "usb_modeswitch@.service"
|
|
|
|
EXTRA_OEMAKE = "TCL=${bindir}/tclsh"
|
|
|
|
FILES_${PN} = "${bindir} ${sysconfdir} ${nonarch_base_libdir}/udev/usb_modeswitch ${sbindir} ${localstatedir}/lib/usb_modeswitch"
|
|
RDEPENDS_${PN} = "tcl"
|
|
RRECOMMENDS_${PN} = "usb-modeswitch-data"
|
|
|
|
do_install() {
|
|
oe_runmake DESTDIR=${D} install
|
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
|
install -d ${D}/${systemd_unitdir}/system
|
|
install -m 644 ${S}/usb_modeswitch@.service ${D}/${systemd_unitdir}/system
|
|
fi
|
|
}
|