[kbuild-devel] using $(src) in EXTRA_CFLAGS

2004-11-16 Thread Eric Sandeen
I'm trying to make the XFS makefile work either embedded in the kernel tree at fs/xfs/Makefile, or as an "out of tree" makefile (make -C /path/to/kernel M=), and keep O= working properly as well. We currently have EXTRA_CFLAGS set in the fs/xfs/quota/Makefile, things like: EXTRA_CFLAGS +=

Re: [kbuild-devel] using $(src) in EXTRA_CFLAGS

2004-11-17 Thread Eric Sandeen
Sam Ravnborg wrote: There is no need to specify full path. The kernel is always build with top of output tree as current directory so a much simpler version is enough: EXTRA_CFLAGS += -Ifs/xfs -Ifs/xfs/linux-2.6 But what about the case where I wish to use the same Makefile to work out of tree, whe

[kbuild-devel] using if_changed with implicit rules

2004-11-29 Thread Eric Sandeen
if I have something like: quiet_cmd_systune = SYSTUNE $< cmd_systune = $(dir $<)/gen_systune.pl \ $< \ $(obj)/$(*F)_systunes.c \ $(obj)/$(*F)_systunes.h

Re: [kbuild-devel] using if_changed with implicit rules

2004-11-29 Thread Eric Sandeen
Sam Ravnborg wrote: Yes, you just use: targets += $(wildcard %_systunes.c %_systunes.h) Thanks Sam! Sorry for asking dumb make questions on the kbuild list! (although I didn't realize that's what I was doing) ;-) -Eric --- SF email is sponsore

[kbuild-devel] best practices for kerntypes?

2005-07-26 Thread Eric Sandeen
Christoph Hellwig started a thread a while ago about integrating kerntypes builds into kbuild, but I'm not sure anything came of it. Unfortunately I have to build some kerntypes files nonetheless. :) I'm currently building the kerntypes file as a hostprog, and forcing it to be built w/ kernel

Re: [kbuild-devel] best practices for kerntypes?

2005-07-26 Thread Eric Sandeen
Sam Ravnborg wrote: The big issue with Kerntypes is that to be complete you need to link in files from different places. To create just a single Kerntypes.o file you can add the following to kernel/Makefile, drivers/Makefile or similar. no good way to do multiple .o's though? Latest lcrash -c