[PATCH v3 1/4] build: let CHECKER & CHECKER_FLAGS be internals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These variables are only used for selfcheck and as such they
shouldn't be configurable from the command line or the environment.

So, turn 'CHECKER_FLAGS' into 'selfcheck-flags' and get rid of
'CHECKER'.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index bd2b089f3..c0c2727b0 100644
--- a/Makefile
+++ b/Makefile
@@ -11,8 +11,6 @@ CFLAGS += -Wall -Wwrite-strings
 LD = $(CC)
 AR = ar
 PKG_CONFIG = pkg-config
-CHECKER = CHECK=./sparse ./cgcc -no-compile
-CHECKER_FLAGS = -Wno-vla
 
 DESTDIR=
 PREFIX ?= $(HOME)
@@ -99,6 +97,9 @@ cflags += -DGCC_BASE=\"$(GCC_BASE)\"
 MULTIARCH_TRIPLET := $(shell $(CC) -print-multiarch 2>/dev/null)
 cflags += -DMULTIARCH_TRIPLET=\"$(MULTIARCH_TRIPLET)\"
 
+
+selfcheck-flags := -Wno-vla
+
 ########################################################################
 # target specificities
 
@@ -208,7 +209,7 @@ cflags   += $($(*)-cflags) $(CPPFLAGS) $(CFLAGS)
 
 %.sc: %.c sparse
 	@echo "  CHECK   $<"
-	$(Q) $(CHECKER) $(CHECKER_FLAGS) $(cflags) -c $<
+	$(Q)CHECK=./sparse ./cgcc -no-compile $(selfcheck-flags) $(cflags) -c $<
 
 selfcheck: $(OBJS:.o=.sc)
 
-- 
2.20.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux