binutils: add avr32 special version

* Add a new binutils version 2.18-avr32-1.0.1 to the Config.in

 * Use a different site to download avr32 binutils version in binutils.mk

 * Only apply patches from the patch directory if it exists in
   binutils.mk

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas Petazzoni 2009-12-14 11:19:34 +01:00
parent 8bbb56dd91
commit f184806032
2 changed files with 10 additions and 0 deletions

View File

@ -24,6 +24,10 @@ choice
depends on BR2_DEPRECATED depends on BR2_DEPRECATED
bool "binutils 2.18.50.0.9" bool "binutils 2.18.50.0.9"
config BR2_BINUTILS_VERSION_2_18_AVR32_1_0_1
depends on BR2_avr32
bool "binutils 2.18-avr32-1.0.1"
config BR2_BINUTILS_VERSION_2_19 config BR2_BINUTILS_VERSION_2_19
depends on !BR2_avr32 && !BR2_nios2 depends on !BR2_avr32 && !BR2_nios2
depends on BR2_DEPRECATED depends on BR2_DEPRECATED
@ -46,6 +50,7 @@ config BR2_BINUTILS_VERSION
default "2.17" if BR2_BINUTILS_VERSION_2_17 default "2.17" if BR2_BINUTILS_VERSION_2_17
default "2.18" if BR2_BINUTILS_VERSION_2_18 default "2.18" if BR2_BINUTILS_VERSION_2_18
default "2.18.50.0.9" if BR2_BINUTILS_VERSION_2_18_50_0_9 default "2.18.50.0.9" if BR2_BINUTILS_VERSION_2_18_50_0_9
default "2.18-avr32-1.0.1" if BR2_BINUTILS_VERSION_2_18_AVR32_1_0_1
default "2.19" if BR2_BINUTILS_VERSION_2_19 default "2.19" if BR2_BINUTILS_VERSION_2_19
default "2.19.1" if BR2_BINUTILS_VERSION_2_19_1 default "2.19.1" if BR2_BINUTILS_VERSION_2_19_1
default "2.20" if BR2_BINUTILS_VERSION_2_20 default "2.20" if BR2_BINUTILS_VERSION_2_20

View File

@ -22,6 +22,9 @@ endif
ifeq ($(BINUTILS_VERSION),2.17) ifeq ($(BINUTILS_VERSION),2.17)
BINUTILS_SITE:=$(BR2_GNU_MIRROR)/binutils/ BINUTILS_SITE:=$(BR2_GNU_MIRROR)/binutils/
endif endif
ifeq ($(findstring avr32,$(BINUTILS_VERSION)),avr32)
BINUTILS_SITE:=ftp://www.at91.com/pub/buildroot/
endif
# We do not rely on the host's gmp/mpfr but use a known working one # We do not rely on the host's gmp/mpfr but use a known working one
BINUTILS_HOST_PREREQ:= BINUTILS_HOST_PREREQ:=
@ -79,7 +82,9 @@ $(BINUTILS_DIR)/.unpacked: $(DL_DIR)/$(BINUTILS_SOURCE)
binutils-patched: $(BINUTILS_DIR)/.patched binutils-patched: $(BINUTILS_DIR)/.patched
$(BINUTILS_DIR)/.patched: $(BINUTILS_DIR)/.unpacked $(BINUTILS_DIR)/.patched: $(BINUTILS_DIR)/.unpacked
# Apply appropriate binutils patches. # Apply appropriate binutils patches.
ifneq ($(wildcard $(BINUTILS_PATCH_DIR)),)
toolchain/patch-kernel.sh $(BINUTILS_DIR) $(BINUTILS_PATCH_DIR) \*.patch $(BINUTILS_PATCH_EXTRA) toolchain/patch-kernel.sh $(BINUTILS_DIR) $(BINUTILS_PATCH_DIR) \*.patch $(BINUTILS_PATCH_EXTRA)
endif
touch $@ touch $@
$(BINUTILS_DIR1)/.configured: $(BINUTILS_DIR)/.patched $(BINUTILS_DIR1)/.configured: $(BINUTILS_DIR)/.patched