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>hifive-unleashed-5.1
parent
ec04aa3ae8
commit
c21568ffab
|
@ -8,7 +8,7 @@ WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-
|
||||||
CFLAGS+= -O1 ${WARNFLAGS}
|
CFLAGS+= -O1 ${WARNFLAGS}
|
||||||
# Add "-fstack-protector" only if toolchain supports it.
|
# Add "-fstack-protector" only if toolchain supports it.
|
||||||
CFLAGS+= $(call cc-option,-fstack-protector)
|
CFLAGS+= $(call cc-option,-fstack-protector)
|
||||||
CC=$(CROSS_COMPILE)gcc
|
CC?= $(CROSS_COMPILE)gcc
|
||||||
|
|
||||||
CFLAGS+=-D VERSION=\"$(VERSION)\"
|
CFLAGS+=-D VERSION=\"$(VERSION)\"
|
||||||
LDFLAGS+=
|
LDFLAGS+=
|
||||||
|
|
Loading…
Reference in New Issue