Switch from setting PACKAGE_ARCH to inheriting the allarch class in the
ondemandnavi-config recipe. This fixes a failure when building an image
with the ondemandnavi application that seems due to a change between
rocko and thud.
Bug-AGL: SPEC-2576
Change-Id: I5c99571db72e600ae0da05304e46c503466985d2
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
SRC_URI = "file://naviconfig.ini \
"
-S = "${WORKDIR}"
+inherit allarch
MAPBOX_ACCESS_TOKEN ?= "Please set mapbox access token"
+do_compile[noexec] = "1"
+
do_install () {
- install -d ${D}${sysconfdir}
- install -m 644 ${WORKDIR}/naviconfig.ini ${D}${sysconfdir}
+ install -D -m 644 ${WORKDIR}/naviconfig.ini ${D}${sysconfdir}/naviconfig.ini
sed -i -e 's/MAPBOX_ACCESS_TOKEN/${MAPBOX_ACCESS_TOKEN}/' ${D}${sysconfdir}/naviconfig.ini
}
-
-PACKAGE_ARCH = "all"
-
-PACKAGES = "${PN}"
-FILES_${PN} = "/etc/naviconfig.ini"