From 25c0b44e2e741b348e424249d82e29b9578d8d78 Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Tue, 4 Dec 2018 17:31:48 -0500 Subject: Add agl-demo-preload feature Add a feature to preload the maps for the navigation app and the API key for the POI app. The intent is to allow building an image that works "out of the box" without manually installing things. The selection of UK or Japan maps can be controlled by setting the variable DEMO_MAPS_LOCALE to either "uk" (default) or "jp" in local.conf or site.conf. The POI API key should be set in one of those locations with the variable POIAPP_API_KEY (default value is an empty string). Change-Id: I25537935ddac740090f2121d0a83305c746185b0 Signed-off-by: Scott Murray --- recipes-platform/packagegroups/packagegroup-agl-demo-platform.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'recipes-platform') diff --git a/recipes-platform/packagegroups/packagegroup-agl-demo-platform.bb b/recipes-platform/packagegroups/packagegroup-agl-demo-platform.bb index 9deaea2a..40e4d3c2 100755 --- a/recipes-platform/packagegroups/packagegroup-agl-demo-platform.bb +++ b/recipes-platform/packagegroups/packagegroup-agl-demo-platform.bb @@ -61,6 +61,10 @@ QTAGLEXTRAS = "${@bb.utils.contains("DISTRO_FEATURES", "agl-hmi-framework", " qt # mapviewer and mapviewer-demo are required for AGL cluster demo MAPVIEWER = "${@bb.utils.contains("DISTRO_FEATURES", "agl-cluster-demo-support", " mapviewer mapviewer-demo", "",d)}" +# Preload navigation maps and poi API key for demo if requested +DEMO_MAPS_LOCALE ?= "uk" +DEMO_PRELOAD = "${@bb.utils.contains("DISTRO_FEATURES", "agl-demo-preload", " navigation-maps-${DEMO_MAPS_LOCALE} poiapp-api-key", "",d)}" + RDEPENDS_${PN}_append = " \ qtquickcontrols2-agl \ qtquickcontrols2-agl-style \ @@ -70,6 +74,7 @@ RDEPENDS_${PN}_append = " \ ${AGL_APIS} \ ${QTAGLEXTRAS} \ ${MAPVIEWER} \ + ${DEMO_PRELOAD} \ " -- cgit 1.2.3-korg