ublox-gnss-fw-update: add ubxtool only pkgconfig

Add packageconfig to keep only the ublox tool.
Missing files if this config is applied are:
 - firmware itself (UBX_M8_301_ADR_421_NEO_M8L.bin)
 - map of the flash (ubx-fw-flash.xml)
 - wrapper to flash the modem easily (gnss-fw-update)

BugzID: 60600

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
This commit is contained in:
Alexandre Bard 2020-03-05 13:21:26 +01:00 committed by Patrick Zysset
parent 5fcc982c21
commit 43e07b2283
1 changed files with 9 additions and 4 deletions

View File

@ -14,6 +14,8 @@ SRC_URI = "file://ubx-fw-update.tar.gz \
file://gnss-fw-update \
"
PACKAGECONFIG ?= ""
PACKAGECONFIG[ubx-tool-only] = ""
S = "${WORKDIR}/ubx-fw-update"
@ -24,11 +26,14 @@ do_compile() {
do_install() {
install -d ${D}${bindir}
install -m 0755 fwupdate ${D}${bindir}/
if ! ${@bb.utils.contains('PACKAGECONFIG','ubx-tool-only','true','false',d)}; then
install -m 0755 ../gnss-fw-update ${D}${bindir}/
install -d ${D}${nonarch_base_libdir}/firmware/
install -m 0644 ../UBX_M8_301_ADR_421_NEO_M8L.bin ${D}${nonarch_base_libdir}/firmware/
install -m 0644 ../flash.xml ${D}${nonarch_base_libdir}/firmware/ubx-fw-flash.xml
fi
}
FILES_${PN} = " \