2014-06-17 14:25:45 +00:00
|
|
|
SUMMARY = "small utility to set configuration of USB2514 hub chip on the sysmo-odu"
|
|
|
|
HOMEPAGE = ""
|
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://${WORKDIR}/usb2514.c;beginline=1;endline=18;md5=3b8421a1c05d21add65cc20fccfa29cd"
|
|
|
|
DEPENDS += "lmsensors-apps"
|
|
|
|
|
2015-11-01 14:32:42 +00:00
|
|
|
PR = "r4"
|
2014-07-18 07:53:26 +00:00
|
|
|
|
2014-06-17 14:25:45 +00:00
|
|
|
SRC_URI = "file://usb2514.c \
|
|
|
|
file://gpio_usb2514 \
|
2014-12-19 17:09:39 +00:00
|
|
|
file://odu-gpiotool \
|
2014-06-17 14:25:45 +00:00
|
|
|
file://i2c-dev.h \
|
|
|
|
file://usb2514.service \
|
|
|
|
"
|
|
|
|
|
|
|
|
SRC_URI[md5sum] = ""
|
|
|
|
SRC_URI[sha256sum] = ""
|
|
|
|
|
|
|
|
do_compile() {
|
|
|
|
${CC} -o ${WORKDIR}/usb2514 ${WORKDIR}/usb2514.c
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
install -d ${D}${bindir}/
|
|
|
|
install -m 0755 ${WORKDIR}/usb2514 ${D}${bindir}/
|
|
|
|
install -m 0755 ${WORKDIR}/gpio_usb2514 ${D}${bindir}/
|
2014-12-19 17:09:39 +00:00
|
|
|
install -m 0755 ${WORKDIR}/odu-gpiotool ${D}${bindir}/
|
2017-07-24 14:31:57 +00:00
|
|
|
install -d ${D}${systemd_system_unitdir}/multi-user.target.wants/
|
|
|
|
install -m 0644 /${WORKDIR}/usb2514.service ${D}${systemd_system_unitdir}/
|
|
|
|
ln -sf ../usb2514.service ${D}${systemd_system_unitdir}/multi-user.target.wants/
|
2014-06-17 14:25:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
FILES_${PN} += "${systemd_unitdir}"
|