summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-07-20 21:41:41 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-07-20 21:41:41 +0200
commit043f1095fcd292a19f9d518aa2d9fc863fd1f897 (patch)
treeb39c2391033c3ad647df61ae8f3b68bdf7bbf753 /Makefile
parent2fc6f3ebb9359cdf52800a7a29b2ad53c8be1ef1 (diff)
downloadembtoolkit-043f1095fcd292a19f9d518aa2d9fc863fd1f897.tar.gz
embtoolkit-043f1095fcd292a19f9d518aa2d9fc863fd1f897.tar.bz2
embtoolkit-043f1095fcd292a19f9d518aa2d9fc863fd1f897.tar.xz
Build system: avoid use of CONFIG_SHELL variable, it is used autoconf scripts
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 22400e1..9e7323b 100644
--- a/Makefile
+++ b/Makefile
@@ -45,10 +45,9 @@ export EMBTK_BUGURL EMBTK_HOMEURL EMBTK_VERSION
EMBTK_ROOT := $(shell pwd)
EMBTK_DOTCONFIG := $(EMBTK_ROOT)/.config
-export EMBTK_ROOT EMBTK_DOTCONFIG
# SHELL used by kbuild
-CONFIG_SHELL := \
+CONFIG_EMBTK_SHELL := \
$(shell \
if [ -x "$$BASH" ]; then \
echo $$BASH; \
@@ -59,9 +58,8 @@ CONFIG_SHELL := \
echo /bin/sh; \
fi; \
fi)
-export CONFIG_SHELL
-HOST_ARCH := $(shell $(CONFIG_SHELL) $(EMBTK_ROOT)/scripts/config.guess)
+HOST_ARCH := $(shell $(CONFIG_EMBTK_SHELL) $(EMBTK_ROOT)/scripts/config.guess)
HOST_BUILD := $(HOST_ARCH)
export HOST_ARCH HOST_BUILD