Changeset 36082


Ignore:
Timestamp:
2013-03-17T22:12:02+01:00 (5 years ago)
Author:
nbd
Message:

build: make the color of the 'configuration out of sync' warning red to make it harder for users to overlook

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/toplevel.mk

    r35716 r36082  
    99RELEASE:=Barrier Breaker 
    1010PREP_MK= OPENWRT_BUILD= QUIET=0 
     11 
     12export IS_TTY=$(shell tty -s && echo 1 || echo 0) 
    1113 
    1214include $(TOPDIR)/include/verbose.mk 
     
    2325export REVISION 
    2426export OPENWRTVERSION 
    25 export IS_TTY=$(shell tty -s && echo 1 || echo 0) 
    2627export LD_LIBRARY_PATH:=$(subst ::,:,$(if $(LD_LIBRARY_PATH),$(LD_LIBRARY_PATH):)$(STAGING_DIR_HOST)/lib) 
    2728export DYLD_LIBRARY_PATH:=$(subst ::,:,$(if $(DYLD_LIBRARY_PATH),$(DYLD_LIBRARY_PATH):)$(STAGING_DIR_HOST)/lib) 
     
    149150                ./scripts/config/conf -D tmp/.config -w tmp/.config Config.in > /dev/null 2>&1; \ 
    150151                if ./scripts/kconfig.pl '>' .config tmp/.config | grep -q CONFIG; then \ 
    151                         echo "WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!" >&2; \ 
     152                        printf "$(_R)WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!$(_N)\n" >&2; \ 
    152153                fi \ 
    153154        ) 
  • trunk/include/verbose.mk

    r31486 r36082  
    2828  ifneq ($(strip $(NO_COLOR)),1) 
    2929    _Y:=\\033[33m 
     30    _R:=\\033[31m 
    3031    _N:=\\033[m 
    3132  endif 
     
    3536  define MESSAGE 
    3637        printf "$(_Y)%s$(_N)\n" "$(1)" >&8 
     38  endef 
     39 
     40  define ERROR_MESSAGE 
     41        printf "$(_R)%s$(_N)\n" "$(1)" >&8 
    3742  endef 
    3843 
     
    5964    printf "%s\n" "$(1)" 
    6065  endef 
     66  ERROR_MESSAGE=$(MESSAGE) 
    6167endif 
Note: See TracChangeset for help on using the changeset viewer.