diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-01-30 22:53:45 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-01-30 22:53:45 +0100 |
commit | ed1ed9bf360c8dbca99e549ba29c48f5e63f3ee9 (patch) | |
tree | 4baaa762336d95505a505b1640320c448f4a7900 /mk | |
parent | 64242f6f2b4b80b8756e2dffc8ad302b7bcaf5ae (diff) | |
download | embtoolkit-ed1ed9bf360c8dbca99e549ba29c48f5e63f3ee9.tar.gz embtoolkit-ed1ed9bf360c8dbca99e549ba29c48f5e63f3ee9.tar.bz2 embtoolkit-ed1ed9bf360c8dbca99e549ba29c48f5e63f3ee9.tar.xz |
Toolchain: eglibc: build gperf for when eglibc EGLIBC_LOCALE_CODE is selected
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/gperf_host.mk | 34 | ||||
-rw-r--r-- | mk/packages.mk | 7 | ||||
-rw-r--r-- | mk/toolchain.mk | 14 |
3 files changed, 46 insertions, 9 deletions
diff --git a/mk/gperf_host.mk b/mk/gperf_host.mk new file mode 100644 index 0000000..55e2784 --- /dev/null +++ b/mk/gperf_host.mk @@ -0,0 +1,34 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2011-2012 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 gperf_host.mk +# \brief gperf_host.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date June 2011 +################################################################################ + +GPERF_HOST_NAME := gperf +GPERF_HOST_VERSION := $(call embtk_get_pkgversion,gperf_host) +GPERF_HOST_SITE := http://ftp.gnu.org/gnu/gperf +GPERF_HOST_PACKAGE := gperf-$(GPERF_HOST_VERSION).tar.gz +GPERF_HOST_SRC_DIR := $(TOOLS_BUILD)/gperf-$(GPERF_HOST_VERSION) +GPERF_HOST_BUILD_DIR := $(TOOLS_BUILD)/gperf-$(GPERF_HOST_VERSION) + +gperf_host_clean: + $(embtk_pinfo,"Clean up gperf for host...") diff --git a/mk/packages.mk b/mk/packages.mk index 4c0e0d2..f9830b0 100644 --- a/mk/packages.mk +++ b/mk/packages.mk @@ -28,14 +28,15 @@ HOSTTOOLS_COMPONENTS-y := mkimage_install pkgconfig_install # # Common include for target and host # +include $(EMBTK_ROOT)/mk/fakeroot.mk +include $(EMBTK_ROOT)/mk/gperf_host.mk +HOSTTOOLS_COMPONENTS-$(CONFIG_EMBTK_HOST_HAVE_GPERF) += gperf_host_install +include $(EMBTK_ROOT)/mk/makedevs.mk include $(EMBTK_ROOT)/mk/mkimage.mk include $(EMBTK_ROOT)/mk/mtd-utils.mk include $(EMBTK_ROOT)/mk/pkgconfig.mk -include $(EMBTK_ROOT)/mk/fakeroot.mk -include $(EMBTK_ROOT)/mk/makedevs.mk include $(EMBTK_ROOT)/mk/squashfs.mk include $(EMBTK_ROOT)/mk/zlib_host.mk - HOSTTOOLS_COMPONENTS-$(CONFIG_EMBTK_HOST_HAVE_ZLIB) += zlib_host_install diff --git a/mk/toolchain.mk b/mk/toolchain.mk index 35e97a4..bde654e 100644 --- a/mk/toolchain.mk +++ b/mk/toolchain.mk @@ -102,8 +102,10 @@ TOOLCHAIN_PACKAGE := toolchain-$(GNU_TARGET)-$(__embtk_toolchain_clib)-$(EMBTK_M TOOLCHAIN_DIR := $(EMBTK_GENERATED)/toolchain-$(GNU_TARGET)-$(__embtk_toolchain_clib)-$(EMBTK_MCU_FLAG) TOOLCHAIN_BUILD_DIR := $(TOOLCHAIN_DIR) -TOOLCHAIN_PRE_DEPS := ccache_install $(AUTOTOOLS_INSTALL) -TOOLCHAIN_PRE_DEPS += $(EMBTK_CMAKE_INSTALL) +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) TOOLCHAIN_DEPS := linux_headers_install gmp_host_install TOOLCHAIN_DEPS += mpfr_host_install mpc_host_install binutils_install @@ -133,7 +135,7 @@ endef define ___embtk_toolchain_decompress cd $(EMBTK_ROOT) && tar xjf $(TOOLCHAIN_DIR)/$(TOOLCHAIN_PACKAGE) - $(MAKE) mkinitialpath $(TOOLCHAIN_PRE_DEPS) + $(MAKE) mkinitialpath $(TOOLCHAIN_PRE_DEPS-y) mkdir -p $(GCC3_BUILD_DIR) touch $(GCC3_BUILD_DIR)/.installed touch $(GCC3_BUILD_DIR)/.gcc3_post_install @@ -159,7 +161,7 @@ define __embtk_toolchain_build $(foreach pkg,$(__embtk_rootfs_pkgs-y),$(MAKE) $(pkg)_clean;) rm -rf $(SYSROOT) $(__embtk_mk_initsysrootdirs) - $(MAKE) mkinitialpath $(TOOLCHAIN_PRE_DEPS) $(TOOLCHAIN_DEPS) + $(MAKE) mkinitialpath $(TOOLCHAIN_PRE_DEPS-y) $(TOOLCHAIN_DEPS) touch $(TOOLCHAIN_DIR)/.installed) $(if $(findstring addons,$(1)), $(call embtk_pinfo,"Building new $(GNU_TARGET)/$(EMBTK_MCU_FLAG) toolchain ADDONS - please wait...") @@ -172,7 +174,7 @@ define __embtk_toolchain_build $(foreach addon,$(__embtk_toolchain_addons-n), $(MAKE) $(addon)_clean;)) $(if $(TOOLCHAIN_ADDONS-y), - $(MAKE) $(TOOLCHAIN_PRE_DEPS) $(TOOLCHAIN_ADDONS-y)) + $(MAKE) $(TOOLCHAIN_PRE_DEPS-y) $(TOOLCHAIN_ADDONS-y)) touch $(TOOLCHAIN_ADDONS_BUILD_DIR)/.installed) $(if $(findstring core,$(1))$(findstring addons,$(1)), $(__embtk_toolchain_symlinktools) @@ -208,7 +210,7 @@ toolchain_clean: $(Q)$(__embtk_toolchain_clean) # Download target for offline build -TOOLCHAIN_ALL_DEPS := $(TOOLCHAIN_PRE_DEPS) $(TOOLCHAIN_DEPS) +TOOLCHAIN_ALL_DEPS := $(TOOLCHAIN_PRE_DEPS-y) $(TOOLCHAIN_DEPS) TOOLCHAIN_ALL_DEPS += $(TOOLCHAIN_ADDONS_DEPS) packages_fetch:: $(patsubst %_install,download_%,$(TOOLCHAIN_ALL_DEPS)) |