From f54f6229594a1f9de62d81c6909829a6a6d54153 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Wed, 6 Nov 2024 15:14:01 -0700 Subject: 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 --- meta-xilinx-core/classes/xilinx-deprecated.bbclass | 4 ++++ 1 file changed, 4 insertions(+) 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 () { if d.getVar('BOARD') or d.getVar('BOARD_VARIANT'): 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'))) + # Check for 'generic' machines, warn the user this isn't what they want + if d.getVar('MACHINE').endswith('-generic'): + 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')) + msg_list = d.getVarFlags('XILINX_DEPRECATED') or [] for msg_source in msg_list: if msg_source == "doc": -- cgit v1.2.3-54-g00ecf