From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Seiderer Date: Wed, 4 Dec 2019 17:49:50 +0100 Subject: [Buildroot] [PATCH] package/pkg-meson: ensure the global cross-compilation.conf file is correct In-Reply-To: <20191204150225.33749-1-thomas.petazzoni@bootlin.com> References: <20191204150225.33749-1-thomas.petazzoni@bootlin.com> Message-ID: <20191204174950.5d2ab0fd@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello Thomas, On Wed, 4 Dec 2019 16:02:25 +0100, Thomas Petazzoni wrote: > Currently, the cross-compilation.conf installed in > $(HOST_DIR)/etc/meson/cross-compilation.conf for use by the SDK is > generated in a post-install-staging hook of the toolchain package. > > With per-package directory support enabled, this means that the > generated cross-compilation.conf contains references to the > per-package directory of the toolchain/ package, which is not want we > want: Nitpick: s/not want we want/not what we want/ Reviewed-by: Peter Seiderer Regards, Peter > > [binaries] > c = '/home/thomas/projets/buildroot/output/per-package/toolchain/host/bin/arm-linux-gcc' > cpp = '/home/thomas/projets/buildroot/output/per-package/toolchain/host/bin/arm-linux-g++' > ar = '/home/thomas/projets/buildroot/output/per-package/toolchain/host/bin/arm-linux-ar' > strip = '/home/thomas/projets/buildroot/output/per-package/toolchain/host/bin/arm-linux-strip' > pkgconfig = '/home/thomas/projets/buildroot/output/per-package/toolchain/host/usr/bin/pkg-config' > > So instead, we generate this file in TOOLCHAIN_TARGET_FINALIZE_HOOKS, > so that the global paths are used: > > [binaries] > c = '/home/thomas/projets/buildroot/output/host/bin/arm-linux-gcc' > cpp = '/home/thomas/projets/buildroot/output/host/bin/arm-linux-g++' > ar = '/home/thomas/projets/buildroot/output/host/bin/arm-linux-ar' > strip = '/home/thomas/projets/buildroot/output/host/bin/arm-linux-strip' > pkgconfig = '/home/thomas/projets/buildroot/output/host/usr/bin/pkg-config' > > Signed-off-by: Thomas Petazzoni > --- > package/pkg-meson.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/package/pkg-meson.mk b/package/pkg-meson.mk > index e7eea2aa58..085da219fe 100644 > --- a/package/pkg-meson.mk > +++ b/package/pkg-meson.mk > @@ -205,4 +205,4 @@ define PKG_MESON_INSTALL_CROSS_CONF > > $(HOST_DIR)/etc/meson/cross-compilation.conf > endef > > -TOOLCHAIN_POST_INSTALL_STAGING_HOOKS += PKG_MESON_INSTALL_CROSS_CONF > +TOOLCHAIN_TARGET_FINALIZE_HOOKS += PKG_MESON_INSTALL_CROSS_CONF