agl-core-connectivity: add avahi-daemon when agl-devel feature is set 06/21806/1
authorStephane Desneux <stephane.desneux@iot.bzh>
Wed, 3 Jul 2019 14:21:08 +0000 (14:21 +0000)
committerStephane Desneux <stephane.desneux@iot.bzh>
Wed, 3 Jul 2019 14:27:46 +0000 (14:27 +0000)
Accessing the boards using .local addresses is convenient. But avahi-daemon is
not pulled explicitely in images.

This patch adds packagegroup-base-zeroconf (containing avahi-daemon) in the
core image only when agl-devel feature is set and zeroconf is enabled in
DISTRO_FEATURES

Bug-AGL: SPEC-2592

Change-Id: Iea899d98cd0d8628f9533641f7b42c04f4580c64
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-agl-profile-core/recipes-platform/packagegroups/packagegroup-agl-core-connectivity.bb

index 6ef68ca..03f7e40 100644 (file)
@@ -9,11 +9,14 @@ PACKAGES = "\
 
 ALLOW_EMPTY_${PN} = "1"
 
+PKGGROUP_ZEROCONF = "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'packagegroup-base-zeroconf', '', d)}"
+
 RDEPENDS_${PN} += "\
     bluez5-obex \
     dhcp-server \
     ${@bb.utils.contains('VIRTUAL-RUNTIME_net_manager','connman','connman connman-client connman-tests connman-tools connman-ncurses','',d)} \
     ${@bb.utils.contains("DISTRO_FEATURES", "3g", "libqmi", "", d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'agl-devel', '${PKGGROUP_ZEROCONF}', '', d)} \
     neard \
     neardal-tools \
     rtl-sdr \