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, where the xfs code is not embedded in fs/xfs?  i.e. using the

make -C /path/to/tree M=`pwd` modules
method...  Is cwd still the top of the tree?  How then to specify path 
to the out-of-tree build?

Note: No space between -I and fs/ due to a kbuild limitation.
Hm, maybe this is my whole problem, I'll double check.
Thanks,
-Eric
---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel


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

2004-11-17 Thread Sam Ravnborg
On Wed, Nov 17, 2004 at 07:54:47AM -0600, Eric Sandeen wrote:
 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, where the xfs code is not embedded in fs/xfs?  i.e. using the
 
 make -C /path/to/tree M=`pwd` modules
 
 method...  Is cwd still the top of the tree?  How then to specify path 
 to the out-of-tree build?
Then cwd will be same dir as where the Makefile is placed.
So just make sure to use same directory structure for XFS
no matter if it is in the kernel or outside the kernel.

Sam


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel


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

2004-11-16 Thread Sam Ravnborg
On Tue, Nov 16, 2004 at 10:47:57PM -0600, Eric Sandeen wrote:
 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 += -I $(TOPDIR)/fs/xfs -I $(TOPDIR)/fs/xfs/linux-2.6

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

Note: No space between -I and fs/ due to a kbuild limitation.

When using O= kbuild will transform the above to:
-Ifs/xfs -I$(srctree)/fs/xfs -Ifs/xfs/linux-2.6 -I$(srctree)/fs/xfs/linux-2.6
So we will find the right .h files.

Sam


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel