diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-08-14 18:33:33 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-08-25 08:40:04 -0600 |
commit | c70f8dbe7bdafebfa5ff432980764b5742fa42d4 (patch) | |
tree | 67614e026a156d4945c2f1cc5cfed17a2c927bdd | |
parent | 0e3bed12a3e802fe33b8ac4484a67bdeda7b7da7 (diff) | |
download | meta-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.bbclass | 3 |
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 | } |