On 09/07/2016 05:06 PM, Daniel Thompson wrote:
On 07/09/16 15:28, Jorge Ramirez-Ortiz wrote:
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 $@ $<
What is this extra rule for?
yes you are right. this one is not required. only setting CC. sending v2
The built in rules should already honour both these variables (and
more besides).
Daniel.
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html