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>
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 \