mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
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
Block a user