summaryrefslogtreecommitdiff
path: root/tools/thermal/tmon
diff options
context:
space:
mode:
authorMarkus Mayer <mmayer@broadcom.com>2017-09-27 16:02:36 -0700
committerZhang Rui <rui.zhang@intel.com>2017-10-18 09:59:31 +0800
commitc21568ffabed918882c61eada79146706bd94684 (patch)
treeeb646b06d4e87425ede6a481bc390652221de8c5 /tools/thermal/tmon
parentec04aa3ae87b895dbc674a7e0b78b670f73a2c22 (diff)
tools/thermal: tmon: allow $(CC) to be defined externally
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>
Diffstat (limited to 'tools/thermal/tmon')
-rw-r--r--tools/thermal/tmon/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile
index 5777bc78173f..581da716ea1c 100644
--- a/tools/thermal/tmon/Makefile
+++ b/tools/thermal/tmon/Makefile
@@ -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+=