mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-10 03:47:44 +00:00
gcc: add avr32 special version
* Add new gcc version 4.2.2-avr32-2.1.5 in Config.in * Select the Atmel mirror to download gcc with avr32 in their version name, in gcc-uclibc-*.mk * Do not apply patches if the patch directory is empty, in gcc-uclibc-*.mk Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
f184806032
commit
d3f383b1ee
@ -26,6 +26,10 @@ choice
|
|||||||
depends on BR2_DEPRECATED || BR2_avr32
|
depends on BR2_DEPRECATED || BR2_avr32
|
||||||
bool "gcc 4.2.2"
|
bool "gcc 4.2.2"
|
||||||
|
|
||||||
|
config BR2_GCC_VERSION_4_2_2_AVR32_2_1_5
|
||||||
|
depends on BR2_avr32
|
||||||
|
bool "gcc 4.2.2-avr32-2.1.5"
|
||||||
|
|
||||||
config BR2_GCC_VERSION_4_2_3
|
config BR2_GCC_VERSION_4_2_3
|
||||||
depends on !BR2_nios2
|
depends on !BR2_nios2
|
||||||
depends on BR2_EXT_GCC_VERSION_4_2_3
|
depends on BR2_EXT_GCC_VERSION_4_2_3
|
||||||
@ -66,7 +70,7 @@ config BR2_GCC_SUPPORTS_SYSROOT
|
|||||||
|
|
||||||
config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
|
config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
|
||||||
bool
|
bool
|
||||||
default y if !BR2_GCC_VERSION_4_1_2 && !BR2_GCC_VERSION_4_2_1 && !BR2_GCC_VERSION_4_2_2 && !BR2_GCC_VERSION_4_2_3 && !BR2_GCC_VERSION_4_2_4
|
default y if !BR2_GCC_VERSION_4_1_2 && !BR2_GCC_VERSION_4_2_1 && !BR2_GCC_VERSION_4_2_2 && !BR2_GCC_VERSION_4_2_3 && !BR2_GCC_VERSION_4_2_4 && !BR2_GCC_VERSION_4_2_2_AVR32_2_1_5
|
||||||
|
|
||||||
config BR2_GCC_SNAP_DATE
|
config BR2_GCC_SNAP_DATE
|
||||||
string "GCC snapshot date"
|
string "GCC snapshot date"
|
||||||
@ -81,6 +85,7 @@ config BR2_GCC_VERSION
|
|||||||
default "4.1.2" if BR2_GCC_VERSION_4_1_2
|
default "4.1.2" if BR2_GCC_VERSION_4_1_2
|
||||||
default "4.2.1" if BR2_GCC_VERSION_4_2_1
|
default "4.2.1" if BR2_GCC_VERSION_4_2_1
|
||||||
default "4.2.2" if BR2_GCC_VERSION_4_2_2
|
default "4.2.2" if BR2_GCC_VERSION_4_2_2
|
||||||
|
default "4.2.2-avr32-2.1.5" if BR2_GCC_VERSION_4_2_2_AVR32_2_1_5
|
||||||
default "4.2.3" if BR2_GCC_VERSION_4_2_3
|
default "4.2.3" if BR2_GCC_VERSION_4_2_3
|
||||||
default "4.2.4" if BR2_GCC_VERSION_4_2_4
|
default "4.2.4" if BR2_GCC_VERSION_4_2_4
|
||||||
default "4.3.2" if BR2_GCC_VERSION_4_3_2
|
default "4.3.2" if BR2_GCC_VERSION_4_3_2
|
||||||
|
@ -22,13 +22,15 @@ ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
|
|||||||
# without sysroot support. Sysroot toolchain is gcc-uclibc-4.x.mk
|
# without sysroot support. Sysroot toolchain is gcc-uclibc-4.x.mk
|
||||||
ifneq ($(BR2_TOOLCHAIN_SYSROOT),y)
|
ifneq ($(BR2_TOOLCHAIN_SYSROOT),y)
|
||||||
|
|
||||||
ifeq ($(GCC_SNAP_DATE),)
|
ifneq ($(GCC_SNAP_DATE),)
|
||||||
GCC_OFFICIAL_VER:=$(GCC_VERSION)
|
GCC_SITE:=ftp://sources.redhat.com/pub/gcc/snapshots/$(GCC_VERSION)
|
||||||
GCC_SITE:=$(BR2_GNU_MIRROR)/gcc/gcc-$(GCC_VERSION)
|
GCC_OFFICIAL_VER:=$(GCC_VERSION)-$(GCC_SNAP_DATE)
|
||||||
#GCC_SITE:=ftp://ftp.ibiblio.org/pub/mirrors/gnu/ftp/gnu/gcc/gcc-$(GCC_OFFICIAL_VER)
|
else ifeq ($(findstring avr32,$(GCC_VERSION)),avr32)
|
||||||
|
GCC_SITE:=ftp://www.at91.com/pub/buildroot/
|
||||||
|
GCC_OFFICIAL_VER:=$(GCC_VERSION)
|
||||||
else
|
else
|
||||||
GCC_OFFICIAL_VER:=$(GCC_VERSION)-$(GCC_SNAP_DATE)
|
GCC_SITE:=$(BR2_GNU_MIRROR)/gcc/gcc-$(GCC_VERSION)
|
||||||
GCC_SITE:=ftp://sources.redhat.com/pub/gcc/snapshots/$(GCC_OFFICIAL_VER)
|
GCC_OFFICIAL_VER:=$(GCC_VERSION)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@ -142,7 +144,9 @@ $(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE)
|
|||||||
gcc-patched: $(GCC_DIR)/.patched
|
gcc-patched: $(GCC_DIR)/.patched
|
||||||
$(GCC_DIR)/.patched: $(GCC_DIR)/.unpacked
|
$(GCC_DIR)/.patched: $(GCC_DIR)/.unpacked
|
||||||
# Apply any files named gcc-*.patch from the source directory to gcc
|
# Apply any files named gcc-*.patch from the source directory to gcc
|
||||||
|
ifneq ($(wildcard $(GCC_PATCH_DIR)),)
|
||||||
toolchain/patch-kernel.sh $(GCC_DIR) $(GCC_PATCH_DIR) \*.patch
|
toolchain/patch-kernel.sh $(GCC_DIR) $(GCC_PATCH_DIR) \*.patch
|
||||||
|
endif
|
||||||
# Note: The soft float situation has improved considerably with gcc 3.4.x.
|
# Note: The soft float situation has improved considerably with gcc 3.4.x.
|
||||||
# We can dispense with the custom spec files, as well as libfloat for the arm case.
|
# We can dispense with the custom spec files, as well as libfloat for the arm case.
|
||||||
# However, we still need a patch for arm. There's a similar patch for gcc 3.3.x
|
# However, we still need a patch for arm. There's a similar patch for gcc 3.3.x
|
||||||
|
@ -20,13 +20,15 @@
|
|||||||
# sysroot support works with gcc >= 4.2.0 only
|
# sysroot support works with gcc >= 4.2.0 only
|
||||||
ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
|
ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
|
||||||
|
|
||||||
ifeq ($(GCC_SNAP_DATE),)
|
ifneq ($(GCC_SNAP_DATE),)
|
||||||
GCC_OFFICIAL_VERSION:=$(GCC_VERSION)
|
GCC_SITE:=ftp://sources.redhat.com/pub/gcc/snapshots/$(GCC_VERSION)
|
||||||
GCC_SITE:=$(BR2_GNU_MIRROR)/gcc/gcc-$(GCC_VERSION)
|
GCC_OFFICIAL_VER:=$(GCC_VERSION)-$(GCC_SNAP_DATE)
|
||||||
#GCC_SITE:=ftp://ftp.ibiblio.org/pub/mirrors/gnu/ftp/gnu/gcc/gcc-$(GCC_OFFICIAL_VERSION)
|
else ifeq ($(findstring avr32,$(GCC_VERSION)),avr32)
|
||||||
|
GCC_SITE:=ftp://www.at91.com/pub/buildroot/
|
||||||
|
GCC_OFFICIAL_VER:=$(GCC_VERSION)
|
||||||
else
|
else
|
||||||
GCC_OFFICIAL_VERSION:=$(GCC_VERSION)-$(GCC_SNAP_DATE)
|
GCC_SITE:=$(BR2_GNU_MIRROR)/gcc/gcc-$(GCC_VERSION)
|
||||||
GCC_SITE:=ftp://sources.redhat.com/pub/gcc/snapshots/$(GCC_OFFICIAL_VERSION)
|
GCC_OFFICIAL_VER:=$(GCC_VERSION)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# redefine if using an external prepatched gcc source
|
# redefine if using an external prepatched gcc source
|
||||||
@ -182,7 +184,9 @@ $(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE)
|
|||||||
gcc-patched: $(GCC_DIR)/.patched
|
gcc-patched: $(GCC_DIR)/.patched
|
||||||
$(GCC_DIR)/.patched: $(GCC_DIR)/.unpacked
|
$(GCC_DIR)/.patched: $(GCC_DIR)/.unpacked
|
||||||
# Apply any files named gcc-*.patch from the source directory to gcc
|
# Apply any files named gcc-*.patch from the source directory to gcc
|
||||||
|
ifneq ($(wildcard $(GCC_PATCH_DIR)),)
|
||||||
toolchain/patch-kernel.sh $(GCC_DIR) $(GCC_PATCH_DIR) \*.patch $(GCC_PATCH_EXTRA)
|
toolchain/patch-kernel.sh $(GCC_DIR) $(GCC_PATCH_DIR) \*.patch $(GCC_PATCH_EXTRA)
|
||||||
|
endif
|
||||||
|
|
||||||
# Note: The soft float situation has improved considerably with gcc 3.4.x.
|
# Note: The soft float situation has improved considerably with gcc 3.4.x.
|
||||||
# We can dispense with the custom spec files, as well as libfloat for the arm case.
|
# We can dispense with the custom spec files, as well as libfloat for the arm case.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user