Add QUIET=1 option for make

This can be used to reduce verbosity for build messages.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-12-26 12:49:03 +02:00
parent 31705bf4fc
commit 010fa245bd
4 changed files with 20 additions and 2 deletions

View file

@ -913,6 +913,10 @@ ifeq ($(V), 1)
Q= Q=
E=true E=true
endif endif
ifeq ($(QUIET), 1)
Q=@
E=true
endif
ifdef CONFIG_CODE_COVERAGE ifdef CONFIG_CODE_COVERAGE
%.o: %.c %.o: %.c

View file

@ -15,6 +15,10 @@ ifeq ($(V), 1)
Q= Q=
E=true E=true
endif endif
ifeq ($(QUIET), 1)
Q=@
E=true
endif
%.o: %.c %.o: %.c
$(Q)$(CC) -c -o $@ $(CFLAGS) $< $(Q)$(CC) -c -o $@ $(CFLAGS) $<

View file

@ -32,6 +32,10 @@ ifeq ($(V), 1)
Q= Q=
E=true E=true
endif endif
ifeq ($(QUIET), 1)
Q=@
E=true
endif
%.o: %.c %.o: %.c
$(Q)$(CC) -c -o $@ $(CFLAGS) $< $(Q)$(CC) -c -o $@ $(CFLAGS) $<

View file

@ -1595,6 +1595,10 @@ ifeq ($(V), 1)
Q= Q=
E=true E=true
endif endif
ifeq ($(QUIET), 1)
Q=@
E=true
endif
dynamic_eap_methods: $(EAPDYN) dynamic_eap_methods: $(EAPDYN)
@ -1687,10 +1691,12 @@ else
endif endif
%.service: %.service.in %.service: %.service.in
sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@ $(Q)sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@
@$(E) " sed" $<
%@.service: %.service.arg.in %@.service: %.service.arg.in
sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@ $(Q)sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@
@$(E) " sed" $<
wpa_supplicant.exe: wpa_supplicant wpa_supplicant.exe: wpa_supplicant
mv -f $< $@ mv -f $< $@