From 20b401a5770e6cb1da538b2af7ae16145bc167eb Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Thu, 24 May 2012 20:41:10 +0200 Subject: Build system/kconfig entries: specify that linux system will be built Signed-off-by: Abdoulaye Walsimou Gaye --- Kconfig | 11 ++++++++++- mk/target-mcu.mk | 9 ++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Kconfig b/Kconfig index 168d92f..911b639 100644 --- a/Kconfig +++ b/Kconfig @@ -36,7 +36,16 @@ config EMBTK_VERSION string option env="EMBTK_VERSION" -menu "Architecture/variants/options Selection" +menu "Target OS Selection" +choice + prompt "Choose target OS" + + config EMBTK_OS_LINUX + bool "Linux" +endchoice +endmenu + +menu "Target Architecture/variants/options Selection" source "kconfig/arch.kconfig" source "kconfig/arch-variant.kconfig" endmenu diff --git a/mk/target-mcu.mk b/mk/target-mcu.mk index 04cb396..0113532 100644 --- a/mk/target-mcu.mk +++ b/mk/target-mcu.mk @@ -23,16 +23,15 @@ # \date May 2009 ################################################################################ -embtk_os := linux +embtk_os-$(CONFIG_EMBTK_OS_LINUX) := linux +embtk_os := $(or $(embtk_os-y),invalid-os) -#ARM +# ARM ifeq ($(CONFIG_EMBTK_ARCH_ARM),y) include $(EMBTK_ROOT)/mk/arch/arm/arm.mk endif -#M68K - -#MIPS +# MIPS ifeq ($(CONFIG_EMBTK_ARCH_MIPS),y) include $(EMBTK_ROOT)/mk/arch/mips/mips.mk endif -- cgit v1.2.3