Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1621154
| From | Sekhar Nori <nsekhar@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] tools: iio: add ability to pass kernel headers |
| Date | 2017-04-11 13:10 +0200 |
| Message-ID | <tv1Qm-6cc-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Very often, especially when cross compiling, there is a need to pass kernel headers different from those installed on the build machine. Add support for doing this for iio utils by using the 'INSTALL_HDR_PATH' environment variable. This is supported by 'make headers_install' for installing kernel headers at a user specified location. So you will do: $ make headers_install ARCH=arm INSTALL_HDR_PATH=<absolute-path> $ make -C tools/iio ARCH=arm INSTALL_HDR_PATH=<absolute-path> Signed-off-by: Sekhar Nori <nsekhar@ti.com> --- tools/iio/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/iio/Makefile b/tools/iio/Makefile index 5446d625e17d..75607043d6e2 100644 --- a/tools/iio/Makefile +++ b/tools/iio/Makefile @@ -1,5 +1,5 @@ CC = $(CROSS_COMPILE)gcc -CFLAGS += -Wall -g -D_GNU_SOURCE +CFLAGS += -Wall -g -D_GNU_SOURCE -I$(INSTALL_HDR_PATH)/include BINDIR=usr/bin INSTALL_PROGRAM=install -m 755 -p -- 2.9.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] tools: iio: add ability to pass kernel headers Sekhar Nori <nsekhar@ti.com> - 2017-04-11 13:10 +0200
Re: [PATCH] tools: iio: add ability to pass kernel headers Jonathan Cameron <jic23@kernel.org> - 2017-04-14 16:50 +0200
Re: [PATCH] tools: iio: add ability to pass kernel headers Jonathan Cameron <jic23@kernel.org> - 2017-04-14 17:30 +0200
Re: [PATCH] tools: iio: add ability to pass kernel headers Sekhar Nori <nsekhar@ti.com> - 2017-04-18 12:20 +0200
Re: [PATCH] tools: iio: add ability to pass kernel headers Sekhar Nori <nsekhar@ti.com> - 2017-04-20 16:00 +0200
Re: [PATCH] tools: iio: add ability to pass kernel headers Randy Dunlap <rdunlap@infradead.org> - 2017-04-20 17:30 +0200
Re: [PATCH] tools: iio: add ability to pass kernel headers Randy Dunlap <rdunlap@infradead.org> - 2017-04-14 17:30 +0200
csiph-web