From 6dc6433663d3b0d3022cf0f6317be0c3565965be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Thu, 5 Aug 2021 20:52:15 +0200 Subject: [PATCH] picolibc: Reset color in error message if picolibc is not available This is a regression which was introduced in #16114, without resetting the color the red color will be used for all following text written to the terminal and will also cause the shell prompt etc. pp. to be colored in red which is undesirable. This commit fixes this regression by using the ANSI escape sequences to reset the color after the error message has been written. --- makefiles/libc/picolibc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/libc/picolibc.mk b/makefiles/libc/picolibc.mk index f63da6e141..ccb8bb5a63 100644 --- a/makefiles/libc/picolibc.mk +++ b/makefiles/libc/picolibc.mk @@ -17,7 +17,7 @@ _missing-picolibc: @$(Q)echo "picolibc was selected to be build but no picolibc.spec could be found" @$(Q)echo "you might want to install "picolibc" for "$(TARGET_ARCH)"" @$(Q)echo "or add "FEATURES_BLACKLIST += picolibc" to Makefile)" - @$(COLOR_ECHO) "$(COLOR_RED)check your installation or build configuration." + @$(COLOR_ECHO) "$(COLOR_RED)check your installation or build configuration.$(COLOR_RESET)" @$(Q)exit 1 ifeq (1,$(USE_PICOLIBC))