SUMMARY = "A devicetree overlay for disable led_act"
LICENSE = "MIT"

S = "${WORKDIR}"

inherit devicetree

SRC_URI = "file://disable-led-act.dts"

COMPATIBLE_MACHINE = "raspberrypi0-2w-64"

do_deploy:append() {
  if ! grep -q 'dtoverlay=disable-led-act' ${DEPLOY_DIR_IMAGE}/bootfiles/config.txt; then
    echo "dtoverlay=disable-led-act" >> ${DEPLOY_DIR_IMAGE}/bootfiles/config.txt
  fi
}

do_deploy[depends] += "rpi-config:do_deploy"