diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-11-06 15:14:01 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-11-11 11:26:41 -0700 |
commit | f54f6229594a1f9de62d81c6909829a6a6d54153 (patch) | |
tree | 60b1d5a073f705fd21f9760de6b958d9efa34e4a | |
parent | c5bee8411533dbc5866c3cbe0c7cfd66d249dc15 (diff) | |
download | meta-xilinx-f54f6229594a1f9de62d81c6909829a6a6d54153.tar.gz |
xilinx-deprecated: Make it clear directly building *-generic is deprecated
Print a message similar to:
WARNING: The zynqmp-generic machine is intended to be included by other
machines, it should not be used by itself. For a non-machine, SoC specific
filesystem, please use one of the common machines defined in
meta-xilinx-core.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r-- | meta-xilinx-core/classes/xilinx-deprecated.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-xilinx-core/classes/xilinx-deprecated.bbclass b/meta-xilinx-core/classes/xilinx-deprecated.bbclass index c7509feb..788b963e 100644 --- a/meta-xilinx-core/classes/xilinx-deprecated.bbclass +++ b/meta-xilinx-core/classes/xilinx-deprecated.bbclass | |||
@@ -9,6 +9,10 @@ python xilinx_deprecated_config_eventhandler () { | |||
9 | if d.getVar('BOARD') or d.getVar('BOARD_VARIANT'): | 9 | if d.getVar('BOARD') or d.getVar('BOARD_VARIANT'): |
10 | bb.error("Deprecated BOARD (%s) or BOARD_VARIANT (%s) is being used, they are no longer supported and are ignored." % (d.getVar('BOARD'), d.getVar('BOARD_VARIANT'))) | 10 | bb.error("Deprecated BOARD (%s) or BOARD_VARIANT (%s) is being used, they are no longer supported and are ignored." % (d.getVar('BOARD'), d.getVar('BOARD_VARIANT'))) |
11 | 11 | ||
12 | # Check for 'generic' machines, warn the user this isn't what they want | ||
13 | if d.getVar('MACHINE').endswith('-generic'): | ||
14 | bb.warn('The %s machine is intended to be included by other machines, it should not be used by itself. For a non-machine, SoC specific filesystem, please use one of the common machines defined in meta-xilinx-core.' % d.getVar('MACHINE')) | ||
15 | |||
12 | msg_list = d.getVarFlags('XILINX_DEPRECATED') or [] | 16 | msg_list = d.getVarFlags('XILINX_DEPRECATED') or [] |
13 | for msg_source in msg_list: | 17 | for msg_source in msg_list: |
14 | if msg_source == "doc": | 18 | if msg_source == "doc": |