Skip to contentSkip to conversation

Converting the 2.5 kernel to kbuild 2.5

kbuild-devel RaúlNúñez de Arenas Coronado 8 participants 11 messages Dec 4, 2001 – Dec 7, 2001

lore
Share & tools
lore
#0 lore raw

Hi Matthias :)

Quoted 1 line

Creating a dependency on Python? Is a non-issue.

Maybe for you. For me it *is* an issue. I don't like more and
more dependencies for the kernel. I mean, if I can drop kbuild and keep on building the kernel with the old good 'make config' I won't worry, but otherwise I don't think that kernel building depends on something like Python.

Why must I install Python in order to compile the kernel? I don't
understand this. I think there are better alternatives, but kbuild seems to be imposed any way.

Quoted 1 line

You don't make the pen yourself when writing a letter either.

I don't like to be forced in a particular pen, that's the reason
why I use and develop for linux.

Quoted 3 lines

What are the precise issues with Python? Just claiming it is an issue is not useful for discussing this. Archive pointers are welcome.

Well, let's start writing kernel drivers with Python, Perl, PHP,
awk, etc... And, why not, C++, Ada, Modula, etc...

The kernel should depend just on the compiler and assembler, IMHO.

Ra�l

#1 lore raw
Quoted 19 lines · RaúlNúñez de Arenas Coronado

Hi Matthias :)

Quoted 1 line

Creating a dependency on Python? Is a non-issue.

Maybe for you. For me it *is* an issue. I don't like more and
more dependencies for the kernel. I mean, if I can drop kbuild and keep on building the kernel with the old good 'make config' I won't worry, but otherwise I don't think that kernel building depends on something like Python.

Why must I install Python in order to compile the kernel? I don't
understand this. I think there are better alternatives, but kbuild seems to be imposed any way.

Quoted 1 line

You don't make the pen yourself when writing a letter either.

I don't like to be forced in a particular pen, that's the reason
why I use and develop for linux.

Quoted 8 lines
Quoted 3 lines

What are the precise issues with Python? Just claiming it is an issue is not useful for discussing this. Archive pointers are welcome.

Well, let's start writing kernel drivers with Python, Perl, PHP,
awk, etc... And, why not, C++, Ada, Modula, etc...

The kernel should depend just on the compiler and assembler, IMHO.

And you'll select and pass every .c file directly to the compiler via the command line ?? Sounds like a giant step forwards !!

#2 lore raw
In reply to RaúlNúñez de Arenas Coronado
Quoted 9 lines · Ra?l N??ez de Arenas Coronado

Hi Matthias :)

Quoted 1 line

Creating a dependency on Python? Is a non-issue.

Maybe for you. For me it *is* an issue. I don't like more and
more dependencies for the kernel. I mean, if I can drop kbuild and keep on building the kernel with the old good 'make config' I won't worry, but otherwise I don't think that kernel building depends on something like Python.

One of the things that I _think_ is happening is that lots of other scripts/ files are being redone, and thus removing them from the list, so in effect we're trading out one or two for just Python.

Quoted 3 lines

Why must I install Python in order to compile the kernel? I don't
understand this. I think there are better alternatives, but kbuild seems to be imposed any way.

kbuild != CML2. It all boils down to the current 'language' having no real definitive spec, and having 3+ incompatible parsers. We could either try and tweak the language slightly (and probably make it even harder on external parsers) or throw it out and try again. ESR wrote CML2 with a Python interpreter, so it uses Python. The spec for CML2 is out there, and there's even a CML2-in-C project. If you don't want to use Python, go help (I believe Greg Banks is who ESR mentioned is in charge of it) that project out and then convince Linus to include it.

Quoted 4 lines
Quoted 1 line

You don't make the pen yourself when writing a letter either.

I don't like to be forced in a particular pen, that's the reason
why I use and develop for linux.

To carry this analogy out a bit more, the details on how to make a pen exist, so if you don't like ESRs pen, go make your own. That's why a lot of people use Linux too.

Quoted 8 lines
Quoted 3 lines

What are the precise issues with Python? Just claiming it is an issue is not useful for discussing this. Archive pointers are welcome.

Well, let's start writing kernel drivers with Python, Perl, PHP,
awk, etc... And, why not, C++, Ada, Modula, etc...

