diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-09-21 17:42:28 -0700 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-09-22 15:51:10 -0400 |
| commit | baf30af86f0da867f688246b8af37713986228a7 (patch) | |
| tree | f128dc71577ee64e0f89b7aa269d84ddb89ac250 | |
| parent | ff06d544349e10cc3c664e6457a8dd44613c0721 (diff) | |
| download | meta-virtualization-baf30af86f0da867f688246b8af37713986228a7.tar.gz | |
xen: make kernel modules an override possible variable
Sometimes Xen is built with different mixes of kernel modules and
built-in values. If we put our expected/default modules in a
variable, they can be overriden by a different kernel provider
as required
Signed-off-by: Bruce Ashfield <bruce.ashfield@xilinx.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-extended/images/xen-image-minimal.bb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/recipes-extended/images/xen-image-minimal.bb b/recipes-extended/images/xen-image-minimal.bb index 1b45397b..6733801c 100644 --- a/recipes-extended/images/xen-image-minimal.bb +++ b/recipes-extended/images/xen-image-minimal.bb | |||
| @@ -2,16 +2,16 @@ DESCRIPTION = "A minimal xen image" | |||
| 2 | 2 | ||
| 3 | INITRD_IMAGE = "core-image-minimal-initramfs" | 3 | INITRD_IMAGE = "core-image-minimal-initramfs" |
| 4 | 4 | ||
| 5 | XEN_KERNEL_MODULES ?= "kernel-module-xen-blkback kernel-module-xen-gntalloc \ | ||
| 6 | kernel-module-xen-gntdev kernel-module-xen-netback kernel-module-xen-wdt \ | ||
| 7 | ${@bb.utils.contains('MACHINE_FEATURES', 'pci', "${XEN_PCIBACK_MODULE}", '', d)} \ | ||
| 8 | ${@bb.utils.contains('MACHINE_FEATURES', 'acpi', 'kernel-module-xen-acpi-processor', '', d)} \ | ||
| 9 | " | ||
| 10 | |||
| 5 | IMAGE_INSTALL += " \ | 11 | IMAGE_INSTALL += " \ |
| 6 | packagegroup-core-boot \ | 12 | packagegroup-core-boot \ |
| 7 | packagegroup-core-ssh-openssh \ | 13 | packagegroup-core-ssh-openssh \ |
| 8 | ${@bb.utils.contains('MACHINE_FEATURES', 'acpi', 'kernel-module-xen-acpi-processor', '', d)} \ | 14 | ${XEN_KERNEL_MODULES} \ |
| 9 | kernel-module-xen-blkback \ | ||
| 10 | kernel-module-xen-gntalloc \ | ||
| 11 | kernel-module-xen-gntdev \ | ||
| 12 | kernel-module-xen-netback \ | ||
| 13 | ${@bb.utils.contains('MACHINE_FEATURES', 'pci', "${XEN_PCIBACK_MODULE}", '', d)} \ | ||
| 14 | kernel-module-xen-wdt \ | ||
| 15 | xen-tools \ | 15 | xen-tools \ |
| 16 | qemu \ | 16 | qemu \ |
| 17 | " | 17 | " |
