* Compiling External Modules - Local Include Files
@ 2004-08-10 15:02 Chirag Pandya
2004-08-10 16:25 ` Sam Ravnborg
0 siblings, 1 reply; 2+ messages in thread
From: Chirag Pandya @ 2004-08-10 15:02 UTC (permalink / raw)
To: linux-kernel
I'm having trouble recompiling my 2.4 modules that
contain local include files. Here is the scenario:
Dir contents
------------
/home/radar/dirA/local.h
/home/radar/dirB/main.c
/home/radar/dirB/Makefile
main.c
------
#include "dirA/local.h"
main ()
{
/* Module Code*/
}
Using the following make command
# make -C /usr/src/linux-2.6.7 M=$(PWD) modules
I get the following error messages
Entering directory /usr/src/linux-2.6.7
CC [M] /home_dir/dirB/main.c:15:32: dirA/local.h: No
such file or directory
Obviously when I am in /usr/src/linux-2.6.7 I cannot
see local.h.
I noticed that PATCH 5/5 contains an extmodules.txt
document with but with a "local includes" section
still blank under TODO.
Any help on how I can fix this?
Thanks
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Compiling External Modules - Local Include Files
2004-08-10 15:02 Compiling External Modules - Local Include Files Chirag Pandya
@ 2004-08-10 16:25 ` Sam Ravnborg
0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2004-08-10 16:25 UTC (permalink / raw)
To: Chirag Pandya; +Cc: linux-kernel
Please add lkml on cc: when sending mails direct. I nthis way the list readers also
see the response.
On Tue, Aug 10, 2004 at 08:02:32AM -0700, Chirag Pandya wrote:
> I'm having trouble recompiling my 2.4 modules that
> contain local include files. Here is the scenario:
> Dir contents
> ------------
> /home/radar/dirA/local.h
> /home/radar/dirB/main.c
> /home/radar/dirB/Makefile
>
> main.c
> ------
> #include "dirA/local.h"
> main ()
> {
> /* Module Code*/
> }
>
> Using the following make command
> # make -C /usr/src/linux-2.6.7 M=$(PWD) modules
As explained in private mail two options exists:
1) Restructure your code to have .h file in
either the same dir as your code, and in a sub-directory
to the location of your .c files.
2) Use
EXTRA_CFLAGS := -I..
I recommend 1).
Sam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-10 16:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-10 15:02 Compiling External Modules - Local Include Files Chirag Pandya
2004-08-10 16:25 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®