[Buildroot] [PATCH v2 1/3] package/make: add host variant

Matthew Weber matthew.weber at rockwellcollins.com
Wed Sep 5 01:39:24 UTC 2018


Romain,


On Mon, Sep 3, 2018 at 2:19 PM Romain Naour <romain.naour at gmail.com> wrote:
>
> Add host variant for make package since glibc 2.28 now require
> GNU Make >= 4.0 [1].
>
> We have to ceate gnumake and gmake symlinks to GNU make generated by
> Buildroot for the host. Otherwise the one provided by the host system
> can be used instead.
>
> For example, the glibc build system is looking for gnumake and gmake
> before make. See [2].
>
> [1] https://www.sourceware.org/ml/libc-alpha/2018-08/msg00003.html
> [2] http://lists.busybox.net/pipermail/buildroot/2018-September/229654.html
>
> Signed-off-by: Romain Naour <romain.naour at gmail.com>
> Cc: Baruch Siach <baruch at tkos.co.il>
> Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>

Tested-by: Matt Weber <matthew.weber at rockwellcollins.com>

> ---
>  package/make/make.mk | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/package/make/make.mk b/package/make/make.mk
> index 01cd2eaa18..790391c76e 100644
> --- a/package/make/make.mk
> +++ b/package/make/make.mk
> @@ -20,4 +20,18 @@ ifeq ($(BR2_STATIC_LIBS),y)
>  MAKE_CONF_OPTS += --disable-load
>  endif
>
> +HOST_MAKE_DEPENDENCIES = host-pkgconf
> +HOST_MAKE_CONF_OPTS = --without-guile
> +
> +# Some packages, like glibc, are looking for gnumake or gmake before
> +# make program.
> +# Create these symlink to use make binary generated by Buildroot for
> +# the host.
> +define HOST_MAKE_INSTALL_GNUMAKE
> +       ln -fs make $(HOST_DIR)/bin/gnumake
> +       ln -fs make $(HOST_DIR)/bin/gmake
> +endef
> +HOST_MAKE_POST_INSTALL_HOOKS += HOST_MAKE_INSTALL_GNUMAKE
> +
>  $(eval $(autotools-package))
> +$(eval $(host-autotools-package))
> --
> 2.14.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot



-- 
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / RC Linux Secure Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
www.rockwellcollins.com

Note: Any Export License Required Information and License Restricted
Third Party Intellectual Property (TPIP) content must be encrypted and
sent to matthew.weber at corp.rockwellcollins.com.


More information about the buildroot mailing list