Skip to content

Commit

Permalink
tools/thermal: tmon: support cross-compiling
Browse files Browse the repository at this point in the history
We might want to prepare CFLAGS outside of this Makefile, so don't
overwrite its initial value.

Then, support $(CROSS_COMPILE), so we can use a cross-compile toolchain.

Signed-off-by: Brian Norris <[email protected]>
Acked-by: Jacob Pan <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
  • Loading branch information
computersforpeace authored and zhang-rui committed Feb 28, 2015
1 parent 3dc3712 commit 1b0eaa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/thermal/tmon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ VERSION = 1.0

BINDIR=usr/bin
WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-int
CFLAGS= -O1 ${WARNFLAGS} -fstack-protector
CC=gcc
CFLAGS+= -O1 ${WARNFLAGS} -fstack-protector
CC=$(CROSS_COMPILE)gcc

CFLAGS+=-D VERSION=\"$(VERSION)\"
LDFLAGS+=
Expand Down

0 comments on commit 1b0eaa2

Please sign in to comment.