Move music data inclusion into image instead of packagegroup and make it conditional 58/30258/3
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 6 Sep 2024 15:26:40 +0000 (17:26 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 9 Sep 2024 08:21:18 +0000 (08:21 +0000)
This reworks the inclusion and moves conditional parts out of the packagegroup into the image definitions.
It also introduces a variable PREINSTALL_MUSIC that you can set to '1' in your conf/local.conf .

Bug-AGL: SPEC-5233
Change-Id: I3eaccfc1099c9d748d485fb144a77491d41af36d
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl-demo/+/30258
ci-image-build: Jenkins Job builder account
Tested-by: Jenkins Job builder account
ci-image-boot-test: Jenkins Job builder account

recipes-platform/images/agl-ivi-demo-flutter.bb
recipes-platform/images/agl-ivi-demo-qt.bb
recipes-platform/packagegroups/packagegroup-agl-demo.bb

index 5753d58..3a280e6 100644 (file)
@@ -5,10 +5,14 @@ SUMMARY = "AGL IVI demo Flutter image"
 FLUTTER_ICS_HOMESCREEN_CONF = "flutter-ics-homescreen-conf"
 ONDEMANDNAVI_CONF = "ondemandnavi-conf"
 
+# import default music data package if PREINSTALL_MUSIC is set to "1"
+MUSICDATA ?= "${@oe.utils.conditional("PREINSTALL_MUSIC", "1", "pre-install-music-data", "", d)}"
+
 AGL_APPS_INSTALL += " \
     flutter-ics-homescreen \
     ${FLUTTER_ICS_HOMESCREEN_CONF} \
     camera-gstreamer \
     ondemandnavi \
     ${ONDEMANDNAVI_CONF} \
+    ${MUSICDATA} \
 "
index 8fe988d..58bab47 100644 (file)
@@ -4,6 +4,9 @@ SUMMARY = "AGL IVI demo Qt image"
 
 ONDEMANDNAVI_CONF = "ondemandnavi-conf"
 
+# import default music data package if PREINSTALL_MUSIC is set to "1"
+MUSICDATA ?= "${@oe.utils.conditional("PREINSTALL_MUSIC", "1", "pre-install-music-data", "", d)}"
+
 AGL_APPS_INSTALL += " \
     dashboard \
     hvac \
@@ -21,5 +24,6 @@ AGL_APPS_INSTALL += " \
 IMAGE_INSTALL += " \
     packagegroup-agl-demo-platform \
     weston-terminal-conf \
+    ${MUSICDATA} \
 "
 
index 78ed857..8fdd2ea 100644 (file)
@@ -27,6 +27,5 @@ RDEPENDS:${PN} += " \
     linux-firmware-ath9k \
     linux-firmware-ralink \
     iproute2 \
-    pre-install-music-data \
     ${TTF_FONTS} \
     "