summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-xilinx-core/classes/xilinx-vars.bbclass6
-rw-r--r--meta-xilinx-core/conf/machine/zynqmp-generic.conf3
-rw-r--r--meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend2
3 files changed, 8 insertions, 3 deletions
diff --git a/meta-xilinx-core/classes/xilinx-vars.bbclass b/meta-xilinx-core/classes/xilinx-vars.bbclass
index a1a0e38c..51d3cd87 100644
--- a/meta-xilinx-core/classes/xilinx-vars.bbclass
+++ b/meta-xilinx-core/classes/xilinx-vars.bbclass
@@ -23,4 +23,10 @@ python xilinx_variables_config_eventhandler () {
23 bb.fatal("The loaded DEFAULTTUNE is %s, but it appears you intended %s. " \ 23 bb.fatal("The loaded DEFAULTTUNE is %s, but it appears you intended %s. " \
24 "This is usually as a result of specifying it after the 'require' in the machine .conf file. " \ 24 "This is usually as a result of specifying it after the 'require' in the machine .conf file. " \
25 "See meta-xilinx-core/conf/machine/README." % (tune_prior, tune_final)) 25 "See meta-xilinx-core/conf/machine/README." % (tune_prior, tune_final))
26
27 # Verify 'xilinx' is in LICENSE_FLAGS_ACCEPTED
28 license_flags = d.getVar('LICENSE_FLAGS_ACCEPTED') or ""
29 if 'xilinx' not in license_flags.split():
30 bb.warn("The ZynqMP pmu-rom is not enabled, qemu may not be able to emulate a ZynqMP system without it. " \
31 "To enable this you must add 'xilinx' to the LICENSE_FLAGS_ACCEPTED to indicate you accept the software license.")
26} 32}
diff --git a/meta-xilinx-core/conf/machine/zynqmp-generic.conf b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
index 1ca25862..6c01548f 100644
--- a/meta-xilinx-core/conf/machine/zynqmp-generic.conf
+++ b/meta-xilinx-core/conf/machine/zynqmp-generic.conf
@@ -60,9 +60,6 @@ HDF_MACHINE = "zcu102-zynqmp"
60# Basic features: 60# Basic features:
61MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget wifi bluetooth" 61MACHINE_FEATURES += "rtc ext2 ext3 vfat usbhost usbgadget wifi bluetooth"
62 62
63# Qemu Xilinx Native when targeting ZynqMP generic requires the pmu rom
64DEPENDS:append:pn-qemu-xilinx-native = " pmu-rom-native"
65
66# Default SD image build onfiguration, use qemu-sd to pad 63# Default SD image build onfiguration, use qemu-sd to pad
67IMAGE_CLASSES += "image-types-xilinx-qemu" 64IMAGE_CLASSES += "image-types-xilinx-qemu"
68# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies 65# Add wic.qemu-sd only if initramfs_image not set due to circular dependecies
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend
new file mode 100644
index 00000000..0444dbab
--- /dev/null
+++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-system-native_%.bbappend
@@ -0,0 +1,2 @@
1# Automatically enable pmu-rom-native for ZynqMP support, or warn the user
2DEPENDS .= "${@' pmu-rom-native' if 'xilinx' in d.getVar('LICENSE_FLAGS_ACCEPTED').split() else ''}"