From: Daniel Thompson <daniel.thompson@linaro.org>
To: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>,
broonie@kernel.org, linux-spi@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tools: spi: enable CROSS_COMPILE in Makefile
Date: Wed, 7 Sep 2016 16:06:39 +0100 [thread overview]
Message-ID: <ab8b24cf-0d9a-60e5-9291-d5e6e44756be@linaro.org> (raw)
In-Reply-To: <1473258496-14565-1-git-send-email-jorge.ramirez-ortiz@linaro.org>
On 07/09/16 15:28, Jorge Ramirez-Ortiz wrote:
> 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 $@ $<
What is this extra rule for?
The built in rules should already honour both these variables (and more
besides).
Daniel.
next prev parent reply other threads:[~2016-09-07 15:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-07 14:28 [PATCH] tools: spi: enable CROSS_COMPILE in Makefile Jorge Ramirez-Ortiz
2016-09-07 15:06 ` Daniel Thompson [this message]
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=ab8b24cf-0d9a-60e5-9291-d5e6e44756be@linaro.org \
--to=daniel.thompson@linaro.org \
--cc=broonie@kernel.org \
--cc=jorge.ramirez-ortiz@linaro.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;
as well as URLs for NNTP newsgroup(s).