aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarkus Mayer <mmayer@broadcom.com>2017-09-27 19:02:36 -0400
committerZhang Rui <rui.zhang@intel.com>2017-10-17 21:59:31 -0400
commitc21568ffabed918882c61eada79146706bd94684 (patch)
treeeb646b06d4e87425ede6a481bc390652221de8c5 /tools
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')
-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-
8CFLAGS+= -O1 ${WARNFLAGS} 8CFLAGS+= -O1 ${WARNFLAGS}
9# Add "-fstack-protector" only if toolchain supports it. 9# Add "-fstack-protector" only if toolchain supports it.
10CFLAGS+= $(call cc-option,-fstack-protector) 10CFLAGS+= $(call cc-option,-fstack-protector)
11CC=$(CROSS_COMPILE)gcc 11CC?= $(CROSS_COMPILE)gcc
12 12
13CFLAGS+=-D VERSION=\"$(VERSION)\" 13CFLAGS+=-D VERSION=\"$(VERSION)\"
14LDFLAGS+= 14LDFLAGS+=