The kernel should depend just on the compiler and assembler, IMHO.

The right tools for the right job. C is good for the kernel. Python is good at manipulating strings.

Signature · 2 lines
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
#3 lore raw
In reply to RaúlNúñez de Arenas Coronado

Tom Rini <[email protected]>:

Quoted 9 lines
Quoted 5 lines

Maybe for you. For me it *is* an issue. I don't like more and
more dependencies for the kernel. I mean, if I can drop kbuild and keep on building the kernel with the old good 'make config' I won't worry, but otherwise I don't think that kernel building depends on something like Python.

One of the things that I _think_ is happening is that lots of other scripts/ files are being redone, and thus removing them from the list, so in effect we're trading out one or two for just Python.

That is my intention.

Quoted 2 lines

The right tools for the right job. C is good for the kernel. Python is good at manipulating strings.

*Perl* is good at strings. Python is good at actual data structures :-).

Signature · 7 lines
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

The people of the various provinces are strictly forbidden to have in their
possession any swords, short swords, bows, spears, firearms, or other types
of arms. The possession of unnecessary implements makes difficult the
collection of taxes and dues and tends to foment uprisings.
        -- Toyotomi Hideyoshi, dictator of Japan, August 1588
#4 lore raw
In reply to RaúlNúñez de Arenas Coronado
Quoted 19 lines · RaúlNúñez de Arenas Coronado

Hi Matthias :)

Quoted 1 line

Creating a dependency on Python? Is a non-issue.

Maybe for you. For me it *is* an issue. I don't like more and
more dependencies for the kernel. I mean, if I can drop kbuild and keep on building the kernel with the old good 'make config' I won't worry, but otherwise I don't think that kernel building depends on something like Python.

Why must I install Python in order to compile the kernel? I don't
understand this. I think there are better alternatives, but kbuild seems to be imposed any way.

Quoted 1 line

You don't make the pen yourself when writing a letter either.

I don't like to be forced in a particular pen, that's the reason
why I use and develop for linux.

Quoted 6 lines
Quoted 3 lines

What are the precise issues with Python? Just claiming it is an issue is not useful for discussing this. Archive pointers are welcome.

Well, let's start writing kernel drivers with Python, Perl, PHP,
awk, etc... And, why not, C++, Ada, Modula, etc...

Noone's suggested writing kernel-drivers in anything but a combination of C and assembler (with as little asm as possible), apart from some heretics that suggested usage of C++ in the kernel...

This only involves usage of Python2 for configuring your kernel.

Quoted 1 line

The kernel should depend just on the compiler and assembler, IMHO.

Yeah, let's lose the dependencies on perl, make, awk, sed, ld, ar, nm, strip, objcopy, objdump, depmod, grep, xargs, find, gzip, wish, tcl/tk and possibly others. That'd surely shave a lot of diskspace off my buildsystem. It's not like I use any of them for anything else...

Hey, lets lose C and ASM too, and create all your binaries by writing hexvalues into a file.

/David Weinehall
_ _
// David Weinehall <[email protected]> /> Northern lights wander \\

//  Maintainer of the v2.0 kernel   //  Dance across the winter sky //
\>  http://www.acc.umu.se/~tao/    </   Full colour fire           </
#5 lore raw
Quoted 7 lines · David Weinehall

Yeah, let's lose the dependencies on perl, make, awk, sed, ld, ar, nm, strip, objcopy, objdump, depmod, grep, xargs, find, gzip, wish, tcl/tk and possibly others. That'd surely shave a lot of diskspace off my buildsystem. It's not like I use any of them for anything else...

Hey, lets lose C and ASM too, and create all your binaries by writing hexvalues into a file.

Real kernel hackers use

# cat > /vmlinuz; lilo; shutdown -r now

--
Stevie-O

Real programmers use COPY CON PROGRAM.EXE

#6 lore raw
In reply to RaúlNúñez de Arenas Coronado

David Weinehall <[email protected]>:

Quoted 4 lines

Yeah, let's lose the dependencies on perl, make, awk, sed, ld, ar, nm, strip, objcopy, objdump, depmod, grep, xargs, find, gzip, wish, tcl/tk and possibly others. That'd surely shave a lot of diskspace off my buildsystem. It's not like I use any of them for anything else...

