summaryrefslogtreecommitdiff
path: root/core/mk/host-support.mk
diff options
context:
space:
mode:
Diffstat (limited to 'core/mk/host-support.mk')
-rw-r--r--core/mk/host-support.mk9
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