diff mbox series

classes/logging: Added the bbverbnote command to the logging set

Message ID 20250117154807.2465736-1-bastien.jauny@smile.fr
State Accepted, archived
Commit 48e4b8c06e503868404b99bf45a46a52794baa5a
Headers show
Series classes/logging: Added the bbverbnote command to the logging set | expand

Commit Message

Bastien Jauny Jan. 17, 2025, 3:48 p.m. UTC
From: Bastien JAUNY <bastien.jauny@smile.fr>

Fixes [YOCTO #15688]

Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Bastien JAUNY <bastien.jauny@smile.fr>
---
 meta/classes-global/logging.bbclass | 10 ++++++++++
 1 file changed, 10 insertions(+)
diff mbox series

Patch

diff --git a/meta/classes-global/logging.bbclass b/meta/classes-global/logging.bbclass
index ce03abfe42..136f1e1733 100644
--- a/meta/classes-global/logging.bbclass
+++ b/meta/classes-global/logging.bbclass
@@ -32,6 +32,16 @@  bbnote() {
 	fi
 }
 
+# Notify the user of a noteworthy condition.
+# Output: logs console
+bbverbnote() {
+        if [ -p ${LOGFIFO} ]; then
+                printf "%b\0" "bbverbnote $*" > ${LOGFIFO}
+        else
+            echo "NOTE: $*"
+        fi
+}
+
 # Print a warning to the log. Warnings are non-fatal, and do not
 # indicate a build failure.
 # Output: logs console