summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-09-23 13:04:10 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-09-23 13:04:10 +0200
commit5153e5556c424aa381c7ba4111d4fbe2284cb735 (patch)
tree84ca75a83d67294a503c6a379fd9440fec7d2d43
parent43382fdb1bd53a159802a9f756ec2f1942dc355b (diff)
downloadembtoolkit-5153e5556c424aa381c7ba4111d4fbe2284cb735.tar.gz
embtoolkit-5153e5556c424aa381c7ba4111d4fbe2284cb735.tar.bz2
embtoolkit-5153e5556c424aa381c7ba4111d4fbe2284cb735.tar.xz
Embtk: optionally build cmake and create build options ans host tools in main menu
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--Kconfig13
-rw-r--r--mk/toolchain.mk3
2 files changed, 14 insertions, 2 deletions
diff --git a/Kconfig b/Kconfig
index 3879623..cdad186 100644
--- a/Kconfig
+++ b/Kconfig
@@ -81,7 +81,18 @@ source kconfig/fs.kconfig
source kconfig/packages.kconfig
endif
-menu "Embtoolkit build options"
+menu "Embtoolkit build options and host tools"
+comment "-----------------------------"
+comment "Host tools"
+comment "-----------------------------"
+
+config EMBTK_HOST_HAVE_CMAKE
+ bool "Build cmake for the host development machine"
+
+comment "-----------------------------"
+comment "Build options"
+comment "-----------------------------"
+
config EMBTK_NUMBER_BUILD_JOBS
int "Number of parallel build jobs"
default 1
diff --git a/mk/toolchain.mk b/mk/toolchain.mk
index 0ccaba5..651c327 100644
--- a/mk/toolchain.mk
+++ b/mk/toolchain.mk
@@ -83,11 +83,12 @@ AUTOTOOLS_INSTALL := m4_install libtool_install autoconf_install \
automake_install
#cmake
include $(EMBTK_ROOT)/mk/cmake.mk
+EMBTK_CMAKE_INSTALL := $(if $(CONFIG_EMBTK_HOST_HAVE_CMAKE),cmake_install,)
ifeq ($(CONFIG_EMBTK_CLIB_EGLIBC),y)
#EGLIBC
include $(EMBTK_ROOT)/mk/eglibc.mk
-TOOLCHAINBUILD := mkinitialpath $(AUTOTOOLS_INSTALL) cmake_install \
+TOOLCHAINBUILD := mkinitialpath $(AUTOTOOLS_INSTALL) $(EMBTK_CMAKE_INSTALL) \
kernel-headers_install ccachehost_install \
gmphost_install mpfrhost_install mpchost_install \
binutils_install gcc1_install eglibc-headers_install \