[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1473258496-14565-1-git-send-email-jorge.ramirez-ortiz@linaro.org>
Date: Wed, 7 Sep 2016 16:28:16 +0200
From: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@...aro.org>
To: jorge.ramirez-ortiz@...aro.org, broonie@...nel.org,
linux-spi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] tools: spi: enable CROSS_COMPILE in Makefile
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@...aro.org>
---
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
Powered by blists - more mailing lists