diff options
Diffstat (limited to 'meta-xilinx-core/classes/xilinx-deprecated.bbclass')
-rw-r--r-- | meta-xilinx-core/classes/xilinx-deprecated.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-xilinx-core/classes/xilinx-deprecated.bbclass b/meta-xilinx-core/classes/xilinx-deprecated.bbclass index 1aee2fe1..788b963e 100644 --- a/meta-xilinx-core/classes/xilinx-deprecated.bbclass +++ b/meta-xilinx-core/classes/xilinx-deprecated.bbclass | |||
@@ -9,10 +9,15 @@ 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": |
15 | continue | 19 | continue |
16 | msg = d.getVarFlag('XILINX_DEPRECATED', msg_source) or "" | 20 | msg = d.getVarFlag('XILINX_DEPRECATED', msg_source) or "" |
17 | bb.warn('%s: %s' % (msg_source, msg)) | 21 | if msg: |
22 | bb.warn('%s: %s' % (msg_source, msg)) | ||
18 | } | 23 | } |