[oe] [PATCH 03/11] linux-libc-headers 2.6.23: fix amd64 headers

Roman I Khimov khimov at altell.ru
Sat Apr 18 19:54:07 UTC 2009


On Thursday 16 April 2009 11:12:41 Khem Raj wrote:
> On Wednesday 15 April 2009 12:25:46 pm Roman I Khimov wrote:
> > On Wednesday 15 April 2009 23:09:13 Khem Raj wrote:
> > > On (15/04/09 16:35), Roman I Khimov wrote:
> > > > --- a/recipes/linux-libc-headers/linux-libc-headers_2.6.23.bb
> > > > +++ b/recipes/linux-libc-headers/linux-libc-headers_2.6.23.bb
> > > > @@ -63,4 +63,16 @@ do_stage () {
> > >
> > > is there any reason not to use sanitized header like we do in
> > > do_install even for do_stage
> >
> > I think this is the way to go for newer kernels and it can be generalized
> > in some .inc for future. This approach is used now in
> > linux-libc-headers_2.6.29.bb, but 2.6.23 historically uses this kind of
> > do_stage and I don't think we should change that now.
>
> OK. On that note can you test if your stuff works with 2.6.29 kernel
> headers ?

With minor correction of

--- a/recipes/linux-libc-headers/linux-libc-headers_2.6.29.bb
+++ b/recipes/linux-libc-headers/linux-libc-headers_2.6.29.bb
@@ -47,3 +47,10 @@ do_stage () {
 	set_arch
 	oe_runmake headers_install INSTALL_HDR_PATH=${STAGING_DIR_HOST}${layout_prefix} ARCH=$ARCH
 }
+
+do_stage_append_multilib () {
+	install -d ${STAGING_INCDIR}/${TARGET_SYS_MULTILIB}
+	ln -s ../linux ${STAGING_INCDIR}/${TARGET_SYS_MULTILIB}/linux
+	ln -s ../asm ${STAGING_INCDIR}/${TARGET_SYS_MULTILIB}/asm
+	ln -s ../asm-generic ${STAGING_INCDIR}/${TARGET_SYS_MULTILIB}/asm-generic
+}

it works nice. As you can see, I'm using
${STAGING_INCDIR}/${TARGET_SYS_MULTILIB} for supplementary system headers.




More information about the Openembedded-devel mailing list