diff options
-rw-r--r-- | kconfig/gcc.kconfig | 11 | ||||
-rw-r--r-- | mk/gcc.mk | 4 |
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 @@ -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 |