tools/thermal: tmon: allow $(CC) to be defined externally
authorMarkus Mayer <mmayer@broadcom.com>
Wed, 27 Sep 2017 23:02:36 +0000 (16:02 -0700)
committerZhang Rui <rui.zhang@intel.com>
Wed, 18 Oct 2017 01:59:31 +0000 (09:59 +0800)
It can be helpful, especially when using a build system, to set the C
compiler externally.

Signed-off-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
tools/thermal/tmon/Makefile

index 5777bc78173f81f3e4be0283126e2925a84dd553..581da716ea1cc934a44546a9d786a7891b664fe8 100644 (file)
@@ -8,7 +8,7 @@ WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-
 CFLAGS+= -O1 ${WARNFLAGS}
 # Add "-fstack-protector" only if toolchain supports it.
 CFLAGS+= $(call cc-option,-fstack-protector)
-CC=$(CROSS_COMPILE)gcc
+CC?= $(CROSS_COMPILE)gcc
 
 CFLAGS+=-D VERSION=\"$(VERSION)\"
 LDFLAGS+=