Re: no version magic, tainting kernel.

From: Christian Zander (zander@minion.de)
Date: Sun Jan 26 2003 - 17:08:42 EST


On Sun, Jan 26, 2003 at 11:43:44AM -0600, Kai Germaschewski wrote:
>
> Now, is that so bad? When you're building kernels yourself, you
> obviously have enough room for a full tree anyway. When you're using
> a distribution, you have to install the kernel source rpm anyway, to
> get the headers. For all I know, these days the headers are not
> distributed separately from the rest of the kernel source anymore..
>

Debian GNU/Linux is a good example of a distribution shipping source
and configured kernel header packages seperately. It seems fair enough
to require a configured source tree installed, however, and I don't
have a strong opinion on this particular question.

> You might say that this is a regression w.r.t 2.4. But actually,
> even in 2.4, you need e.g. Makefile and arch/i386/Makefile to figure
> out the correct flags and things for your compile, and those are not
> headers, either.
>

Not necessarily.

> This is a good solution to this specific problem. But it does not
> solve the rest, e.g. your Makefile doesn't set -fomit-frame-pointer
> depending on CONFIG_FRAME_POINTER. It doesn't set the proper
> march=x86 flags. IA-64 even needs a special flag just for modules.
> And it'll get even worse with the reintroduction of module symbol
> versioning.
>
> So the above would work around this specific problem, leaving the
> other more subtle ones unsolved. And if you're using modules which
> have been built in such a fragile way with subtle differences, I
> think it's justified to have your kernel tainted.
>

External projects may not want to use the build flags unchanged, they
may have good reasons for using their own. It seems sensible to make
the kernel build system available to those who wish to use it, but it
should be optional rather than mandatory. In this specific case, there
is no technical reason to require the use of kbuild.

-- 
christian zander
zander@minion.de
-
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/



This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 22:00:15 EST