Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1478389

Re: [PATCH] tools: spi: enable CROSS_COMPILE in Makefile

From Daniel Thompson <daniel.thompson@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH] tools: spi: enable CROSS_COMPILE in Makefile
Date 2016-09-07 17:10 +0200
Message-ID <seMEa-1mo-29@gated-at.bofh.it> (permalink)
References <seM1r-TB-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] tools: spi: enable CROSS_COMPILE in Makefile Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> - 2016-09-07 16:30 +0200
  Re: [PATCH] tools: spi: enable CROSS_COMPILE in Makefile Daniel Thompson <daniel.thompson@linaro.org> - 2016-09-07 17:10 +0200
    Re: [PATCH] tools: spi: enable CROSS_COMPILE in Makefile Jorge Ramirez <jorge.ramirez-ortiz@linaro.org> - 2016-09-07 17:30 +0200

csiph-web