From c70f8dbe7bdafebfa5ff432980764b5742fa42d4 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Wed, 14 Aug 2024 18:33:33 -0600 Subject: xilinx-deprecated: Only print a message if it's not blank Before all messages, even blank ones would be displayed. This made it difficult to have messages that only appeared sometimes. The standard yocto project behavior for messages is "" (blank) means no message, anything else gets displayed. Follow this behavior. Signed-off-by: Mark Hatle --- meta-xilinx-core/classes/xilinx-deprecated.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta-xilinx-core/classes/xilinx-deprecated.bbclass') diff --git a/meta-xilinx-core/classes/xilinx-deprecated.bbclass b/meta-xilinx-core/classes/xilinx-deprecated.bbclass index 1aee2fe1..c7509feb 100644 --- a/meta-xilinx-core/classes/xilinx-deprecated.bbclass +++ b/meta-xilinx-core/classes/xilinx-deprecated.bbclass @@ -14,5 +14,6 @@ python xilinx_deprecated_config_eventhandler () { if msg_source == "doc": continue msg = d.getVarFlag('XILINX_DEPRECATED', msg_source) or "" - bb.warn('%s: %s' % (msg_source, msg)) + if msg: + bb.warn('%s: %s' % (msg_source, msg)) } -- cgit v1.2.3-54-g00ecf