linux-mips
[Top] [All Lists]

Re: [klibc] klibc kernelheaders build failure on mips/mipsel

To: "H. Peter Anvin" <hpa@zytor.com>
Subject: Re: [klibc] klibc kernelheaders build failure on mips/mipsel
From: Ralf Baechle <ralf@linux-mips.org>
Date: Mon, 30 Jul 2007 13:12:57 +0100
Cc: maximilian attems <max@stro.at>, linux-mips@linux-mips.org, klibc@zytor.com
In-reply-to: <20070730120557.GE11436@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20070729095217.GE7448@stro.at> <46AC997B.2030706@zytor.com> <20070730120557.GE11436@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.14 (2007-02-12)
On Mon, Jul 30, 2007 at 01:05:57PM +0100, Ralf Baechle wrote:

> > >  In file included from usr/klibc/arch/mips/crt0.S:11:
> > >  usr/include/arch/mips/machine/asm.h:8:24: error: asm/regdef.h: No such
> > >  file or directory
> > >  usr/include/arch/mips/machine/asm.h:9:21: error: asm/asm.h: No such file
> > >  or directory
> > >
> > >  i'm not sure if you want to export both headers in the make
> > >  kernelheaders target or if it is the fault of klibc to assume
> > >  that those are available?
> > >
> > 
> > If I remember correctly (sorry, I'm on the road at the moment), those 
> > files should be exportable.  They wouldn't be all that hard to replicate 
> > in klibc, though.
> 
> <asm/asm.h> would need to add __KERNEL__ wrappers around the CONFIG_* bits.
> In addition you probably want to have <asm/fpregdef.h> exported.  With a
> few changes you should be able to get away without using <asm/sgidefs.h>.

Oh, the canonical place for these headers outside the kernel is either
<{regdef,fpregdef,asm}.h> and <sys/{regdef,fpregdef,asm}.h>, not <asm/...>.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>