[Buildroot] musl with kernel headers (was: [PATCH] bridge-utils: fix build with musl)
Baruch Siach
baruch at tkos.co.il
Sat Nov 5 22:49:34 UTC 2016
Hi Thomas,
On Fri, Nov 04, 2016 at 09:16:39AM +0100, Thomas Petazzoni wrote:
> On Fri, 4 Nov 2016 07:22:44 +0200, Baruch Siach wrote:
>
> > > Yes, we probably need to do something like that. I'm sick of all the
> > > patches we need to fix this structure redefinition mess, so if we have
> > > a global solution, it would be nice. I guess it needs to be applied in
> > > both the linux-headers package and the toolchain-external package.
> >
> > I was thinking if a sed call in TOOLCHAIN_TARGET_FINALIZE_HOOKS to simplify
> > the hack. Would that work?
>
> No, because FINALIZE_HOOKS, like their name suggests, are called at the
> very end of the build, after all packages have been built, and right
> before we create the filesystem images.
>
> So to fix something that helps in building packages, it's a little bit
> too late :-)
Of course.
> However, you could have it as post-install staging hook of the
> toolchain virtual package I guess.
I experimented with TOOLCHAIN_POST_INSTALL_STAGING_HOOKS, but these hooks
never run. TOOLCHAIN_EXTERNAL_POST_INSTALL_STAGING_HOOKS work as expected, but
it's limited to external toolchains. What would be the right approach?
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
More information about the buildroot
mailing list