diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-05-05 10:42:12 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-05-10 21:31:45 +0200 |
commit | 54628687fa2df2d3755912954afa67665ed122cc (patch) | |
tree | 29f5a3fb44a1f85d9d057aa8fb4c8a387ef5ea3a /tools/iio | |
parent | iio: magnetometer: Add ACPI support for MMC35240 (diff) | |
download | linux-54628687fa2df2d3755912954afa67665ed122cc.tar.xz linux-54628687fa2df2d3755912954afa67665ed122cc.zip |
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 <linus.walleij@linaro.org>
Acked-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/iio')
-rw-r--r-- | tools/iio/Makefile | 4 |
1 files 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 |