I'm trying to build a linux 2.4.18 kernel with kbuild and using the 
Aegis configuration management system.  Unfortuantely Aegis makes heavy 
use symlinks to implement something similar to kbuild's shadow 
directories.  Aegis has the option not to use symlinks but the 
development tools must be able to find files in multiple directories. 
 This means using a sophisticated dependency maintenance tool (such as 
"cook") or GNU Make with the VPATH/vpath system.  The later is fine as 
far as the DMT is concerned but many tools that the DMT invokes must 
also be able to search in these directories.  These tools are genearlly 
not that smart.

It was suggested to on the Aegis list that kbuild is most likely using 
the VPATH/vpath method which seems very likely.  I assume the VPTAH is 
built up from the environment varialbes KBUILD_SRCTREE_XXX.  This is 
great and I have written a script to obtain the directories that Aegis 
searches for files and put them into the KBUILD_SRCTREE_XXX variables in 
ascending precendence order.  The problem is that KBUILD_SRCTREE_000 
must have the kbuild scripts and makefiles (according to the docs). 
 Unfortunately this is not possible as the kbuild patches have been 
applied to the development directory which is the deepest drectory in 
the tree.  This is the directory that should be searched first and 
therefore has the higest value for XXX, not 000 as required by kbuild.

Is there a solution ???

I think that the next version of KBUILD should change the order of 
precedence so that KBUILD_SRCTREE_000 has the highest precedence.  ie. 
is the first directory searched.  Is there any reason why this is not 
possible (besides a compatibility issue with previous versions and user 
habits).

Thanks,
Brendan Simon.



_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to