diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-10-18 19:23:49 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-10-18 19:23:49 +0200 |
commit | 4cb51b66a78b2eb38dbb6ea7c87d0dd3feab55fa (patch) | |
tree | 47ef80ee80babadee2c5ef4843515ecade8bcac9 /core | |
parent | 699b39dc7f1f76d00a7474e6aac6390c96563a7f (diff) | |
download | embtoolkit-4cb51b66a78b2eb38dbb6ea7c87d0dd3feab55fa.tar.gz embtoolkit-4cb51b66a78b2eb38dbb6ea7c87d0dd3feab55fa.tar.bz2 embtoolkit-4cb51b66a78b2eb38dbb6ea7c87d0dd3feab55fa.tar.xz |
Host support: check is bash is available
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/mk/host-support.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/mk/host-support.mk b/core/mk/host-support.mk index 901aa63..cdf0f09 100644 --- a/core/mk/host-support.mk +++ b/core/mk/host-support.mk @@ -26,7 +26,14 @@ # Host development machine info # -CONFIG_EMBTK_SHELL := /bin/sh +CONFIG_EMBTK_SHELL := \ + $(shell \ + if [ -n "$$(command -v bash 2>/dev/null)" ]; then \ + echo "$$(command -v bash)"; \ + else \ + echo "/bin/sh"; \ + fi) + HOST_ARCH := $(shell $(CONFIG_EMBTK_SHELL) $(EMBTK_ROOT)/scripts/config.guess) HOST_BUILD := $(HOST_ARCH) export HOST_ARCH HOST_BUILD |