diff options
author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2024-12-13 12:26:17 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:06 -0600 |
commit | 4156f5032ca8e5b0ba21023c118c58ea441f7aef (patch) | |
tree | 9335e80cb933954a1225a48b6367784d41181739 | |
parent | d95e1f722c130341900918f3952b1167d2861665 (diff) | |
download | meta-xilinx-4156f5032ca8e5b0ba21023c118c58ea441f7aef.tar.gz |
xen: Add xen-guest-example cfg for Xen DomU guest
Add xen-guest-example configuration file for Xen DomU guest linux.
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/files/xen-guest-example.cfg | 8 | ||||
-rw-r--r-- | meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bbappend | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/meta-xilinx-virtualization/recipes-extended/xen/files/xen-guest-example.cfg b/meta-xilinx-virtualization/recipes-extended/xen/files/xen-guest-example.cfg new file mode 100644 index 00000000..cc7651f2 --- /dev/null +++ b/meta-xilinx-virtualization/recipes-extended/xen/files/xen-guest-example.cfg | |||
@@ -0,0 +1,8 @@ | |||
1 | name = "guest0" | ||
2 | kernel = "/boot/Image" | ||
3 | vif = [ 'model=virtio-net,type=ioemu' ] | ||
4 | vfb=[''] | ||
5 | ramdisk = "/root/rootfs.cpio.gz" | ||
6 | extra ="console=hvc0 init=/bin/sh root=/dev/ram0" | ||
7 | memory = 800 | ||
8 | vcpus = 1 | ||
diff --git a/meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bbappend b/meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bbappend index e2c75566..6386dd26 100644 --- a/meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bbappend +++ b/meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bbappend | |||
@@ -2,8 +2,17 @@ require xen-xilinx_4.18.inc | |||
2 | 2 | ||
3 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | 3 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" |
4 | 4 | ||
5 | SRC_URI += " \ | ||
6 | file://xen-guest-example.cfg \ | ||
7 | " | ||
8 | |||
5 | RDEPENDS:${PN}-efi += "bash python3" | 9 | RDEPENDS:${PN}-efi += "bash python3" |
6 | 10 | ||
11 | do_install:append() { | ||
12 | install -d -m 0755 ${D}${sysconfdir}/xen | ||
13 | install -m 0644 ${WORKDIR}/xen-guest-example.cfg ${D}${sysconfdir}/xen/xen-guest-example.cfg | ||
14 | } | ||
15 | |||
7 | do_deploy:append() { | 16 | do_deploy:append() { |
8 | # Mimic older behavior for compatibility | 17 | # Mimic older behavior for compatibility |
9 | if [ -f ${DEPLOYDIR}/xen-${MACHINE} ]; then | 18 | if [ -f ${DEPLOYDIR}/xen-${MACHINE} ]; then |
@@ -18,3 +27,7 @@ do_deploy:append() { | |||
18 | ln -s xen-${MACHINE}.efi ${DEPLOYDIR}/xen.efi | 27 | ln -s xen-${MACHINE}.efi ${DEPLOYDIR}/xen.efi |
19 | fi | 28 | fi |
20 | } | 29 | } |
30 | |||
31 | FILES:${PN} += " \ | ||
32 | ${sysconfdir}/xen/xen-guest-example.cfg \ | ||
33 | " | ||