From 26d93641f30e3586cd16494cc41706b15283cf53 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sun, 19 Oct 2014 11:29:19 +0200 Subject: Build system: export host os to kconfig Signed-off-by: Abdoulaye Walsimou Gaye --- Kconfig | 4 ++++ core/mk/buildsystem.mk | 1 + 2 files changed, 5 insertions(+) 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) \ -- cgit v1.2.3