aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-egvirt/README.md10
-rw-r--r--meta-egvirt/conf/include/agl_egvirt.inc2
-rw-r--r--meta-egvirt/recipes-core/qemu/qemu_2.%.bbappend1
-rw-r--r--templates/feature/agl-egvirt/50_local.conf.inc9
4 files changed, 22 insertions, 0 deletions
diff --git a/meta-egvirt/README.md b/meta-egvirt/README.md
index b6ba7a6a..15235ab9 100644
--- a/meta-egvirt/README.md
+++ b/meta-egvirt/README.md
@@ -13,6 +13,16 @@ depending on their availability and on the community interest.
Maintainers:
Michele Paolino <m.paolino@virtualopensystems.com>
+
+How to enable agl virtualization feature
+------------------------------------------------------
+In order to enable the agl virtualization features (agl-egvirt),
+each supported board needs to add in one of its configuration
+files (see for instance meta-agl/meta-agl-bsp/conf/include)
+the following line:
+
+MACHINE_FEATURES += "agl-egvirt"
+
References
------------------------------------------------------
EG-VIRT wikipage:
diff --git a/meta-egvirt/conf/include/agl_egvirt.inc b/meta-egvirt/conf/include/agl_egvirt.inc
new file mode 100644
index 00000000..b4df5d8b
--- /dev/null
+++ b/meta-egvirt/conf/include/agl_egvirt.inc
@@ -0,0 +1,2 @@
+OVERRIDES .= "${@bb.utils.contains('MACHINE_FEATURES', 'agl-egvirt', ':aglegvirt', '', d)}"
+IMAGE_INSTALL_append_aglegvirt = " qemu "
diff --git a/meta-egvirt/recipes-core/qemu/qemu_2.%.bbappend b/meta-egvirt/recipes-core/qemu/qemu_2.%.bbappend
new file mode 100644
index 00000000..1a6a98b7
--- /dev/null
+++ b/meta-egvirt/recipes-core/qemu/qemu_2.%.bbappend
@@ -0,0 +1 @@
+QEMU_TARGETS_class-target_aglegvirt = " aarch64 x86_64"
diff --git a/templates/feature/agl-egvirt/50_local.conf.inc b/templates/feature/agl-egvirt/50_local.conf.inc
new file mode 100644
index 00000000..48590c40
--- /dev/null
+++ b/templates/feature/agl-egvirt/50_local.conf.inc
@@ -0,0 +1,9 @@
+#see meta-agl-devel/meta-egvirt/conf/include/agl_egvirt.inc
+require conf/include/agl_egvirt.inc
+
+# In order to enable the agl virtualization features (agl-egvirt),
+# each supported board needs to add in one of its configuration
+# files (see for instance meta-agl/meta-agl-bsp/conf/include)
+# the following line:
+#
+# MACHINE_FEATURES += "agl-egvirt"