[OpenBIOS] [PATCH 3/5] On ppc64, asm/sigcontext.h includes asm/elf.h

Segher Boessenkool segher at kernel.crashing.org
Sat Oct 24 16:17:22 CEST 2015


On Sat, Oct 24, 2015 at 03:54:13PM +0200, Laurent Vivier wrote:
> On 24/10/2015 14:53, Segher Boessenkool wrote:
> > On Sat, Oct 24, 2015 at 11:16:59AM +0200, Laurent Vivier wrote:
> >> asm/sigcontext.h:
> >>
> >>     #ifdef __powerpc64__
> >>     #include <asm/elf.h>
> >>     #endif
> >>
> >> to avoid to include here target/include/asm/elf.h, hardcode the path
> >> to /usr/include/asm/elf.h in it.
> > That only works for native builds on powerpc64-linux.  Is that all
> > that is wanted here?
> Yes, it is.
> 
> On a powerpc64 host, when we compile the bootstrap, it includes
> asm/sigcontext.h, that wants to include asm/elf.h from /usr/include, but

[ The system includes can be elsewhere instead, but you probably do not
need to worry about that ].

> instead it includes asm/elf.h from obj-XXX/target/include/. So, I try to
> include the good one from there.
> 
> I've modified elf.h for target ppc, sparc32 and sparc64 because I have
> tried to cross-compile them on a powrpc64 host.

Ah I see, host, not target.  Thanks.


Segher



More information about the OpenBIOS mailing list