[U-Boot] [PATCH v8 21/31] Makefile: Move SHELL setup to config.mk
Tom Rini
trini at ti.com
Fri Mar 1 22:26:11 CET 2013
On Fri, Mar 01, 2013 at 01:10:30PM +0100, Beno??t Th??baudeau wrote:
> make never uses the SHELL variable from the environment. Instead, it
> uses /bin/sh, or the value assigned to the SHELL variable by the Makefile. This
> makes the export of the SHELL variable useless for sub-makes (but still useful
> for the environment of recipes). However, we want all makes to use the same
> shell.
>
> This patch fixes this issue by moving the SHELL variable setup and export to the
> top config.mk, so that all Makefile-s including it use the same shell.
>
> Since BASH is used by default, this makes it possible to use things
> like 'echo -e ...' in sub-makes, which would otherwise fail e.g. with /bin/sh
> symlinked to /bin/dash on Ubuntu.
>
> Signed-off-by: Beno??t Th??baudeau <benoit.thebaudeau at advansee.com>
Reviewed-by: Tom Rini <trini at ti.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130301/3081fc8a/attachment.pgp>
More information about the U-Boot
mailing list