I'm going to remove a few of these.

Signature · 6 lines
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

You need only reflect that one of the best ways to get yourself a
reputation as a dangerous citizen these days is to go about repeating
the very phrases which our founding fathers used in the great struggle
for independence.	-- Attributed to Charles Austin Beard (1874-1948)
#7 lore raw
In reply to RaúlNúñez de Arenas Coronado
Quoted 7 lines · Eric S. Raymond

David Weinehall <[email protected]>:

Quoted 4 lines

Yeah, let's lose the dependencies on perl, make, awk, sed, ld, ar, nm, strip, objcopy, objdump, depmod, grep, xargs, find, gzip, wish, tcl/tk and possibly others. That'd surely shave a lot of diskspace off my buildsystem. It's not like I use any of them for anything else...

I'm going to remove a few of these.

You know, I _was_ ironic about not needing most of those...

/David
_ _
// David Weinehall <[email protected]> /> Northern lights wander \\

//  Maintainer of the v2.0 kernel   //  Dance across the winter sky //
\>  http://www.acc.umu.se/~tao/    </   Full colour fire           </
#8 lore raw
In reply to RaúlNúñez de Arenas Coronado
Quoted 3 lines · RaúlNúñez de Arenas Coronado

Why must I install Python in order to compile the kernel? I don't
understand this. I think there are better alternatives, but kbuild seems to be imposed any way.

Because the Gods of the Kernel command so, simply put. I fail to see the mutual implications of kbuild and CML2 however. I have until now seen these as separate (independent of each other) efforts which are both proposed for early 2.5.x inclusion.

Quoted 6 lines
Quoted 3 lines

What are the precise issues with Python? Just claiming it is an issue is not useful for discussing this. Archive pointers are welcome.

Well, let's start writing kernel drivers with Python, Perl, PHP,
awk, etc... And, why not, C++, Ada, Modula, etc...

Please don't mix the "layers" here. You don't need Python to run the kernel.

Quoted 1 line

The kernel should depend just on the compiler and assembler, IMHO.

less Documentation/Changes
/Current Minimal Requirements -- that's for running, BTW, not for compiling. Oops.

Signature · 4 lines
Matthias Andree

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."         Benjamin Franklin
#9 lore raw
In reply to RaúlNúñez de Arenas Coronado

[Cc: list trimmed]

Quoted 5 lines · Tom Rini

[... The spec for CML2 is
out there, and there's even a CML2-in-C project. If you don't want to use Python, go help (I believe Greg Banks is who ESR mentioned is in charge of it) that project out [...]

In charge of it? I *am* it. At least, I was it; I haven't done much
on it for a few months. I got bogged down trying to reproduce Eric's symbol freezing semantics with my undoable data structure, and then other things came up. Besides the whole Python issue seemed to have died down.

The latest (unreleased) code has GTK and curses GUIs (the curses GUI reuses
the CML1 dialog code so it looks very much like CML1 "make menuconfig"), but is several months behind tracking CML2 language changes.

If people are interested in contributing, I'd be happy to put the project
on sourceforge. But judging by the download counter for the last release at

http://www.alphalink.com.au/~gnb/gcml2/

nobody really cares ;-) It seems my main contribution has been to provide Eric with incentive to clarify his language spec and speed up his parser.

Greg.

Signature · 3 lines
the price of civilisation today is a courageous willingness to prevail,
with force, if necessary, against whatever vicious and uncomprehending
enemies try to strike it down.	   - Roger Sandall, The Age, 28Sep2001.
#10 lore raw
In reply to RaúlNúñez de Arenas Coronado

Greg Banks <[email protected]>:

Quoted 2 lines

It seems my main contribution has been to provide
Eric with incentive to clarify his language spec and speed up his parser.

Stimulus for which I have been deeply grateful.

Signature · 8 lines
		<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>

..every Man has a Property in his own Person. This no Body has any
Right to but himself.  The Labour of his Body, and the Work of his
Hands, we may say, are properly his. .... The great and chief end
therefore, of Mens uniting into Commonwealths, and putting themselves
under Government, is the Preservation of their Property.
	-- John Locke, "A Treatise Concerning Civil Government"