diff options
| author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2018-01-02 22:43:28 -0800 |
|---|---|---|
| committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2018-01-31 13:33:02 -0800 |
| commit | 2c6ad569ab39c611c01dabe42c2791a23507539d (patch) | |
| tree | 7f2e811b27d2a3446b1c40a5a88d6fa944e9a9c7 | |
| parent | 45845d511b2b690ed05d146f0b32b5826cb4cb06 (diff) | |
| download | meta-xilinx-2c6ad569ab39c611c01dabe42c2791a23507539d.tar.gz | |
linux-xlnx: Enable support for Xen modules
If xen is present in distro enable xen modules to be built while
building linux-xlnx kernel.
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
3 files changed, 50 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc index e040e93c..7b4f9ac1 100644 --- a/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc +++ b/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx.inc | |||
| @@ -42,3 +42,4 @@ SRC_URI_append = " file://xilinx-kmeta;type=kmeta;name=xilinx-kmeta;destsuffix=x | |||
| 42 | # MicroBlaze BSP fragments | 42 | # MicroBlaze BSP fragments |
| 43 | KERNEL_FEATURES_append_kc705-microblazeel = " bsp/kc705-microblazeel/kc705-microblazeel.scc" | 43 | KERNEL_FEATURES_append_kc705-microblazeel = " bsp/kc705-microblazeel/kc705-microblazeel.scc" |
| 44 | 44 | ||
| 45 | KERNEL_FEATURES_zynqmp += "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' bsp/xilinx/xen.scc', '', d)}" | ||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/xen.cfg b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/xen.cfg new file mode 100644 index 00000000..50d5e462 --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/xen.cfg | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | CONFIG_HYPERVISOR_GUEST=y | ||
| 2 | CONFIG_PARAVIRT=y | ||
| 3 | CONFIG_XEN=y | ||
| 4 | CONFIG_XEN_DOM0=y | ||
| 5 | CONFIG_XEN_PVHVM=y | ||
| 6 | CONFIG_XEN_SAVE_RESTORE=y | ||
| 7 | # CONFIG_XEN_DEBUG_FS is not set | ||
| 8 | CONFIG_MMU_NOTIFIER=y | ||
| 9 | CONFIG_HIBERNATE_CALLBACKS=y | ||
| 10 | CONFIG_PCI_XEN=y | ||
| 11 | CONFIG_XEN_PCIDEV_FRONTEND=y | ||
| 12 | CONFIG_SYS_HYPERVISOR=y | ||
| 13 | CONFIG_XEN_BLKDEV_FRONTEND=y | ||
| 14 | CONFIG_XEN_BLKDEV_BACKEND=m | ||
| 15 | CONFIG_XEN_SCSI_FRONTEND=m | ||
| 16 | CONFIG_XEN_NETDEV_FRONTEND=y | ||
| 17 | CONFIG_XEN_NETDEV_BACKEND=m | ||
| 18 | CONFIG_INPUT_MISC=y | ||
| 19 | CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y | ||
| 20 | CONFIG_HVC_IRQ=y | ||
| 21 | CONFIG_HVC_XEN=y | ||
| 22 | CONFIG_HVC_XEN_FRONTEND=y | ||
| 23 | CONFIG_XEN_WDT=m | ||
| 24 | CONFIG_FB_SYS_FILLRECT=y | ||
| 25 | CONFIG_FB_SYS_COPYAREA=y | ||
| 26 | CONFIG_FB_SYS_IMAGEBLIT=y | ||
| 27 | CONFIG_FB_SYS_FOPS=y | ||
| 28 | CONFIG_FB_DEFERRED_IO=y | ||
| 29 | CONFIG_XEN_FBDEV_FRONTEND=y | ||
| 30 | CONFIG_XEN_BALLOON=y | ||
| 31 | CONFIG_XEN_SCRUB_PAGES=y | ||
| 32 | CONFIG_XEN_DEV_EVTCHN=y | ||
| 33 | CONFIG_XEN_BACKEND=y | ||
| 34 | CONFIG_XENFS=y | ||
| 35 | CONFIG_XEN_COMPAT_XENFS=y | ||
| 36 | CONFIG_XEN_SYS_HYPERVISOR=y | ||
| 37 | CONFIG_XEN_XENBUS_FRONTEND=y | ||
| 38 | CONFIG_XEN_GNTDEV=m | ||
| 39 | CONFIG_XEN_GRANT_DEV_ALLOC=m | ||
| 40 | CONFIG_SWIOTLB_XEN=y | ||
| 41 | CONFIG_XEN_PCIDEV_BACKEND=m | ||
| 42 | CONFIG_XEN_PRIVCMD=y | ||
| 43 | CONFIG_XEN_ACPI_PROCESSOR=m | ||
| 44 | CONFIG_XEN_MCE_LOG=y | ||
| 45 | CONFIG_XEN_HAVE_PVMMU=y | ||
diff --git a/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/xen.scc b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/xen.scc new file mode 100644 index 00000000..b588e5df --- /dev/null +++ b/meta-xilinx-bsp/recipes-kernel/linux/xilinx-kmeta/bsp/xilinx/xen.scc | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | define KFEATURE_DESCRIPTION "Xen Kernel Support" | ||
| 2 | define KFEATURE_COMPATIBILITY arch | ||
| 3 | |||
| 4 | kconf non-hardware xen.cfg | ||
