Add macros for printing pretty warnings/errors in rules
Change-Id: Ia58e6bc1328c84e5f4ba1f6a2fd2d650e94e127e
This commit is contained in:
parent
a6f510c776
commit
dd5a5d328b
|
@ -834,6 +834,20 @@ $(subst //,/,$(1)/$(2))
|
|||
endef
|
||||
|
||||
|
||||
###########################################################
|
||||
## Color-coded warnings and errors in build rules
|
||||
##
|
||||
## $(1): message to print
|
||||
###########################################################
|
||||
define echo-warning
|
||||
echo -e "\e[1;35mwarning:\e[0m \e[1m" $(1) "\e[0m\n"
|
||||
endef
|
||||
|
||||
define echo-error
|
||||
echo -e "\e[1;31merror:\e[0m \e[1m" $(1) "\e[0m\n"
|
||||
endef
|
||||
|
||||
|
||||
###########################################################
|
||||
## Package filtering
|
||||
###########################################################
|
||||
|
|
Loading…
Reference in New Issue