On Sat, 23 Jun 2001 00:29:45 -0400,
"Eric S. Raymond" <[EMAIL PROTECTED]> wrote:
>Keith Owens <[EMAIL PROTECTED]>:
>> There is still the work required to handle CML2 with separate source
>> and object trees and with multiple source trees.
>
>What can I do to faclitate this, if anything?
Take a look at scripts/Makefile-2.5 in kbuild-2.4.3, target
$(tmp_config_links):. For CML1 it :-
* Changes to the object directory $(KBUILD_OBJTREE).tmp_config/links,
source and object can be separate.
* Extracts the names of all config related files from .tmp_filelist.txt.
* Does mkdir -p under .tmp_config/links for directories to hold links
to the config files.
* Symlinks from .tmp_config/links/... to the config related files.
* Appends data for config.in-2.5. In 2.5 those extra menu items should
be part of the config data, this is a temporary change to avoid
patching 2.4 code.
Once the forest of symlinks has been built, all the CML1 programs run
under .tmp_config/links which makes it appear that all the config files
are in one place, even when they are scattered over multiple source
trees and the object tree.
The easiest option is to build an equivalent CML2 forest, containing
links to its files then run CML2 under that forest. Also define
tmp_config_copyout-2 and tmp_config_copyback-2 routines to copy .config
and other files to and from the forest.
The other change is to separate source and object files in CML2. All
input other than the files in the symlink forest must be
$(scripts_srctree), all output files must be $(scripts_objtree).
I run
export KBUILD_SRCTREE_000=/build/kaos/2.4.4-makefile-2.5
export KBUILD_OBJTREE=/build/kaos/object-2.4.4
make -f $KBUILD_SRCTREE_000/Makefile-2.5 *config
to verify that the source is untouched and that CML1 works under the forest.
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/kbuild-devel