summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2024-01-19 13:41:58 -0700
committerMark Hatle <mark.hatle@amd.com>2024-01-22 16:31:41 -0700
commitd1d32d3b7b052823dda679e11749678bf6eb9fab (patch)
tree922d9e8aa27cfb51c87216eca8b658e2dd398aa4
parent36107a2994baadf0190f032126c5ce607d31d096 (diff)
downloadmeta-xilinx-d1d32d3b7b052823dda679e11749678bf6eb9fab.tar.gz
xen: Add bbapends and inc file to use Xilinx Xen 4.18
1. In upstream 4.18 recipes add XEN_URI variable and set xen upstream url as conditional assignment. Also unset PV and DEFAULT_PREFERENCE. 2. Add xen_4.18 and xen-tools_4.18 bbapends files use AMD Xilinx Xen 4.18.0. 3. Add xen-xilinx_4.18.inc file and include AMD Xilinx Xen 4.18.0 repo details and also set PV to make it clear this a forked version. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-virtualization/recipes-extended/xen/xen-tools_4.18.bb7
-rw-r--r--meta-xilinx-virtualization/recipes-extended/xen/xen-tools_4.18.bbappend2
-rw-r--r--meta-xilinx-virtualization/recipes-extended/xen/xen-xilinx_4.18.inc7
-rw-r--r--meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bb7
-rw-r--r--meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bbappend20
5 files changed, 33 insertions, 10 deletions
diff --git a/meta-xilinx-virtualization/recipes-extended/xen/xen-tools_4.18.bb b/meta-xilinx-virtualization/recipes-extended/xen/xen-tools_4.18.bb
index a3b1e344..8baa2f53 100644
--- a/meta-xilinx-virtualization/recipes-extended/xen/xen-tools_4.18.bb
+++ b/meta-xilinx-virtualization/recipes-extended/xen/xen-tools_4.18.bb
@@ -1,21 +1,18 @@
1# tag: RELEASE-4.18.0 1# tag: RELEASE-4.18.0
2SRCREV ?= "d75f1e9b74314cea91ce435730d4e3539ecca77d" 2SRCREV ?= "d75f1e9b74314cea91ce435730d4e3539ecca77d"
3 3
4XEN_URI ?= "git://xenbits.xen.org/xen.git"
4XEN_REL ?= "4.18" 5XEN_REL ?= "4.18"
5XEN_BRANCH ?= "stable-4.18" 6XEN_BRANCH ?= "stable-4.18"
6 7
7SRC_URI = " \ 8SRC_URI = " \
8 git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \ 9 ${XEN_URI};branch=${XEN_BRANCH} \
9 file://0001-python-pygrub-pass-DISTUTILS-xen-4.18.patch \ 10 file://0001-python-pygrub-pass-DISTUTILS-xen-4.18.patch \
10 " 11 "
11 12
12LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9" 13LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9"
13 14
14PV = "${XEN_REL}+stable"
15
16S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
17 16
18DEFAULT_PREFERENCE ??= "-1"
19
20require xen.inc 17require xen.inc
21require xen-tools.inc 18require xen-tools.inc
diff --git a/meta-xilinx-virtualization/recipes-extended/xen/xen-tools_4.18.bbappend b/meta-xilinx-virtualization/recipes-extended/xen/xen-tools_4.18.bbappend
new file mode 100644
index 00000000..86702979
--- /dev/null
+++ b/meta-xilinx-virtualization/recipes-extended/xen/xen-tools_4.18.bbappend
@@ -0,0 +1,2 @@
1require xen-xilinx_4.18.inc
2require xen-tools-xilinx.inc
diff --git a/meta-xilinx-virtualization/recipes-extended/xen/xen-xilinx_4.18.inc b/meta-xilinx-virtualization/recipes-extended/xen/xen-xilinx_4.18.inc
new file mode 100644
index 00000000..6ab22816
--- /dev/null
+++ b/meta-xilinx-virtualization/recipes-extended/xen/xen-xilinx_4.18.inc
@@ -0,0 +1,7 @@
1SRCREV = "6c8d45643aad8fcfe0e4b31ae9b36ceeb2bf91c5"
2XEN_URI = "git://github.com/Xilinx/xen.git;protocol=https"
3XEN_BRANCH = "xlnx_rebase_4.18"
4
5PV .= "-xilinx+git${SRCPV}"
6
7DEFAULT_PREFERENCE = "+1"
diff --git a/meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bb b/meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bb
index 8da44559..d2a09a89 100644
--- a/meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bb
+++ b/meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bb
@@ -1,21 +1,18 @@
1# tag: RELEASE-4.18.0 1# tag: RELEASE-4.18.0
2SRCREV ?= "d75f1e9b74314cea91ce435730d4e3539ecca77d" 2SRCREV ?= "d75f1e9b74314cea91ce435730d4e3539ecca77d"
3 3
4XEN_URI ?= "git://xenbits.xen.org/xen.git"
4XEN_REL ?= "4.18" 5XEN_REL ?= "4.18"
5XEN_BRANCH ?= "stable-4.18" 6XEN_BRANCH ?= "stable-4.18"
6 7
7SRC_URI = " \ 8SRC_URI = " \
8 git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \ 9 ${XEN_URI};branch=${XEN_BRANCH} \
9 file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch \ 10 file://0001-menuconfig-mconf-cfg-Allow-specification-of-ncurses-location.patch \
10 " 11 "
11 12
12LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9" 13LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9"
13 14
14PV = "${XEN_REL}+stable"
15
16S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
17 16
18DEFAULT_PREFERENCE ??= "-1"
19
20require xen.inc 17require xen.inc
21require xen-hypervisor.inc 18require xen-hypervisor.inc
diff --git a/meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bbappend b/meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bbappend
new file mode 100644
index 00000000..e2c75566
--- /dev/null
+++ b/meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bbappend
@@ -0,0 +1,20 @@
1require xen-xilinx_4.18.inc
2
3FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
4
5RDEPENDS:${PN}-efi += "bash python3"
6
7do_deploy:append() {
8 # Mimic older behavior for compatibility
9 if [ -f ${DEPLOYDIR}/xen-${MACHINE} ]; then
10 ln -s xen-${MACHINE} ${DEPLOYDIR}/xen
11 fi
12
13 if [ -f ${DEPLOYDIR}/xen-${MACHINE}.gz ]; then
14 ln -s xen-${MACHINE}.gz ${DEPLOYDIR}/xen.gz
15 fi
16
17 if [ -f ${DEPLOYDIR}/xen-${MACHINE}.efi ]; then
18 ln -s xen-${MACHINE}.efi ${DEPLOYDIR}/xen.efi
19 fi
20}