How to add include path to kernel module Makefile
(SOLVED)
Hello
I have probably a stupid question. How do I add an include path for kernel module makefile? I want to include "test_kernel.h" in test_module.c
test_kernel.h resides in a different directory with relative path "../../common/" . I can include the file specifying the relative path, which works OK:
#include "../../common/test_kernel.h"
I would like include it without the relative path and specify path in Makefile similar to -I option available in application makefiles. I have tried EXTRA_CFLAGS += -I../../common/ in the makefile but no use. Any suggestions?
Thanks!
Last edited by oblix; 09-16-2009 at 08:56 AM.
Reason: problem solved
|