summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-07-25 14:58:55 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-07-25 14:58:55 +0200
commit9a2e39826946f69bfbe92b8da8bc1f7bcefa52e4 (patch)
tree746c448ea3b0232d568cad28fb91cc75d51168da
parent6ff61db92419f613900e777d942ad41c6f4fd5fc (diff)
downloadembtoolkit-9a2e39826946f69bfbe92b8da8bc1f7bcefa52e4.tar.gz
embtoolkit-9a2e39826946f69bfbe92b8da8bc1f7bcefa52e4.tar.bz2
embtoolkit-9a2e39826946f69bfbe92b8da8bc1f7bcefa52e4.tar.xz
Toolchain: GCC: Allow users to specify where to download gcc sources
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
-rw-r--r--kconfig/gcc.kconfig11
-rw-r--r--mk/gcc.mk4
2 files changed, 15 insertions, 0 deletions
diff --git a/kconfig/gcc.kconfig b/kconfig/gcc.kconfig
index e23d6e6..9e338c2 100644
--- a/kconfig/gcc.kconfig
+++ b/kconfig/gcc.kconfig
@@ -39,6 +39,17 @@ choice
bool "gcc-4.1.2"
endchoice
+config EMBTK_GCC_HAVE_MIRROR
+ bool "Use a gcc mirror"
+ help
+ specify an alternate location where to download gcc sources
+config EMBTK_GCC_HAVE_MIRROR_SITE
+ depends on EMBTK_GCC_HAVE_MIRROR
+ string "Mirror site"
+ default "ftp://ftp.lip6.fr/pub/gcc/releases/gcc-4.4.1"
+ help
+ specify an alternate location where to download gcc sources.
+
config EMBTK_GCC_MORE_LANGUAGES
bool "Support additional languages"
help
diff --git a/mk/gcc.mk b/mk/gcc.mk
index 8b02d5e..c44cc55 100644
--- a/mk/gcc.mk
+++ b/mk/gcc.mk
@@ -23,7 +23,11 @@
################################################################################
GCC_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_GCC_VERSION_STRING)))
+ifeq ($(CONFIG_EMBTK_GCC_HAVE_MIRROR),y)
+GCC_SITE := $(subst ",,$(strip $(CONFIG_EMBTK_GCC_HAVE_MIRROR_SITE)))
+else
GCC_SITE := ftp://ftp.gnu.org/gnu/gcc/gcc-$(GCC_VERSION)
+endif
GCC_PACKAGE := gcc-$(GCC_VERSION).tar.bz2
GCC1_BUILD_DIR := $(TOOLS_BUILD)/gcc1
GCC2_BUILD_DIR := $(TOOLS_BUILD)/gcc2