iio: make tools more cross-compilation friendly
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 5 May 2015 08:42:12 +0000 (10:42 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 10 May 2015 19:31:45 +0000 (20:31 +0100)
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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/Makefile

index bf7ae6d6612a1b86948781c1f2cf9c575e3c54bf..3a7a54f59713809c7c8f2cda36461a07d55df191 100644 (file)
@@ -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