[PATCH] tools: spi: enable CROSS_COMPILE in Makefile

From: Jorge Ramirez-Ortiz
Date: Wed Sep 07 2016 - 10:28:30 EST


Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@xxxxxxxxxx>
---
tools/spi/Makefile | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/tools/spi/Makefile b/tools/spi/Makefile
index cd0db62..d1845b0 100644
--- a/tools/spi/Makefile
+++ b/tools/spi/Makefile
@@ -1,4 +1,8 @@
+CC = $(CROSS_COMPILE)gcc
+
all: spidev_test spidev_fdx

+%: %.c
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
clean:
$(RM) spidev_test spidev_fdx
--
2.7.4