summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarkus Mayer <mmayer@broadcom.com>2017-09-28 01:02:36 +0200
committerZhang Rui <rui.zhang@intel.com>2017-10-18 03:59:31 +0200
commitc21568ffabed918882c61eada79146706bd94684 (patch)
treeeb646b06d4e87425ede6a481bc390652221de8c5 /tools
parenttools/thermal: tmon: use "-fstack-protector" only if supported (diff)
downloadlinux-c21568ffabed918882c61eada79146706bd94684.tar.xz
linux-c21568ffabed918882c61eada79146706bd94684.zip
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-
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+=