mirror of https://gitee.com/openkylin/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 <mmayer@broadcom.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
This commit is contained in:
parent
ec04aa3ae8
commit
c21568ffab
|
@ -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+=
|
||||
|
|
Loading…
Reference in New Issue