summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-06-16 22:29:26 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-06-16 22:29:26 +0200
commiteaf64e9557876ba2325c89f807dd412bc94f926f (patch)
tree78ec6ef7034f41d7d4a3c7b1a378f99fcb91cd89 /mk
parente42464bdfb96d009dc849efed43ca12d0c960a86 (diff)
downloadembtoolkit-eaf64e9557876ba2325c89f807dd412bc94f926f.tar.gz
embtoolkit-eaf64e9557876ba2325c89f807dd412bc94f926f.tar.bz2
embtoolkit-eaf64e9557876ba2325c89f807dd412bc94f926f.tar.xz
host tools: remove unused cmake
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/cmake.mk79
-rw-r--r--mk/toolchain.mk5
2 files changed, 0 insertions, 84 deletions
diff --git a/mk/cmake.mk b/mk/cmake.mk
deleted file mode 100644
index 5b1cdf7..0000000
--- a/mk/cmake.mk
+++ /dev/null
@@ -1,79 +0,0 @@
-################################################################################
-# Abdoulaye Walsimou GAYE, <awg@embtoolkit.org>
-# Copyright(C) 2010-2011 Abdoulaye Walsimou GAYE.
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-################################################################################
-#
-# \file cmake.mk
-# \brief cmake.mk of Embtoolkit
-# \author Abdoulaye Walsimou GAYE, <awg@embtoolkit.org>
-# \date June 2010
-################################################################################
-
-CMAKE_VERSION := 2.8.1
-CMAKE_SITE := http://www.cmake.org/files/v2.8
-CMAKE_PACKAGE := cmake-$(CMAKE_VERSION).tar.gz
-CMAKE_BUILD_DIR := $(TOOLS_BUILD)/cmake-$(CMAKE_VERSION)
-CMAKE_DIR := $(HOSTTOOLS)/usr
-
-CMAKE := $(CMAKE_DIR)/bin/cmake
-CMAKE_TOOLCHAIN_FILE := $(HOSTTOOLS)/usr/etc/$(STRICT_GNU_TARGET).cmake
-export CMAKE CMAKE_TOOLCHAIN_FILE
-
-cmake_install: $(CMAKE_BUILD_DIR)/.installed
-
-$(CMAKE_BUILD_DIR)/.installed: download_cmake \
- $(CMAKE_BUILD_DIR)/.decompressed $(CMAKE_BUILD_DIR)/.configured
- @$(MAKE) -C $(CMAKE_BUILD_DIR) $(J)
- $(MAKE) -C $(CMAKE_BUILD_DIR) install
- $(MAKE) $(CMAKE_BUILD_DIR)/.generate_target_cmake
- @touch $@
-
-download_cmake:
- $(call embtk_pinfo,"Downloading $(CMAKE_PACKAGE) if \
- necessary...")
- @test -e $(DOWNLOAD_DIR)/$(CMAKE_PACKAGE) || \
- wget -O $(DOWNLOAD_DIR)/$(CMAKE_PACKAGE) \
- $(CMAKE_SITE)/$(CMAKE_PACKAGE)
-
-$(CMAKE_BUILD_DIR)/.decompressed:
- $(call embtk_pinfo,"Decompressing $(CMAKE_PACKAGE)...")
- @tar -C $(TOOLS_BUILD) -xzf $(DOWNLOAD_DIR)/$(CMAKE_PACKAGE)
- @mkdir -p $(CMAKE_BUILD_DIR)
- @mkdir -p $(CMAKE_DIR)
- @touch $@
-
-$(CMAKE_BUILD_DIR)/.configured:
- $(call embtk_pinfo,"Configuring \
- cmake_$(CMAKE_VERSION)...")
- @cd $(CMAKE_BUILD_DIR); \
- $(TOOLS_BUILD)/cmake-$(CMAKE_VERSION)/configure \
- --prefix=$(CMAKE_DIR) --build=$(HOST_BUILD) --host=$(HOST_ARCH)
- @touch $@
-
-$(CMAKE_BUILD_DIR)/.generate_target_cmake:
- @mkdir -p $(HOSTTOOLS)/usr
- @mkdir -p $(HOSTTOOLS)/usr/etc
- @echo "# embtoolkit-$(EMBTK_VERSION): automatically generated, do not edit" > $(CMAKE_TOOLCHAIN_FILE)
- @echo "SET(CMAKE_SYSTEM_NAME Linux)" >> $(CMAKE_TOOLCHAIN_FILE)
- @echo "SET(CMAKE_C_COMPILER $(TARGETCC_CACHED))" >> $(CMAKE_TOOLCHAIN_FILE)
- @echo "SET(CMAKE_CXX_COMPILER $(TARGETCXX_CACHED))" >> $(CMAKE_TOOLCHAIN_FILE)
- @echo "SET(CMAKE_FIND_ROOT_PATH $(SYSROOT) $(SYSROOT)/usr)" >> $(CMAKE_TOOLCHAIN_FILE)
- @echo "SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> $(CMAKE_TOOLCHAIN_FILE)
- @echo "SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> $(CMAKE_TOOLCHAIN_FILE)
- @echo "SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> $(CMAKE_TOOLCHAIN_FILE)
- @touch $@
-
diff --git a/mk/toolchain.mk b/mk/toolchain.mk
index 23c968e..e7107ca 100644
--- a/mk/toolchain.mk
+++ b/mk/toolchain.mk
@@ -92,10 +92,6 @@ include $(EMBTK_ROOT)/mk/m4.mk
AUTOTOOLS_INSTALL := m4_install libtool_install autoconf_install
AUTOTOOLS_INSTALL += automake_install
-#cmake
-include $(EMBTK_ROOT)/mk/cmake.mk
-EMBTK_CMAKE_INSTALL := $(if $(CONFIG_EMBTK_HOST_HAVE_CMAKE),cmake_install)
-
__embtk_toolchain_clib = $(if $(CONFIG_EMBTK_CLIB_EGLIBC),eglibc,uclibc)
TOOLCHAIN_NAME := toolchain
TOOLCHAIN_PACKAGE := toolchain-$(GNU_TARGET)-$(__embtk_toolchain_clib)-$(EMBTK_MCU_FLAG).tar.bz2
@@ -103,7 +99,6 @@ TOOLCHAIN_DIR := $(EMBTK_GENERATED)/toolchain-$(GNU_TARGET)-$(__embtk_toolchain
TOOLCHAIN_BUILD_DIR := $(TOOLCHAIN_DIR)
TOOLCHAIN_PRE_DEPS-y := ccache_install $(AUTOTOOLS_INSTALL)
-TOOLCHAIN_PRE_DEPS-y += $(EMBTK_CMAKE_INSTALL)
TOOLCHAIN_PRE_DEPS-y += $(if $(CONFIG_EMBTK_TOOLCHAIN_PREDEP_GPERF_HOST), \
gperf_host_install)