summaryrefslogtreecommitdiff
path: root/mk/binutils.mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-01-16 12:24:57 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-01-16 12:24:57 +0100
commit0805a7e6c2c07d4ac872c813b0771085c3236f56 (patch)
tree6532b36311895650c3dc645e0f3e063ec9f554c9 /mk/binutils.mk
parent3ea292044efd6383013e79f647551db72d548c1b (diff)
downloadembtoolkit-0805a7e6c2c07d4ac872c813b0771085c3236f56.tar.gz
embtoolkit-0805a7e6c2c07d4ac872c813b0771085c3236f56.tar.bz2
embtoolkit-0805a7e6c2c07d4ac872c813b0771085c3236f56.tar.xz
Toolchain: binutils: use generic download macro
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk/binutils.mk')
-rw-r--r--mk/binutils.mk14
1 files changed, 5 insertions, 9 deletions
diff --git a/mk/binutils.mk b/mk/binutils.mk
index 32575b8..5034b6a 100644
--- a/mk/binutils.mk
+++ b/mk/binutils.mk
@@ -23,10 +23,13 @@
# \date May 2009
################################################################################
-BINUTILS_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_BINUTILS_VERSION_STRING)))
+BINUTILS_NAME := binutils
+BINUTILS_VERSION := $(call EMBTK_GET_PKG_VERSION,BINUTILS)
BINUTILS_SITE := http://ftp.gnu.org/gnu/binutils
+BINUTILS_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
BINUTILS_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/binutils/$(BINUTILS_VERSION)
BINUTILS_PACKAGE := binutils-$(BINUTILS_VERSION).tar.bz2
+BINUTILS_SRC_DIR := $(TOOLS_BUILD)/binutils-$(BINUTILS_VERSION)
BINUTILS_BUILD_DIR := $(TOOLS_BUILD)/binutils
BINUTILS_MULTILIB := --disable-multilib
@@ -40,14 +43,7 @@ $(BINUTILS_BUILD_DIR)/.built: download_binutils \
@touch $@
download_binutils:
- @test -e $(DOWNLOAD_DIR)/$(BINUTILS_PACKAGE) || \
- wget -O $(DOWNLOAD_DIR)/$(BINUTILS_PACKAGE) \
- $(BINUTILS_SITE)/$(BINUTILS_PACKAGE)
-ifeq ($(CONFIG_EMBTK_BINUTILS_NEED_PATCH),y)
- @test -e $(DOWNLOAD_DIR)/binutils-$(BINUTILS_VERSION).patch || \
- wget -O $(DOWNLOAD_DIR)/binutils-$(BINUTILS_VERSION).patch \
- $(BINUTILS_PATCH_SITE)/binutils-$(BINUTILS_VERSION)-*.patch
-endif
+ $(call EMBTK_DOWNLOAD_PKG,BINUTILS)
$(BINUTILS_BUILD_DIR)/.decompressed:
@tar -C $(TOOLS_BUILD) -xjf $(DOWNLOAD_DIR)/$(BINUTILS_PACKAGE)