summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/thermal/tmon/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile
index 3a961e998281..5777bc78173f 100644
--- a/tools/thermal/tmon/Makefile
+++ b/tools/thermal/tmon/Makefile
@@ -1,8 +1,13 @@
1# We need this for the "cc-option" macro.
2include ../../../scripts/Kbuild.include
3
1VERSION = 1.0 4VERSION = 1.0
2 5
3BINDIR=usr/bin 6BINDIR=usr/bin
4WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-int 7WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-int
5CFLAGS+= -O1 ${WARNFLAGS} -fstack-protector 8CFLAGS+= -O1 ${WARNFLAGS}
9# Add "-fstack-protector" only if toolchain supports it.
10CFLAGS+= $(call cc-option,-fstack-protector)
6CC=$(CROSS_COMPILE)gcc 11CC=$(CROSS_COMPILE)gcc
7 12
8CFLAGS+=-D VERSION=\"$(VERSION)\" 13CFLAGS+=-D VERSION=\"$(VERSION)\"