summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-core/classes')
-rw-r--r--meta-xilinx-core/classes/xilinx-deprecated.bbclass3
-rw-r--r--meta-xilinx-core/classes/xilinx-vars.bbclass11
2 files changed, 3 insertions, 11 deletions
diff --git a/meta-xilinx-core/classes/xilinx-deprecated.bbclass b/meta-xilinx-core/classes/xilinx-deprecated.bbclass
index 1aee2fe1..c7509feb 100644
--- a/meta-xilinx-core/classes/xilinx-deprecated.bbclass
+++ b/meta-xilinx-core/classes/xilinx-deprecated.bbclass
@@ -14,5 +14,6 @@ python xilinx_deprecated_config_eventhandler () {
14 if msg_source == "doc": 14 if msg_source == "doc":
15 continue 15 continue
16 msg = d.getVarFlag('XILINX_DEPRECATED', msg_source) or "" 16 msg = d.getVarFlag('XILINX_DEPRECATED', msg_source) or ""
17 bb.warn('%s: %s' % (msg_source, msg)) 17 if msg:
18 bb.warn('%s: %s' % (msg_source, msg))
18} 19}
diff --git a/meta-xilinx-core/classes/xilinx-vars.bbclass b/meta-xilinx-core/classes/xilinx-vars.bbclass
index 51d3cd87..e19918ca 100644
--- a/meta-xilinx-core/classes/xilinx-vars.bbclass
+++ b/meta-xilinx-core/classes/xilinx-vars.bbclass
@@ -6,15 +6,6 @@ xilinx_variables_config_eventhandler[eventmask] = "bb.event.ConfigParsed"
6# It's up to the base sytem to define the variables being used here, we're 6# It's up to the base sytem to define the variables being used here, we're
7# only going to check them. 7# only going to check them.
8python xilinx_variables_config_eventhandler () { 8python xilinx_variables_config_eventhandler () {
9 # Verify HDF_MACHINE
10 hdf_prior = d.getVar('HDF_MACHINE_PRIOR')
11 hdf_final = d.getVar('HDF_MACHINE')
12
13 if hdf_prior and hdf_prior != hdf_final:
14 bb.fatal("HDF_MACHINE is set to %s, it appears you intended %s. " \
15 "This is usually as a result of specifying it in the local.conf or before the 'require' in the machine .conf file. " \
16 "See meta-xilinx-core/conf/machine/README." % (hdf_final, hdf_prior))
17
18 # Verify DEFAULTTUNE 9 # Verify DEFAULTTUNE
19 tune_prior = d.getVar('DEFAULTTUNE_PRIOR') 10 tune_prior = d.getVar('DEFAULTTUNE_PRIOR')
20 tune_final = d.getVar('DEFAULTTUNE') 11 tune_final = d.getVar('DEFAULTTUNE')
@@ -26,7 +17,7 @@ python xilinx_variables_config_eventhandler () {
26 17
27 # Verify 'xilinx' is in LICENSE_FLAGS_ACCEPTED 18 # Verify 'xilinx' is in LICENSE_FLAGS_ACCEPTED
28 license_flags = d.getVar('LICENSE_FLAGS_ACCEPTED') or "" 19 license_flags = d.getVar('LICENSE_FLAGS_ACCEPTED') or ""
29 if 'xilinx' not in license_flags.split(): 20 if all(license not in license_flags.split() for license in ['xilinx', 'xilinx_pmu-rom-native']) :
30 bb.warn("The ZynqMP pmu-rom is not enabled, qemu may not be able to emulate a ZynqMP system without it. " \ 21 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.") 22 "To enable this you must add 'xilinx' to the LICENSE_FLAGS_ACCEPTED to indicate you accept the software license.")
32} 23}