summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2024-12-13 12:26:17 -0700
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:06 -0600
commit4156f5032ca8e5b0ba21023c118c58ea441f7aef (patch)
tree9335e80cb933954a1225a48b6367784d41181739
parentd95e1f722c130341900918f3952b1167d2861665 (diff)
downloadmeta-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.cfg8
-rw-r--r--meta-xilinx-virtualization/recipes-extended/xen/xen_4.18.bbappend13
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 @@
1name = "guest0"
2kernel = "/boot/Image"
3vif = [ 'model=virtio-net,type=ioemu' ]
4vfb=['']
5ramdisk = "/root/rootfs.cpio.gz"
6extra ="console=hvc0 init=/bin/sh root=/dev/ram0"
7memory = 800
8vcpus = 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
3FILESEXTRAPATHS:prepend := "${THISDIR}/files:" 3FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
4 4
5SRC_URI += " \
6 file://xen-guest-example.cfg \
7 "
8
5RDEPENDS:${PN}-efi += "bash python3" 9RDEPENDS:${PN}-efi += "bash python3"
6 10
11do_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
7do_deploy:append() { 16do_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
31FILES:${PN} += " \
32 ${sysconfdir}/xen/xen-guest-example.cfg \
33 "