How to Disable Avahi from Yocto build

I have a Colibri vf50 module running linux V2.5 on a custom board with two LAN ports.

I do not need the Avahi services that are installed by default - is there any way to disable the service from the Yocto build process?

There are two things which currently install avahi: the packagroup-basic packagegroup and the distribution via DISTRO_EXTRA_RRECOMMENDS. The second can be overridden via bad recommendations in the image recipe ( meta-toradex/recipes/images/angstrom-lxde-image.bb or meta-toradex/recipes/images/console-trdx-image.bb)

BAD_RECOMMENDATIONS = "avahi-daemon avahi-autoipd"

You can edit the packagegroup recipe direcly and remove the avahi packages (the file is located at meta-openembedded/meta-oe/recipes-core/packagegroups/packagegroup-basic.bb) or you can use a bbappend in your layer and redefine RDEPENDS_${PN}

Note: I just also sent out a patch to control installation of avahi through distro features, which seems to me like the cleaner approach. With that patch, installation can be controlled via DISTRO_FEATURES, which can be easily altered through local.conf:

DISTRO_FEATURES_remove = "zeroconf