summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-10-19 11:29:19 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-10-19 11:29:19 +0200
commit26d93641f30e3586cd16494cc41706b15283cf53 (patch)
tree8a887de3c84bd15d53675ce6bd9f46a578b24ac2
parent4f85cb72c4a200b062e3eba02ffcef34fee69cb9 (diff)
downloadembtoolkit-26d93641f30e3586cd16494cc41706b15283cf53.tar.gz
embtoolkit-26d93641f30e3586cd16494cc41706b15283cf53.tar.bz2
embtoolkit-26d93641f30e3586cd16494cc41706b15283cf53.tar.xz
Build system: export host os to kconfig
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--Kconfig4
-rw-r--r--core/mk/buildsystem.mk1
2 files changed, 5 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index 1597b0e..bb7f016 100644
--- a/Kconfig
+++ b/Kconfig
@@ -40,6 +40,10 @@ config EMBTK_HOST_OSTYPE
string
option env="EMBTK_HOST_OSTYPE"
+config EMBTK_HOST_OS
+ string
+ option env="EMBTK_HOST_OS"
+
menu "Target OS Selection"
choice
prompt "Choose target OS"
diff --git a/core/mk/buildsystem.mk b/core/mk/buildsystem.mk
index b6959d1..3f8bd35 100644
--- a/core/mk/buildsystem.mk
+++ b/core/mk/buildsystem.mk
@@ -45,6 +45,7 @@ define __embtk_kconfig_buildrun
PKG_CONFIG_PATH=$(EMBTK_HOST_PKG_CONFIG_PATH) \
$(MAKE) -f scripts/Makefile.build \
obj=$(EMBTK_ROOT)/scripts/kconfig \
+ EMBTK_HOST_OS="$(embtk_buildhost_os)" \
EMBTK_HOST_OSTYPE="$(embtk_buildhost_os_type)" \
EMBTK_DEFAULT_DL="$(EMBTK_ROOT)/dl/" \
EMBTK_VERSION=$(EMBTK_VERSION) \