Re: [kbuild-devel] Re: State of the new config & build system

Giacomo A. Catenazzi (cate@dplanet.ch)
Sat, 29 Dec 2001 10:18:04 +0100


"Eric S. Raymond" wrote:
>
> Linus Torvalds <torvalds@transmeta.com>:
> > Eric, this is the _wrong_approach_. I want /local/ files, not global ones.
>
> First: where should the prompt-string definitions for capability
> symbols that occur in multiple port trees live?

Proposal:
the main cml script in linux root dir should be as little as possible.
it will include all the arch/*/ cml files (for really specifific
options) and you move other item into the subdir drivers/
(the natural place, all file who should not be in driver/ are
by definition arch specific).

>
> Second: Forward references, and references across the tree, mean that
> there is a class of symbols that have theoretically natural home directories
> but which would have to be declared elsewhere in order to be defined at
> the point of first reference.
>
> (A potential solution to this would be to improve the CML2 compiler's
> handling of forward references.)

No. CML2 could be improved to handle che forward references, but
not user that will use line config.

> Third: I could hack my installer to break Configure.help up into
> a bunch of little component CML files distributed through the tree...
> but Configure.help doesn't currently contain any markup that says
> where to direct each entry to.

The Makefile should help you.

> Fourth: There's still the localization issue. If it's your ukase
> that this is not an important problem, then I'll accept that -- but
> I haven't heard you say that yet, so I'm not sure you've considered
> it enough.

PROPOSAL: You add a tool to build a big file from the sparse
symbols.cml. Translator will use this file as references,
adn your CML2 will use translated big files or the default
sparse little files.

This should not be a problem, because a translator will read
documentation (unlike the most user), so you can explain
how to do this work. (And the 'diff' could be a friend
to the translators).

kbuild-2.5 have already support for 'clean' driver
(clean: driver that don't touch existing files).
I like it. If CML2 could handle natively also these
change it would great.
The problem is the use of multiple sources dir.
I think you and Keith should coordinate this
work.
And I find clean if also configuration files go
into makefiles.

giacomo

PS:

Keith: How you handle the obsolete files?
(foo.c in the main source. the patch in
source src1 will remove this file).
Actually I have create a shell script
kpatch: a new implementation of
scripts/patch-kernel, that handles
normal, testing and testing/incr patches,
dont-use patches, multiple sources and
new (and clean) destination dir).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/