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:
parent
5fcc982c21
commit
43e07b2283
|
|
@ -14,6 +14,8 @@ SRC_URI = "file://ubx-fw-update.tar.gz \
|
||||||
file://gnss-fw-update \
|
file://gnss-fw-update \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
PACKAGECONFIG ?= ""
|
||||||
|
PACKAGECONFIG[ubx-tool-only] = ""
|
||||||
|
|
||||||
S = "${WORKDIR}/ubx-fw-update"
|
S = "${WORKDIR}/ubx-fw-update"
|
||||||
|
|
||||||
|
|
@ -24,11 +26,14 @@ do_compile() {
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}${bindir}
|
install -d ${D}${bindir}
|
||||||
install -m 0755 fwupdate ${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 -m 0755 ../gnss-fw-update ${D}${bindir}/
|
||||||
|
|
||||||
install -d ${D}${nonarch_base_libdir}/firmware/
|
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 ../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
|
install -m 0644 ../flash.xml ${D}${nonarch_base_libdir}/firmware/ubx-fw-flash.xml
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} = " \
|
FILES_${PN} = " \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue