diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2023-01-14 17:20:38 -0800 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-01-16 07:26:08 -0800 |
| commit | f18cb7f8557658e6e046a87ef5bfb47fc69f069e (patch) | |
| tree | 4104ff75fe8c37ea2b0fb9d059a188ae21bd240d /meta-xilinx-core/classes | |
| parent | 8fe1ee1873ac97dd9fb721c4066c473c43de6fc6 (diff) | |
| download | meta-xilinx-f18cb7f8557658e6e046a87ef5bfb47fc69f069e.tar.gz | |
qemu-xilinx-system-native: Move pmu-rom enablement to recipe
Setting the pmu-rom being required by QEMU within the machine.conf will cause
the recipe's hash to change, which can cause a ripple effect causing other
things to rebuild. Moving this to the recipe, and switching it on based
on what licenses the user allows will avoid this conflict.
Additionally add a warning message to the xilinx-vars.bbclass if the user has
not enabled the license.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/classes')
| -rw-r--r-- | meta-xilinx-core/classes/xilinx-vars.bbclass | 6 |
1 files changed, 6 insertions, 0 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 | } |
