From 48e4b8c06e503868404b99bf45a46a52794baa5a Mon Sep 17 00:00:00 2001 From: Bastien JAUNY Date: Fri, 17 Jan 2025 16:48:07 +0100 Subject: [PATCH] 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 --- meta/classes-global/logging.bbclass | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meta/classes-global/logging.bbclass b/meta/classes-global/logging.bbclass index ce03abfe425..136f1e17339 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 -- 2.47.3