From: Tom Rini Date: Fri, 1 Mar 2013 16:26:11 -0500 Subject: [U-Boot] [PATCH v8 21/31] Makefile: Move SHELL setup to config.mk In-Reply-To: <1362139841-16540-21-git-send-email-benoit.thebaudeau@advansee.com> References: <1362139841-16540-1-git-send-email-benoit.thebaudeau@advansee.com> <1362139841-16540-21-git-send-email-benoit.thebaudeau@advansee.com> Message-ID: <20130301212611.GV25797@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: