From: Markus Mayer Date: Wed, 27 Sep 2017 23:02:36 +0000 (-0700) Subject: tools/thermal: tmon: allow $(CC) to be defined externally X-Git-Tag: rel_imx_4.19.35_1.1.0~11239^2^2~1 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=c21568ffabed918882c61eada79146706bd94684;p=linux.git 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 Signed-off-by: Zhang Rui --- 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+=