summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Fiergolski <adrian.fiergolski@fastree3d.com>2024-06-13 16:05:30 +0200
committerMark Hatle <mark.hatle@amd.com>2024-11-21 10:43:44 -0600
commit4606c83b959fb6adab21196c7115393d8643cc30 (patch)
treef536830f7828e6ba5cd6785e7aa29eb5bf4ed9a8
parentc500b09c8d3631f589dbd23ccb99b35f88dab998 (diff)
downloadmeta-xilinx-4606c83b959fb6adab21196c7115393d8643cc30.tar.gz
xilinx-vars.bbclass: Skip Xilinx license warning for per-package license flag
As described in the README.md, user can enable the 'xilinx' license on a per-package basis (i.e. 'xilinx_pmu-rom-native') in LICENSE_FLAGS_ACCEPTED. This patch updates the license flag check to reflect that possibility. Signed-off-by: Adrian Fiergolski <Adrian.Fiergolski@fastree3d.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/classes/xilinx-vars.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-xilinx-core/classes/xilinx-vars.bbclass b/meta-xilinx-core/classes/xilinx-vars.bbclass
index 51d3cd87..19cf8771 100644
--- a/meta-xilinx-core/classes/xilinx-vars.bbclass
+++ b/meta-xilinx-core/classes/xilinx-vars.bbclass
@@ -26,7 +26,7 @@ python xilinx_variables_config_eventhandler () {
26 26
27 # Verify 'xilinx' is in LICENSE_FLAGS_ACCEPTED 27 # Verify 'xilinx' is in LICENSE_FLAGS_ACCEPTED
28 license_flags = d.getVar('LICENSE_FLAGS_ACCEPTED') or "" 28 license_flags = d.getVar('LICENSE_FLAGS_ACCEPTED') or ""
29 if 'xilinx' not in license_flags.split(): 29 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. " \ 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.") 31 "To enable this you must add 'xilinx' to the LICENSE_FLAGS_ACCEPTED to indicate you accept the software license.")
32} 32}