diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-09-27 07:56:12 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-09-27 07:57:03 -0500 |
commit | 8c20367a2e6d61f830f6dc336761909e38a6bcca (patch) | |
tree | 325c1003074a4a9bef2293dbb987bc0650f8dacb | |
parent | 1a42e2458bda63e7c11b5298bee34eebbaedd022 (diff) |
gbuild: allow for SHELL to be set by the env variable gb_SHELL
This allow to build using a non bash shell on system for which
/bin/sh is bash
Change-Id: I276c777d1fca20858219ac95457a367300644b16
-rw-r--r-- | solenv/gbuild/gbuild.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk index 0f11ea0c4eb2..ee2f985ec1d7 100644 --- a/solenv/gbuild/gbuild.mk +++ b/solenv/gbuild/gbuild.mk @@ -48,7 +48,16 @@ GBUILDDIR:=$(SRCDIR)/solenv/gbuild .DELETE_ON_ERROR: +# by default gbuild use /bin/sh +# if you want to use a particular shell +# you can export gb_SHELL=<path_to_shell> +# +ifdef gb_SHELL +SHELL := $(gb_SHELL) +else SHELL := /bin/sh +endif + true := T false := define NEWLINE |