From: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
To: jorge.ramirez-ortiz@linaro.org, broonie@kernel.org,
linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] tools: spi: enable CROSS_COMPILE in Makefile
Date: Wed, 7 Sep 2016 16:28:16 +0200 [thread overview]
Message-ID: <1473258496-14565-1-git-send-email-jorge.ramirez-ortiz@linaro.org> (raw)
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.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
next reply other threads:[~2016-09-07 14:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-07 14:28 Jorge Ramirez-Ortiz [this message]
2016-09-07 15:06 ` Daniel Thompson
2016-09-07 15:24 ` Jorge Ramirez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1473258496-14565-1-git-send-email-jorge.ramirez-ortiz@linaro.org \
--to=jorge.ramirez-ortiz@linaro.org \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®