From: Linus Walleij Date: Tue, 5 May 2015 08:42:12 +0000 (+0200) Subject: iio: make tools more cross-compilation friendly X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=54628687fa2df2d3755912954afa67665ed122cc;p=linux-beck.git iio: make tools more cross-compilation friendly 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 Acked-by: Daniel Baluta Signed-off-by: Jonathan Cameron --- 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