Re: [RFC] Splitting kernel headers and deprecating __KERNEL__

Sam Ravnborg
2004-11-27T21:18:15Z

On Sat, Nov 27, 2004 at 10:11:43PM +0100, Andreas Steinmetz wrote:
> >If we go for some resturcturing of include/ then we should get rid of
> >the annoying asm symlink. Following layout deals with that:
> >
> >include/<arch>/asm <= Files from include/asm-<arch>
> >include/<arch>/mach* <= Files from include/mach-*
> >
> >This layout solve the symlink issue in an elegant way.
> >We need to do trivial changes to compiler options to make it work. Changing
> >compiler options is much more relaible than using symlinks.
> >
> >Then the userspace part would then be located in:
> >include/<arch>/user-asm
> >
>
> This complicates things for bi-arch architectures like x86_64 where one
> can use a dispatcher directory instead of a symlink to suit include/asm
> for 32bit as well as 64bit.
X86_64 does not create any special symlinks todays so I do not see the point?
And still a symlink is just the wrong way to solve the problem.
Adjusting options to the compiler is the way to do it.

Sam