xen-*image-minimal: Setup conditional based on MACHINE_FEATURES

* Conditionally add packages to the image depending on whether the
  machine supports the respective feature

Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
This commit is contained in:
Nathan Rossi 2015-01-06 10:27:58 +10:00 committed by Bruce Ashfield
parent 46504b1999
commit 06a8cc10d8
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ inherit core-image
IMAGE_INSTALL += " \
packagegroup-core-boot \
kernel-module-xen-acpi-processor \
${@bb.utils.contains('MACHINE_FEATURES', 'acpi', 'kernel-module-xen-acpi-processor', '', d)} \
"
IMAGE_INSTALL += "${@base_contains('DISTRO_FEATURES', 'x11', ' xf86-video-fbdev', '', d)}"

View File

@ -5,12 +5,12 @@ INITRD_IMAGE = "core-image-minimal-initramfs"
IMAGE_INSTALL += " \
packagegroup-core-boot \
packagegroup-core-ssh-openssh \
kernel-module-xen-acpi-processor \
${@bb.utils.contains('MACHINE_FEATURES', 'acpi', 'kernel-module-xen-acpi-processor', '', d)} \
kernel-module-xen-blkback \
kernel-module-xen-gntalloc \
kernel-module-xen-gntdev \
kernel-module-xen-netback \
kernel-module-xen-pciback \
${@bb.utils.contains('MACHINE_FEATURES', 'pci', 'kernel-module-xen-pciback', '', d)} \
kernel-module-xen-wdt \
xen-base \
xen-qemu \