From: Bastien JAUNY Date: Fri, 17 Jan 2025 15:48:07 +0000 (+0100) Subject: classes/logging: Added the bbverbnote command to the logging set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e4b8c06e503868404b99bf45a46a52794baa5a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git classes/logging: Added the bbverbnote command to the logging set Fixes [YOCTO #15688] Reviewed-by: Yoann Congal Signed-off-by: Bastien JAUNY Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- 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