summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-03-05 21:27:09 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-03-05 21:27:09 +0100
commite65430fc185fda163e427670cbff57f27c28abaa (patch)
tree8135d664915aedf008c6cf3d5405886bbfe3f7a6
parent83da0202c21bb5e6dd5aa7e847e8af1a4dc7173a (diff)
downloadembtoolkit-e65430fc185fda163e427670cbff57f27c28abaa.tar.gz
embtoolkit-e65430fc185fda163e427670cbff57f27c28abaa.tar.bz2
embtoolkit-e65430fc185fda163e427670cbff57f27c28abaa.tar.xz
Toolchain: binutils: give ability to use its git repository, instead of tarball
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--kconfig/binutils.kconfig32
-rw-r--r--mk/binutils.mk7
2 files changed, 32 insertions, 7 deletions
diff --git a/kconfig/binutils.kconfig b/kconfig/binutils.kconfig
index 756832d..788814e 100644
--- a/kconfig/binutils.kconfig
+++ b/kconfig/binutils.kconfig
@@ -1,6 +1,6 @@
################################################################################
# Embtoolkit
-# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE.
+# Copyright(C) 2009-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
@@ -44,9 +44,37 @@ choice
config EMBTK_BINUTILS_VERSION_2_19_1
bool "binutils-2.19.1"
select EMBTK_BINUTILS_NEED_PATCH
-
+ config EMBTK_BINUTILS_VERSION_GIT
+ bool "Use binutild git repository"
+ help
+ Answer Y here if you want to build your toolchain based
+ on binutils sources from its GIT repository.
+ See http://sourceware.org/git/?p=binutils.git
endchoice
+#
+# GIT repository options
+#
+config EMBTK_BINUTILS_GIT_BRANCH
+ string "Branch to use"
+ default "master"
+ depends on EMBTK_BINUTILS_VERSION_GIT
+ help
+ The branch of the git repository to use, the default is master.
+
+config EMBTK_BINUTILS_GIT_REVISION
+ string "Checkout a specific revision instead of the latest"
+ depends on EMBTK_BINUTILS_VERSION_GIT
+ help
+ Chechout a specific revision instead of the latest.
+
+config EMBTK_BINUTILS_REFSPEC
+ string
+ default "toolchain"
+
+#
+# Versions strings
+#
config EMBTK_BINUTILS_VERSION_STRING
string
default "2.21.1" if EMBTK_BINUTILS_VERSION_2_21_1
diff --git a/mk/binutils.mk b/mk/binutils.mk
index a1ef925..842dce4 100644
--- a/mk/binutils.mk
+++ b/mk/binutils.mk
@@ -1,6 +1,6 @@
################################################################################
# Embtoolkit
-# Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE.
+# Copyright(C) 2009-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
@@ -26,16 +26,13 @@
BINUTILS_NAME := binutils
BINUTILS_VERSION := $(call embtk_get_pkgversion,binutils)
BINUTILS_SITE := http://ftp.gnu.org/gnu/binutils
-BINUTILS_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror
+BINUTILS_GIT_SITE := git://sourceware.org/git/binutils.git
BINUTILS_PACKAGE := binutils-$(BINUTILS_VERSION).tar.bz2
BINUTILS_SRC_DIR := $(TOOLS_BUILD)/binutils-$(BINUTILS_VERSION)
BINUTILS_BUILD_DIR := $(TOOLS_BUILD)/binutils-build
BINUTILS_CONFIGURE_OPTS := --with-sysroot=$(SYSROOT) --disable-werror \
--disable-nls --disable-multilib \
- --with-gmp=$(GMP_HOST_DIR) \
- --with-mpfr=$(MPFR_HOST_DIR) \
- --with-mpc=$(MPC_HOST_DIR) \
--target=$(STRICT_GNU_TARGET)
BINUTILS_PREFIX := $(TOOLS)