summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2024-08-14 18:33:33 -0600
committerMark Hatle <mark.hatle@amd.com>2024-08-25 08:40:04 -0600
commitc70f8dbe7bdafebfa5ff432980764b5742fa42d4 (patch)
tree67614e026a156d4945c2f1cc5cfed17a2c927bdd
parent0e3bed12a3e802fe33b8ac4484a67bdeda7b7da7 (diff)
downloadmeta-xilinx-c70f8dbe7bdafebfa5ff432980764b5742fa42d4.tar.gz
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 <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/classes/xilinx-deprecated.bbclass3
1 files changed, 2 insertions, 1 deletions
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 () {
14 if msg_source == "doc": 14 if msg_source == "doc":
15 continue 15 continue
16 msg = d.getVarFlag('XILINX_DEPRECATED', msg_source) or "" 16 msg = d.getVarFlag('XILINX_DEPRECATED', msg_source) or ""
17 bb.warn('%s: %s' % (msg_source, msg)) 17 if msg:
18 bb.warn('%s: %s' % (msg_source, msg))
18} 19}