Driver porting: compiling external modules with local includes
Driver porting: compiling external modules with local includes
Posted Oct 15, 2004 16:48 UTC (Fri) by geoff_o (guest, #25424)In reply to: Driver porting: compiling external modules with local includes by cpp9999
Parent article: Driver porting: compiling external modules
I've also been searching for the answer to this question.
What I'd like to be able to do is set a couple of extra 'include' paths. (I note from earlier articles that setting 'CFLAGS' is .. umm.. discouraged.)
I hope there's a work around, otherwise it makes it difficult to develop modules outside the kernel tree that depend on each other.
Does there exist a solution?
Thanks,
Geoff
Posted Oct 20, 2004 5:24 UTC (Wed)
by amcrae (guest, #25501)
[Link]
I needed to do the same thing. You can do this with the EXTRA_CFLAGS Makefile variable:
...
Cheers,
What I'd like to be able to do is set a couple of extra 'include' paths. (I note from earlier articles that setting 'CFLAGS' is .. umm.. discouraged.)Driver porting: compiling external modules with local includes
obj-m += file.o
EXTRA_CFLAGS += -I$(obj)/../include
AMc