Code Review
/
AGL
/
meta-agl-demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
kuksa-client: Upgrade to 0.4.3
[AGL/meta-agl-demo.git]
/
recipes-demo
/
navigation
/
ondemandnavi-config_1.0.bb
diff --git
a/recipes-demo/navigation/ondemandnavi-config_1.0.bb
b/recipes-demo/navigation/ondemandnavi-config_1.0.bb
index
212971f
..
644102e
100644
(file)
--- a/
recipes-demo/navigation/ondemandnavi-config_1.0.bb
+++ b/
recipes-demo/navigation/ondemandnavi-config_1.0.bb
@@
-11,11
+11,14
@@
SRC_URI = "file://naviconfig.ini \
inherit allarch
inherit allarch
-MAPBOX_ACCESS_TOKEN ?= "
Please set mapbox access token
"
+MAPBOX_ACCESS_TOKEN ?= ""
do_compile[noexec] = "1"
do_install () {
install -D -m 644 ${WORKDIR}/naviconfig.ini ${D}${sysconfdir}/naviconfig.ini
do_compile[noexec] = "1"
do_install () {
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
+ if [ -n "${MAPBOX_ACCESS_TOKEN}" ]; then
+ sed -i -e 's/MAPBOX_ACCESS_TOKEN/${MAPBOX_ACCESS_TOKEN}/;s/\("enableOSM":\)true/\1false/' \
+ ${D}${sysconfdir}/naviconfig.ini
+ fi
}
}