meta-aac: Rework agl-voiceagent-alexa packaging 96/23596/1 halibut 8.0.5 8.0.6 halibut/8.0.5 halibut/8.0.6 halibut_8.0.5 halibut_8.0.6
authorScott Murray <scott.murray@konsulko.com>
Mon, 20 Jan 2020 22:26:59 +0000 (17:26 -0500)
committerScott Murray <scott.murray@konsulko.com>
Mon, 20 Jan 2020 22:29:36 +0000 (17:29 -0500)
Rather than appending the agl-voiceagent-alexa packages onto the
existing packagegroup-agl-core-services, instead define a new specific
packagegroup-agl-voiceagent-alexa, and an associated image feature
that is used to include it into an image with IMAGE_FEATURES. This
seems better for the longer-term goal of a binary package feed, and
IMAGE_FEATURES can be used by other recipes in a similar manner as
DISTRO_FEATURES, but with a lot less build dependency impact if
changed. This will be used in a parallel change to meta-agl-demo to
pull in the new alexa-viewer application when using the Alexa
voiceagent.

Bug-AGL: SPEC-3110

Change-Id: I15fb07560fef703e3471bce9e50596cb4a6667b4
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
meta-speech-framework/conf/include/agl-voiceagent-alexa.inc
meta-speech-framework/meta-aac/recipes-platform/packagegroups/packagegroup-agl-core-services.bbappend [deleted file]
meta-speech-framework/meta-aac/recipes-platform/packagegroups/packagegroup-agl-voiceagent-alexa.bb [new file with mode: 0644]

index 7b47847..10df092 100644 (file)
@@ -4,3 +4,7 @@
 BBMASK += "meta-aac/recipes-support/curl/curl_%.bbappend"
 
 PREFERRED_RPROVIDER_virtual/voice-high-config = "alexa-voice-high-config"
+
+FEATURE_PACKAGES_agl-voiceagent-alexa = "packagegroup-agl-voiceagent-alexa"
+
+IMAGE_FEATURES += "agl-voiceagent-alexa"
diff --git a/meta-speech-framework/meta-aac/recipes-platform/packagegroups/packagegroup-agl-core-services.bbappend b/meta-speech-framework/meta-aac/recipes-platform/packagegroups/packagegroup-agl-core-services.bbappend
deleted file mode 100644 (file)
index 4383694..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-RDEPENDS_${PN} += " \
-       alexa-voiceagent-service \
-       ${@bb.utils.contains("DISTRO_FEATURES", "agl-demo-preload", "virtual/alexa-voiceagent-config", "",d)} \
-"
diff --git a/meta-speech-framework/meta-aac/recipes-platform/packagegroups/packagegroup-agl-voiceagent-alexa.bb b/meta-speech-framework/meta-aac/recipes-platform/packagegroups/packagegroup-agl-voiceagent-alexa.bb
new file mode 100644 (file)
index 0000000..5f38e7e
--- /dev/null
@@ -0,0 +1,15 @@
+SUMMARY = "The software for the AGL Alexa voiceagent feature"
+DESCRIPTION = "The software for the AGL Alexa voiceagent feature"
+
+LICENSE = "MIT"
+
+inherit packagegroup
+
+PACKAGES = "\
+       packagegroup-agl-voiceagent-alexa \
+"
+
+RDEPENDS_${PN} += " \
+       alexa-voiceagent-service \
+       ${@bb.utils.contains("DISTRO_FEATURES", "agl-demo-preload", "virtual/alexa-voiceagent-config", "",d)} \
+"