diff options
| author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2024-01-19 13:41:58 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2024-01-22 16:31:41 -0700 |
| commit | d1d32d3b7b052823dda679e11749678bf6eb9fab (patch) | |
| tree | 922d9e8aa27cfb51c87216eca8b658e2dd398aa4 | |
| parent | 36107a2994baadf0190f032126c5ce607d31d096 (diff) | |
| download | meta-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>
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 |
| 2 | SRCREV ?= "d75f1e9b74314cea91ce435730d4e3539ecca77d" | 2 | SRCREV ?= "d75f1e9b74314cea91ce435730d4e3539ecca77d" |
| 3 | 3 | ||
| 4 | XEN_URI ?= "git://xenbits.xen.org/xen.git" | ||
| 4 | XEN_REL ?= "4.18" | 5 | XEN_REL ?= "4.18" |
| 5 | XEN_BRANCH ?= "stable-4.18" | 6 | XEN_BRANCH ?= "stable-4.18" |
| 6 | 7 | ||
| 7 | SRC_URI = " \ | 8 | SRC_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 | ||
| 12 | LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9" | 13 | LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9" |
| 13 | 14 | ||
| 14 | PV = "${XEN_REL}+stable" | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
| 17 | 16 | ||
| 18 | DEFAULT_PREFERENCE ??= "-1" | ||
| 19 | |||
| 20 | require xen.inc | 17 | require xen.inc |
| 21 | require xen-tools.inc | 18 | require 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 @@ | |||
| 1 | require xen-xilinx_4.18.inc | ||
| 2 | require 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 @@ | |||
| 1 | SRCREV = "6c8d45643aad8fcfe0e4b31ae9b36ceeb2bf91c5" | ||
| 2 | XEN_URI = "git://github.com/Xilinx/xen.git;protocol=https" | ||
| 3 | XEN_BRANCH = "xlnx_rebase_4.18" | ||
| 4 | |||
| 5 | PV .= "-xilinx+git${SRCPV}" | ||
| 6 | |||
| 7 | DEFAULT_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 |
| 2 | SRCREV ?= "d75f1e9b74314cea91ce435730d4e3539ecca77d" | 2 | SRCREV ?= "d75f1e9b74314cea91ce435730d4e3539ecca77d" |
| 3 | 3 | ||
| 4 | XEN_URI ?= "git://xenbits.xen.org/xen.git" | ||
| 4 | XEN_REL ?= "4.18" | 5 | XEN_REL ?= "4.18" |
| 5 | XEN_BRANCH ?= "stable-4.18" | 6 | XEN_BRANCH ?= "stable-4.18" |
| 6 | 7 | ||
| 7 | SRC_URI = " \ | 8 | SRC_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 | ||
| 12 | LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9" | 13 | LIC_FILES_CHKSUM ?= "file://COPYING;md5=d1a1e216f80b6d8da95fec897d0dbec9" |
| 13 | 14 | ||
| 14 | PV = "${XEN_REL}+stable" | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
| 17 | 16 | ||
| 18 | DEFAULT_PREFERENCE ??= "-1" | ||
| 19 | |||
| 20 | require xen.inc | 17 | require xen.inc |
| 21 | require xen-hypervisor.inc | 18 | require 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 @@ | |||
| 1 | require xen-xilinx_4.18.inc | ||
| 2 | |||
| 3 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | ||
| 4 | |||
| 5 | RDEPENDS:${PN}-efi += "bash python3" | ||
| 6 | |||
| 7 | do_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 | } | ||
