meta-agl-bsp: Define Xen recipe 00/22200/9
authorJérémy Fanguède <j.fanguede@virtualopensystems.com>
Thu, 18 Jul 2019 15:15:13 +0000 (17:15 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Wed, 4 Mar 2020 15:24:33 +0000 (15:24 +0000)
Provide Xen support for Arm64 boards, tested with the R-Car M3 ulcb
board. Xen v4.13.0 stable version is compiled.

A new binary is deployed, named "xen-${MACHINE}.uImage" that can be loaded
and run by U-Boot.

v2: rework to split u-boot mkimage part a separate recipe so we can
    keep the diff of the xen recipe at a minimum.

Bug-AGL: SPEC-2912

Change-Id: I68d2af74d31ee310686645c8a5ae11b0201448b2
Signed-off-by: Jérémy Fanguède <j.fanguede@virtualopensystems.com>
Signed-off-by: Michele Paolino <m.paolino@virtualopensystems.com>
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
meta-agl-bsp/virtualization-layer/recipes-extended/xen/xen-mkimage.bb [new file with mode: 0644]
meta-agl-bsp/virtualization-layer/recipes-extended/xen/xen_git.bbappend [new file with mode: 0644]

diff --git a/meta-agl-bsp/virtualization-layer/recipes-extended/xen/xen-mkimage.bb b/meta-agl-bsp/virtualization-layer/recipes-extended/xen/xen-mkimage.bb
new file mode 100644 (file)
index 0000000..ae8fe71
--- /dev/null
@@ -0,0 +1,29 @@
+DESCRIPTION = "Xen hypervisor u-boot image"
+LICENSE = "GPLv2"
+SECTION = "console/tools"
+
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+
+
+ALLOW_EMPTY_${PN} = "1"
+FILES_${PN} = ""
+S = "${WORKDIR}"
+
+DEPENDS = "u-boot-mkimage-native "
+
+# Only for aarch64
+COMPATIBLE_MACHINE = "(-)"
+COMPATIBLE_MACHINE_aarch64 = "(.*)"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+do_configure[noexec] = "1"
+do_deploy[noexec] = "1"
+
+do_compile[depends] += "xen:do_deploy"
+
+# Uboot compatible image
+do_compile () {
+        uboot-mkimage -A arm64 -C none -T kernel -a 0x48080000 -e 0x48080000 -n "XEN" -d ${DEPLOY_DIR_IMAGE}/xen-${MACHINE} ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}.uImage
+}
diff --git a/meta-agl-bsp/virtualization-layer/recipes-extended/xen/xen_git.bbappend b/meta-agl-bsp/virtualization-layer/recipes-extended/xen/xen_git.bbappend
new file mode 100644 (file)
index 0000000..70c7fd4
--- /dev/null
@@ -0,0 +1,6 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+XEN_REL = "4.13"
+XEN_BRANCH = "stable"
+SRCREV = "721f2c323ca55c77857c93e7275b4a93a0e15e1f"
+