aboutsummaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc')
-rw-r--r--meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc b/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc
new file mode 100644
index 00000000..c450b542
--- /dev/null
+++ b/meta-xilinx-core/conf/machine/include/machine-xilinx-qemu.inc
@@ -0,0 +1,25 @@
+# This include is used to setup default QEMU and qemuboot config for meta-xilinx
+# machines.
+
+PREFERRED_PROVIDER_qemu-native = "qemu-xilinx-native"
+PREFERRED_PROVIDER_qemu-system-native = "qemu-xilinx-system-native"
+PREFERRED_PROVIDER_nativesdk-qemu = "nativesdk-qemu-xilinx"
+
+# enable the overrides for the context of the conf only
+MACHINEOVERRIDES =. "qemuboot-xilinx:"
+
+# depend on qemu-helper-native, which will depend on QEMU
+EXTRA_IMAGEDEPENDS += "qemu-system-native qemu-helper-native:do_addto_recipe_sysroot"
+
+# Use the xilinx specific version for these users
+IMAGE_CLASSES += "qemuboot-xilinx"
+
+# As of Yocto Project nanbield, if a -serial is pass in QB_OPT_APPEND the
+# runqemu may add additional null entries or simply skip further setup.
+#
+# To help us be able to adjust for this behavior add a special
+# QB_XILINX_SERIAL that will allow us to define serial ports for qemu
+# emulated boards that may not match the standard Linux behavior.
+#
+QB_XILINX_SERIAL ?= ""
+QB_OPT_APPEND += "${QB_XILINX_SERIAL}"