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

Reply via email to