[Buildroot] [PATCH v3 6/6] Makefile: export PATH
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Jan 31 08:33:47 UTC 2014
Dear Samuel Martin,
On Thu, 30 Jan 2014 21:38:53 +0100, Samuel Martin wrote:
> This can be useful for:
> - package using custom build system that are not aware that the host
> tree is in $(O)/host/;
> - post-{build,image} scripts, in case some host-tools were specifically
> built to be used by these scripts.
>
> Note that, this patch only exports the PATH variables; cleaning up
> all the explicit PATH declarations leading some commands could be done
> in a followup patch.
So with this patch, passing PATH in all the package infrastructures
(cmake, autotools, python) becomes unnecessary?
I must say I am not entirely sure we want to globally export PATH.
Packages using custom build system should use TARGET_MAKE_ENV and
HOST_MAKE_ENV, post-build and post-image script have HOST_DIR defined
in their environment I believe.
But this is not a strong opinion, I'd just like to see
arguments/opinions from others on this specific change (the other
changes in the series, I'm happy with them on the principle, they are
just a few remaining details to sort out).
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list