[Buildroot] [Feature Request] Host cmake built with the --system-curl option

Emile Cormier emile.cormier.jr at gmail.com
Wed Apr 6 20:13:05 UTC 2022


Thank you for your feedback on this request, Arnout.

Buildroot's cmake is being executed in my post-build script instead of my
system's cmake. How do I make my system's cmake take precedence?

On Wed, Apr 6, 2022 at 11:29 AM Arnout Vandecappelle <arnout at mind.be> wrote:

>
>
> On 06/04/2022 04:06, Emile Cormier wrote:
> > When using cmake while running a post-build script, the
> ExternalProject_add
> > command fails when the URL option is used to download a source tarball
> via
> > https. This is because the host cmake is not built using the
> --system-curl
> > option (https://github.com/Kitware/CMake/blob/master/bootstrap#L660
> > <https://github.com/Kitware/CMake/blob/master/bootstrap#L660>).
> >
> > Without the system-curl option, the cmake build will use its own bundled
> libcurl
> > without OpenSSL support, and thus downloading tarballs via https fails.
> >
> > Adding the --system-curl option would entail that libcurl also be built
> as a
> > host library. I don't think it currently is.
>
>   Not only that, we'd need to configure host-curl to pull in host-openssl
> as well.
>
>   That is not really great. It means that cmake (which in many
> configurations is
> a very basic dependency) would pull in two more packages, which
> significantly
> increases build time.
>
>   And the only added value is that it allows you to build something
> outside of
> buildroot. If you need to do that, simply install cmake on your build
> system and
> use that instead of the buildroot-built cmake.
>
>   Regards,
>   Arnout
>
>
> >
> > I use CMake's ExternalProject_add in our project to download and build
> the
> > static library dependencies that our embedded application needs. I know
> that
> > buildroot provides various packages for cross-compiled libraries, but I
> have no
> > control over the versions (and compile-time options) of these packages.
> >
> > Cheers,
> > Emile Cormier
> >
> > _______________________________________________
> > buildroot mailing list
> > buildroot at buildroot.org
> > https://lists.buildroot.org/mailman/listinfo/buildroot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20220406/c939897d/attachment-0001.html>


More information about the buildroot mailing list