diff options
author | Markus Mayer <mmayer@broadcom.com> | 2017-09-27 16:02:36 -0700 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2017-10-18 09:59:31 +0800 |
commit | c21568ffabed918882c61eada79146706bd94684 (patch) | |
tree | eb646b06d4e87425ede6a481bc390652221de8c5 /tools/thermal/tmon | |
parent | ec04aa3ae87b895dbc674a7e0b78b670f73a2c22 (diff) | |
download | linux-stable-c21568ffabed918882c61eada79146706bd94684.tar.gz linux-stable-c21568ffabed918882c61eada79146706bd94684.tar.bz2 linux-stable-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/thermal/tmon')
-rw-r--r-- | tools/thermal/tmon/Makefile | 2 |
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+= |