* [PATCH] iio: make tools more cross-compilation friendly
@ 2015-05-05 8:42 Linus Walleij
2015-05-05 10:43 ` Daniel Baluta
0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2015-05-05 8:42 UTC (permalink / raw)
To: Jonathan Cameron, Hartmut Knaack, Lars-Peter Clausen,
Peter Meerwald, linux-iio, Denis CIOCCA
Cc: Lee Jones, Linus Walleij
When cross-compiling the IIO tools we need to opportunity to
specify a cross compiler prefix and some extra CFLAGS. This
patch enables this in the same way as for other stuff in
tools.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
tools/iio/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/iio/Makefile b/tools/iio/Makefile
index bf7ae6d6612a..3a7a54f59713 100644
--- a/tools/iio/Makefile
+++ b/tools/iio/Makefile
@@ -1,5 +1,5 @@
-CC = gcc
-CFLAGS = -Wall -g -D_GNU_SOURCE
+CC = $(CROSS_COMPILE)gcc
+CFLAGS += -Wall -g -D_GNU_SOURCE
all: iio_event_monitor lsiio generic_buffer
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: make tools more cross-compilation friendly
2015-05-05 8:42 [PATCH] iio: make tools more cross-compilation friendly Linus Walleij
@ 2015-05-05 10:43 ` Daniel Baluta
2015-05-08 14:50 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Baluta @ 2015-05-05 10:43 UTC (permalink / raw)
To: Linus Walleij, Jonathan Cameron, linux-iio
Cc: Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald, Denis CIOCCA,
Lee Jones
On 05/05/2015 11:42 AM, Linus Walleij wrote:
> When cross-compiling the IIO tools we need to opportunity to
> specify a cross compiler prefix and some extra CFLAGS. This
> patch enables this in the same way as for other stuff in
> tools.
>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Daniel Baluta <daniel.baluta@intel.com>
> ---
> tools/iio/Makefile | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/iio/Makefile b/tools/iio/Makefile
> index bf7ae6d6612a..3a7a54f59713 100644
> --- a/tools/iio/Makefile
> +++ b/tools/iio/Makefile
> @@ -1,5 +1,5 @@
> -CC = gcc
> -CFLAGS = -Wall -g -D_GNU_SOURCE
> +CC = $(CROSS_COMPILE)gcc
> +CFLAGS += -Wall -g -D_GNU_SOURCE
>
> all: iio_event_monitor lsiio generic_buffer
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: make tools more cross-compilation friendly
2015-05-05 10:43 ` Daniel Baluta
@ 2015-05-08 14:50 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2015-05-08 14:50 UTC (permalink / raw)
To: Daniel Baluta, Linus Walleij, linux-iio
Cc: Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald, Denis CIOCCA,
Lee Jones
On 05/05/15 06:43, Daniel Baluta wrote:
>
>
> On 05/05/2015 11:42 AM, Linus Walleij wrote:
>> When cross-compiling the IIO tools we need to opportunity to
>> specify a cross compiler prefix and some extra CFLAGS. This
>> patch enables this in the same way as for other stuff in
>> tools.
>>
>> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
>
> Acked-by: Daniel Baluta <daniel.baluta@intel.com>
Applied to the togreg branch of iio.git
Thanks,
Jonathan
>
>> ---
>> tools/iio/Makefile | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/tools/iio/Makefile b/tools/iio/Makefile
>> index bf7ae6d6612a..3a7a54f59713 100644
>> --- a/tools/iio/Makefile
>> +++ b/tools/iio/Makefile
>> @@ -1,5 +1,5 @@
>> -CC = gcc
>> -CFLAGS = -Wall -g -D_GNU_SOURCE
>> +CC = $(CROSS_COMPILE)gcc
>> +CFLAGS += -Wall -g -D_GNU_SOURCE
>>
>> all: iio_event_monitor lsiio generic_buffer
>>
>>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-08 18:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 8:42 [PATCH] iio: make tools more cross-compilation friendly Linus Walleij
2015-05-05 10:43 ` Daniel Baluta
2015-05-08 14:50 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox