Browse Source

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

Fixes [YOCTO #15688]

Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
(From OE-Core rev: 48e4b8c06e503868404b99bf45a46a52794baa5a)

Signed-off-by: Bastien JAUNY <bastien.jauny@smile.fr>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Bastien JAUNY 4 months ago
parent
commit
16c44defcd
1 changed files with 10 additions and 0 deletions
  1. 10 0
      meta/classes-global/logging.bbclass

+ 10 - 0
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