[Buildroot] [PATCH 6/6] Makefile: export PATH

Peter Korsgaard jacmet at uclibc.org
Sun Nov 17 07:33:40 UTC 2013

>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:


 >> To me, this could make easier writing post-{build,image} scripts.

 > Indeed, it *is* usefull for those scripts.

 > The first thing I do in br.config is to exactly set PATH to include the
 > host/usr/bin and host/usr/sbin directories in front of the user's PATH.

 > But maybe we should just set PATH at the time we call them?

I *THINK* always adding those host directories to the path would be
safe, as long as it happens after 'which' calls in the toplevel
makefile. This would also allow us to get rid of HOST_PATH / TARGET_PATH
(which are currently not identical, but should be).

But it will need some testing.

Bye, Peter Korsgaard

More information about the buildroot mailing list