Files
meta-diya/recipes-devtools/usb-gadget-diya/usb-gadget-diya_1.0.bb

32 lines
968 B
BlitzBasic

DESCRIPTION = "Different utilities from Android - corressponding configuration files for using ConfigFS"
SECTION = "console/utils"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = " \
file://usb-gadget-setup \
file://usb-gadget-cleanup \
file://usb-gadget-diya.service \
file://usb-debugging-enabled \
"
S = "${UNPACKDIR}"
inherit systemd
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} = "usb-gadget-diya.service"
PACKAGE_ARCH = "${MACHINE_ARCH}"
do_install() {
install -d ${D}${bindir}
install -d ${D}${sysconfdir}
install -m 0644 ${UNPACKDIR}/usb-debugging-enabled ${D}${sysconfdir}/usb-debugging-enabled
install -m 0755 ${UNPACKDIR}/usb-gadget-setup ${D}${bindir}
install -m 0755 ${UNPACKDIR}/usb-gadget-cleanup ${D}${bindir}
install -D -p -m0644 ${UNPACKDIR}/usb-gadget-diya.service \
${D}${systemd_unitdir}/system/usb-gadget-diya.service
}