From 65ea5940ac90c1a7550747c755556e272aaf6d0d Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Tue, 25 Feb 2020 16:58:58 +0100 Subject: [PATCH] nmhw-fwupdate: add netmodule firmware updater nmhw-fwupdate provides a generic way to install or update any given firmware packages (e.g. gnss, lte modem, bootloaders, ...). this package is added to all image types in the netmodule linux reference distro. BugzID: 61471 Signed-off-by: Patrick Zysset --- recipes-core/images/netmodule-linux-image.bb | 1 + recipes-core/nmhw-fwupdate/nmhw-fwupdate.bb | 30 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 recipes-core/nmhw-fwupdate/nmhw-fwupdate.bb diff --git a/recipes-core/images/netmodule-linux-image.bb b/recipes-core/images/netmodule-linux-image.bb index 0f26958..da6d3b3 100644 --- a/recipes-core/images/netmodule-linux-image.bb +++ b/recipes-core/images/netmodule-linux-image.bb @@ -55,6 +55,7 @@ IMAGE_INSTALL_append = " \ ${FIRMWARE} \ wireless-regdb-static \ udev-rules-nmhw \ + nmhw-fwupdate \ " IMAGE_INSTALL_append_am335x-nrhw16 = " \ diff --git a/recipes-core/nmhw-fwupdate/nmhw-fwupdate.bb b/recipes-core/nmhw-fwupdate/nmhw-fwupdate.bb new file mode 100644 index 0000000..73a3137 --- /dev/null +++ b/recipes-core/nmhw-fwupdate/nmhw-fwupdate.bb @@ -0,0 +1,30 @@ +SUMMARY = "Generic NetModule Update tool" +DESCRIPTION = "Generic NetModule update tool for firmware, bootloaders, etc" +AUTHOR = "Alexandre Bard" + +SECTION = "core" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +SRC_URI = " \ + git://git.netmodule.intranet/nmos/nm-updater.git;user=gitea;protocol=ssh;user=gitea;protocol=ssh \ + " +SRCREV = "${AUTOREV}" + +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/ +}