How to disable digi services in Digi Embedded Yocto v5.0

Hi all,
What’s the best way of disabling the various Digi services from my Yocto project? I’m building my Yocto project for a Digi MP255 SoM.

I tried adding the following in one of my layers, but I get a dependency build issue.

# Exclude unwanted Digi services and demos from Hub Max image
PACKAGE_EXCLUDE += "\
    greengrass \
    cccs-gs-demo \
    connectcore-demo-example \
    dey-examples-cccs \
"

There is a dependency chain which is causing the build failure:
packagegroup-base-extended → packagegroup-base → packagegroup-distro-base → packagegroup-dey-core → dey-examples-cccs

I would suggest submitting a ticket to Digi support by going to my.digi.com

For systemd-based services

Use a .bbappend in your layer targeting each service’s recipe:

bitbake

my-layer/recipes-xyz/cccs/cccs_%.bbappend

SYSTEMD_AUTO_ENABLE:pn-cccs = “disable”
SYSTEMD_SERVICE:pn-cccs = “cccs.service”

This tells Yocto to install the service but not enable it automatically in the systemd presets