Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1478335 > unrolled thread
| Started by | Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> |
|---|---|
| First post | 2016-09-07 16:30 +0200 |
| Last post | 2016-09-07 17:30 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
[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
| From | Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> |
|---|---|
| Date | 2016-09-07 16:30 +0200 |
| Subject | [PATCH] tools: spi: enable CROSS_COMPILE in Makefile |
| Message-ID | <seM1r-TB-11@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Daniel Thompson <daniel.thompson@linaro.org> |
|---|---|
| Date | 2016-09-07 17:10 +0200 |
| Message-ID | <seMEa-1mo-29@gated-at.bofh.it> |
| In reply to | #1478335 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Jorge Ramirez <jorge.ramirez-ortiz@linaro.org> |
|---|---|
| Date | 2016-09-07 17:30 +0200 |
| Message-ID | <seMXw-1t1-65@gated-at.bofh.it> |
| In reply to | #1478389 |
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@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? 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.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web