SUMMARY = "Merge machine and distro options to create a basic machine task/package"
PR = "r1"

#
# packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH
#
PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit packagegroup

# packagroup-coreos-boot will ensure that EFI_PROVIDER is installed
# But we want to have Linux user space tools installed as well here
COREOS_IMAGE_EFI_PROVIDER_EXTRA = " \
    ${@'efibootguard-tools' if d.getVar('EFI_PROVIDER') == 'efibootguard' else ''} \
"

RDEPENDS:${PN} = "\
    packagegroup-base-extended \
    os-release \
    ${@bb.utils.contains("MACHINE_FEATURES", "efi", "${COREOS_IMAGE_EFI_PROVIDER_EXTRA}", "", d)} \
"
