Driver porting: compiling external modules with local includes
Posted Oct 20, 2004 5:24 UTC (Wed) by
amcrae (guest, #25501)
In reply to:
Driver porting: compiling external modules with local includes by geoff_o
Parent article:
Driver porting: compiling external modules
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 needed to do the same thing. You can do this with the EXTRA_CFLAGS Makefile variable:
...
obj-m += file.o
EXTRA_CFLAGS += -I$(obj)/../include
Cheers,
AMc
(
Log in to post comments)