[Buildroot] musl with kernel headers
Arnout Vandecappelle
arnout at mind.be
Sun Nov 6 01:25:08 UTC 2016
On 05-11-16 23:49, Baruch Siach wrote:
> 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?
The toolchain virtual package doesn't install to staging. Just add
TOOLCHAIN_INSTALL_STAGING = YES
Regards,
Arnout
>
> baruch
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the buildroot
mailing list