From 7a870e121a33283185d9316d7b84ecbbb4a11dcb Mon Sep 17 00:00:00 2001 From: Leonid Lazarev Date: Fri, 15 May 2020 17:13:30 +0300 Subject: agl-virt-guest-xen feature for qemuarm64 Add feature agl-virt-guest-xen to allow to prepare Xen DomU images for arm64 targets. Bug-AGL: SPEC-3384 Signed-off-by: Leonid Lazarev Change-Id: I9e5a4b768ab8ea8629e56075550f9d5fdd64e562 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/24560 Reviewed-by: Jan-Simon Moeller Tested-by: Jenkins Job builder account --- meta-agl-bsp/recipes-kernel/linux/linux-agl.inc | 13 +++++++---- .../recipes-kernel/linux/linux/xen_domu.cfg | 25 ++++++++++++++++++++++ .../feature/agl-virt-guest-xen/50_local.conf.inc | 3 +++ 3 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 meta-agl-bsp/recipes-kernel/linux/linux/xen_domu.cfg create mode 100644 templates/feature/agl-virt-guest-xen/50_local.conf.inc diff --git a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc index 96ed8fdf6..0becf2040 100644 --- a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc +++ b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc @@ -33,10 +33,13 @@ SRC_URI_append = "\ file://drm.cfg \ file://btusb.cfg \ file://usbaudio.cfg \ - file://usbmodem.cfg \ - file://i2c-led.cfg \ - file://nfc.cfg \ - " + file://usbmodem.cfg \ + file://i2c-led.cfg \ + file://nfc.cfg \ + " + +SRC_URI_append = " ${@bb.utils.contains('AGL_XEN_GUEST_WANTED','1','file://xen_domu.cfg','',d)}" + KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/can-bus.cfg" # Enable support for usb video class for usb camera devices KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/uvc.cfg" @@ -55,6 +58,8 @@ KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/usbaudio.cfg" KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/i2c-led.cfg" # Enable NFC devices KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/nfc.cfg" +# Enable XEN support of the guest +KERNEL_CONFIG_FRAGMENTS_append = " ${@bb.utils.contains('AGL_XEN_GUEST_WANTED','1','${WORKDIR}/xen_domu.cfg','',d)}" # Enable required features for the agl-netboot feature SRC_URI_append_netboot = " file://nbd.cfg \ diff --git a/meta-agl-bsp/recipes-kernel/linux/linux/xen_domu.cfg b/meta-agl-bsp/recipes-kernel/linux/linux/xen_domu.cfg new file mode 100644 index 000000000..8bc59eb1e --- /dev/null +++ b/meta-agl-bsp/recipes-kernel/linux/linux/xen_domu.cfg @@ -0,0 +1,25 @@ +CONFIG_XEN=y +CONFIG_XEN_BLKDEV_FRONTEND=y +CONFIG_XEN_SCSI_FRONTEND=y +CONFIG_XEN_NETDEV_FRONTEND=y +CONFIG_INPUT_XEN_KBDDEV_FRONTEND=y +CONFIG_HVC_XEN=y +CONFIG_HVC_XEN_FRONTEND=y +CONFIG_XEN_FBDEV_FRONTEND=y +CONFIG_MMC_SDHCI_XENON=y +CONFIG_XEN_BALLOON=y +CONFIG_XEN_SCRUB_PAGES_DEFAULT=y +CONFIG_XEN_DEV_EVTCHN=y +CONFIG_XEN_BACKEND=y +CONFIG_XENFS=y +CONFIG_XEN_COMPAT_XENFS=y +CONFIG_XEN_SYS_HYPERVISOR=y +CONFIG_XEN_XENBUS_FRONTEND=y +CONFIG_XEN_GNTDEV=y +CONFIG_XEN_GNTDEV_DMABUF=y +CONFIG_XEN_GRANT_DEV_ALLOC=y +CONFIG_XEN_GRANT_DMA_ALLOC=y +CONFIG_SWIOTLB_XEN=y +CONFIG_XEN_PVCALLS_FRONTEND=y +CONFIG_XEN_PRIVCMD=y +CONFIG_XEN_AUTO_XLATE=y \ No newline at end of file diff --git a/templates/feature/agl-virt-guest-xen/50_local.conf.inc b/templates/feature/agl-virt-guest-xen/50_local.conf.inc new file mode 100644 index 000000000..07950559e --- /dev/null +++ b/templates/feature/agl-virt-guest-xen/50_local.conf.inc @@ -0,0 +1,3 @@ +# Set Xen flag + +AGL_XEN_GUEST_WANTED = "1" -- cgit 1.2.3-korg