[Buildroot] Missing 'sys/queue.h' on musl
Sergio Prado
sergio.prado at e-labworks.com
Mon Nov 30 22:56:24 UTC 2015
2015-11-30 19:34 GMT-02:00 Arnout Vandecappelle <arnout at mind.be>:
> On 30-11-15 17:32, Thomas Petazzoni wrote:
> > Dear Sergio Prado,
> >
> > On Mon, 30 Nov 2015 13:07:36 -0200, Sergio Prado wrote:
> >
> >> I have created a package called sys-queue that will only install
> queue.h on
> >> the staging dir.
> >>
> >> Then to make musl generated toolchain depends on sys-queue, I added the
> >> following lines to toolchain/toolchain-buildroot/toolchain-buildroot.mk
> :
> >>
> >> ifeq ($(BR2_TOOLCHAIN_BUILDROOT_MUSL),y)
> >> TOOLCHAIN_BUILDROOT_DEPENDENCIES += sys-queue
> >> endif
> >>
> >> It worked like a charm. Is this the correct approach?
> >
> > No, because this will only work for internal toolchains. So instead,
> > you need to put this dependency in two places:
>
> That's what Sergio was doing...
>
Yes, that's what I was doing. I will move the change to the musl package.
>
> >
> > 1/ In package/musl/musl.mk, where it should be an unconditional
> > dependency.
> >
> > 2/ In toolchain/toolchain-external/toolchain-external.mk, where it
> > should be conditional on BR2_TOOLCHAIN_USES_MUSL.
> >
> >> Also, I am struggling to find out a way to do the same thing on the
> >> external toolchain. Using the DEPENDENCIES approach, it will process the
> >> sys-queue package before the external toolchain package, and it is best
> to
> >> do it after. Any ideas?
> >
> > Is it really a problem if it is processed before?
>
> It's actually good if it is processed before, so if there is a queue.h in
> the
> external toolchain after all (e.g. for a buildroot-built external
> toolchain), it
> will overwrite ours. At least, I think that that is what we want.
>
OK. I thought that maybe the staging directory would be cleared out when
processing the external toolchain, but seems that's not the case.
Thanks!
> Regards,
> Arnout
>
> >
> > Thomas
> >
>
>
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20151130/3cfa9910/attachment-0001.html>
More information about the buildroot
mailing list