meta-netmodule-distro/recipes-tools/nmhw-fwupdate/nmhw-fwupdate.bb

38 lines
933 B
BlitzBasic

SUMMARY = "Generic NetModule Update tool"
DESCRIPTION = "Generic NetModule update tool for firmware, bootloaders, etc"
AUTHOR = "Alexandre Bard"
SECTION = "core"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c"
RDEPENDS:${PN} = " \
wget \
bash \
coreutils \
expect \
"
SRC_URI = " \
git://gitlab.com/netmodule/tools/nmhw-fwupdate.git;user=git;protocol=ssh;;branch=master \
"
SRCREV ?= "68b84ce457e8cd4a59e2f366114edf0098acbe4d"
S = "${WORKDIR}/git/src"
FILES:${PN} = " \
/lib \
/usr \
"
inherit allarch
do_install () {
install -d ${D}/usr/bin
install -m 0755 nmhw-fwupdate.sh ${D}/usr/bin/nmhw-fwupdate
install -m 0755 list-devices.sh ${D}/usr/bin/list-devices
install -d ${D}/usr/lib
install -m 0755 lib-nmhw/* ${D}/usr/lib/
}