mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
reinstate AVR32 toolchain
This commit is contained in:
parent
6b63009f5f
commit
01426334b4
@ -1,18 +1,30 @@
|
|||||||
if BR2_TOOLCHAIN_EXTERNAL_SOURCE
|
|
||||||
choice
|
choice
|
||||||
prompt "Source location:"
|
prompt "Source location:"
|
||||||
# default BR2_TOOLCHAIN_ATMEL_AVR32 if BR2_avr32
|
default BR2_TOOLCHAIN_NORMAL if!BR2_avr32
|
||||||
|
default BR2_TOOLCHAIN_ATMEL_AVR32 if BR2_avr32
|
||||||
|
depends on BR2_TOOLCHAIN_BUILDROOT
|
||||||
help
|
help
|
||||||
Select whether to use the toolchain built by the buildroot
|
Select whether to use the toolchain built by the buildroot
|
||||||
system or an external pre-built toolchain.
|
system or an external pre-built toolchain.
|
||||||
|
|
||||||
|
config BR2_TOOLCHAIN_NORMAL
|
||||||
|
bool
|
||||||
|
prompt "Use default sources for toolchain"
|
||||||
|
depends on !BR2_avr32
|
||||||
|
help
|
||||||
|
Download vanilla binutils, gcc, uclibc and gdb from their
|
||||||
|
main download locations, and apply patches from the
|
||||||
|
"toolchain/<package>" directores.
|
||||||
|
I.E: Do not download a prepatched vendor source suite.
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_ATMEL_AVR32
|
config BR2_TOOLCHAIN_ATMEL_AVR32
|
||||||
bool "Use prepatched source for AVR32 toolchain"
|
bool
|
||||||
|
prompt "Use prepatched source for AVR32 toolchain"
|
||||||
depends on BR2_avr32
|
depends on BR2_avr32
|
||||||
# depends on BR2_GCC_VERSION_4_1_2
|
depends on BR2_GCC_VERSION_4_1_2
|
||||||
# depends on BR2_GDB_VERSION_6_4 || !BR2_PACKAGE_GDB
|
depends on BR2_GDB_VERSION_6_4 || !BR2_PACKAGE_GDB
|
||||||
# depends on BR2_BINUTILS_VERSION_2_17
|
depends on BR2_BINUTILS_VERSION_2_17
|
||||||
# depends on BR2_UCLIBC_VERSION_0_9_28_3
|
depends on BR2_UCLIBC_VERSION_0_9_28_3
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
@ -43,4 +55,3 @@ config BR2_VENDOR_GDB_RELEASE
|
|||||||
config BR2_VENDOR_PATCH_DIR
|
config BR2_VENDOR_PATCH_DIR
|
||||||
string
|
string
|
||||||
default "target/device/Atmel/toolchain/avr32" if BR2_TOOLCHAIN_ATMEL_AVR32
|
default "target/device/Atmel/toolchain/avr32" if BR2_TOOLCHAIN_ATMEL_AVR32
|
||||||
endif
|
|
||||||
|
@ -3,28 +3,16 @@ choice
|
|||||||
prompt "Toolchain type"
|
prompt "Toolchain type"
|
||||||
default BR2_TOOLCHAIN_BUILDROOT
|
default BR2_TOOLCHAIN_BUILDROOT
|
||||||
help
|
help
|
||||||
Select whether to use the toolchain provided by buildroot
|
Select whether to use the toolchain built by the buildroot
|
||||||
or an external toolchain.
|
system or an external pre-built toolchain.
|
||||||
|
|
||||||
Some vendors provide toolchains in binary form, some in
|
|
||||||
source form.
|
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_BUILDROOT
|
config BR2_TOOLCHAIN_BUILDROOT
|
||||||
bool "Buildroot toolchain"
|
bool "Buildroot toolchain"
|
||||||
depends on !BR2_avr32
|
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_EXTERNAL
|
config BR2_TOOLCHAIN_EXTERNAL
|
||||||
bool "External binary toolchain"
|
bool "External toolchain"
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_EXTERNAL_SOURCE
|
|
||||||
bool "External source toolchain"
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_SOURCE
|
|
||||||
bool
|
|
||||||
default y if BR2_TOOLCHAIN_BUILDROOT || BR2_TOOLCHAIN_EXTERNAL_SOURCE
|
|
||||||
default n if BR2_TOOLCHAIN_EXTERNAL
|
|
||||||
|
|
||||||
source "target/device/Toolchain.in"
|
source "target/device/Toolchain.in"
|
||||||
|
|
||||||
source "toolchain/Config.in.2"
|
source "toolchain/Config.in.2"
|
||||||
|
@ -65,13 +65,13 @@ BINUTILS_TARGET_CONFIG_OPTIONS=--with-gmp="$(GMP_TARGET_DIR)"
|
|||||||
BINUTILS_TARGET_CONFIG_OPTIONS+=--with-mpfr="$(MPFR_TARGET_DIR)"
|
BINUTILS_TARGET_CONFIG_OPTIONS+=--with-mpfr="$(MPFR_TARGET_DIR)"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_TOOLCHAIN_SOURCE),)
|
ifeq ($(BR2_TOOLCHAIN_NORMAL),)
|
||||||
BINUTILS_SITE:=$(VENDOR_SITE)
|
BINUTILS_SITE:=$(VENDOR_SITE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BINUTILS_OFFICIAL_VERSION:=$(BINUTILS_VERSION)$(VENDOR_SUFFIX)$(VENDOR_BINUTILS_RELEASE)
|
BINUTILS_OFFICIAL_VERSION:=$(BINUTILS_VERSION)$(VENDOR_SUFFIX)$(VENDOR_BINUTILS_RELEASE)
|
||||||
|
|
||||||
ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
|
ifeq ($(BR2_TOOLCHAIN_NORMAL),y)
|
||||||
BINUTILS_PATCH_DIR:=toolchain/binutils/$(BINUTILS_VERSION)
|
BINUTILS_PATCH_DIR:=toolchain/binutils/$(BINUTILS_VERSION)
|
||||||
else
|
else
|
||||||
BINUTILS_PATCH_DIR:=$(VENDOR_PATCH_DIR)/binutils-$(BINUTILS_OFFICIAL_VERSION)
|
BINUTILS_PATCH_DIR:=$(VENDOR_PATCH_DIR)/binutils-$(BINUTILS_OFFICIAL_VERSION)
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
if BR2_TOOLCHAIN_EXTERNAL
|
menu "External Toolchain Options"
|
||||||
comment "External Toolchain Options"
|
depends on BR2_TOOLCHAIN_EXTERNAL
|
||||||
|
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_EXTERNAL_LIB_C
|
config BR2_TOOLCHAIN_EXTERNAL_LIB_C
|
||||||
string "The core C library from the external toolchain"
|
string "The core C library from the external toolchain"
|
||||||
@ -105,4 +104,4 @@ config BR2_TARGET_OPTIMIZATION
|
|||||||
help
|
help
|
||||||
Optimizations to use when building for the target host.
|
Optimizations to use when building for the target host.
|
||||||
|
|
||||||
endif
|
endmenu
|
||||||
|
@ -33,7 +33,7 @@ endif
|
|||||||
|
|
||||||
|
|
||||||
# redefine if using an external prepatched gcc source
|
# redefine if using an external prepatched gcc source
|
||||||
ifeq ($(BR2_TOOLCHAIN_SOURCE),)
|
ifeq ($(BR2_TOOLCHAIN_NORMAL),)
|
||||||
GCC_SITE:=$(VENDOR_SITE)
|
GCC_SITE:=$(VENDOR_SITE)
|
||||||
GCC_OFFICIAL_VER:=$(GCC_VERSION)$(VENDOR_SUFFIX)$(VENDOR_GCC_RELEASE)
|
GCC_OFFICIAL_VER:=$(GCC_VERSION)$(VENDOR_SUFFIX)$(VENDOR_GCC_RELEASE)
|
||||||
endif
|
endif
|
||||||
@ -41,7 +41,7 @@ endif
|
|||||||
GCC_SOURCE:=gcc-$(GCC_OFFICIAL_VER).tar.bz2
|
GCC_SOURCE:=gcc-$(GCC_OFFICIAL_VER).tar.bz2
|
||||||
GCC_DIR:=$(TOOL_BUILD_DIR)/gcc-$(GCC_OFFICIAL_VER)
|
GCC_DIR:=$(TOOL_BUILD_DIR)/gcc-$(GCC_OFFICIAL_VER)
|
||||||
|
|
||||||
ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
|
ifeq ($(BR2_TOOLCHAIN_NORMAL),y)
|
||||||
ifeq ($(GCC_SNAP_DATE),)
|
ifeq ($(GCC_SNAP_DATE),)
|
||||||
GCC_PATCH_DIR:=toolchain/gcc/$(GCC_VERSION)
|
GCC_PATCH_DIR:=toolchain/gcc/$(GCC_VERSION)
|
||||||
else
|
else
|
||||||
|
@ -30,13 +30,13 @@ GCC_SITE:=ftp://sources.redhat.com/pub/gcc/snapshots/$(GCC_OFFICIAL_VER)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# redefine if using an external prepatched gcc source
|
# redefine if using an external prepatched gcc source
|
||||||
ifeq ($(BR2_TOOLCHAIN_SOURCE),)
|
ifeq ($(BR2_TOOLCHAIN_NORMAL),)
|
||||||
GCC_SITE:=$(VENDOR_SITE)
|
GCC_SITE:=$(VENDOR_SITE)
|
||||||
GCC_OFFICIAL_VER:=$(GCC_VERSION)$(VENDOR_SUFFIX)$(VENDOR_GCC_RELEASE)
|
GCC_OFFICIAL_VER:=$(GCC_VERSION)$(VENDOR_SUFFIX)$(VENDOR_GCC_RELEASE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# define patch location
|
# define patch location
|
||||||
ifeq ($(BR2_TOOLCHAIN_SOURCE),y) # Normal toolchain
|
ifeq ($(BR2_TOOLCHAIN_NORMAL),y) # Normal toolchain
|
||||||
ifeq ($(GCC_SNAP_DATE),) # Not a snapshot
|
ifeq ($(GCC_SNAP_DATE),) # Not a snapshot
|
||||||
GCC_PATCH_DIR:=toolchain/gcc/$(GCC_VERSION)
|
GCC_PATCH_DIR:=toolchain/gcc/$(GCC_VERSION)
|
||||||
else # Is a snapshot
|
else # Is a snapshot
|
||||||
|
@ -20,7 +20,7 @@ GDB_DIR:=$(TOOL_BUILD_DIR)/gdb-$(GDB_VERSION)
|
|||||||
GDB_PATCH_DIR:=toolchain/gdb/$(GDB_VERSION)
|
GDB_PATCH_DIR:=toolchain/gdb/$(GDB_VERSION)
|
||||||
else
|
else
|
||||||
|
|
||||||
ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
|
ifeq ($(BR2_TOOLCHAIN_NORMAL),y)
|
||||||
GDB_SITE:=http://ftp.gnu.org/gnu/gdb
|
GDB_SITE:=http://ftp.gnu.org/gnu/gdb
|
||||||
else
|
else
|
||||||
GDB_SITE:=$(VENDOR_SITE)
|
GDB_SITE:=$(VENDOR_SITE)
|
||||||
@ -31,7 +31,7 @@ GDB_OFFICIAL_VERSION:=$(GDB_VERSION)$(VENDOR_SUFFIX)$(VENDOR_GDB_RELEASE)
|
|||||||
GDB_SOURCE:=gdb-$(GDB_OFFICIAL_VERSION).tar.bz2
|
GDB_SOURCE:=gdb-$(GDB_OFFICIAL_VERSION).tar.bz2
|
||||||
GDB_CAT:=$(BZCAT)
|
GDB_CAT:=$(BZCAT)
|
||||||
|
|
||||||
ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
|
ifeq ($(BR2_TOOLCHAIN_NORMAL),y)
|
||||||
GDB_PATCH_DIR:=toolchain/gdb/$(GDB_OFFICIAL_VERSION)
|
GDB_PATCH_DIR:=toolchain/gdb/$(GDB_OFFICIAL_VERSION)
|
||||||
else
|
else
|
||||||
GDB_PATCH_DIR:=$(VENDOR_PATCH_DIR)/gdb-$(GDB_OFFICIAL_VERSION)
|
GDB_PATCH_DIR:=$(VENDOR_PATCH_DIR)/gdb-$(GDB_OFFICIAL_VERSION)
|
||||||
|
@ -34,14 +34,14 @@ UCLIBC_VER:=0.9.28
|
|||||||
endif
|
endif
|
||||||
UCLIBC_SITE:=http://www.uclibc.org/downloads
|
UCLIBC_SITE:=http://www.uclibc.org/downloads
|
||||||
|
|
||||||
ifeq ($(BR2_TOOLCHAIN_SOURCE),)
|
ifeq ($(BR2_TOOLCHAIN_NORMAL),)
|
||||||
UCLIBC_SITE:=$(VENDOR_SITE)
|
UCLIBC_SITE:=$(VENDOR_SITE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
UCLIBC_OFFICIAL_VERSION:=$(UCLIBC_VER)$(VENDOR_SUFFIX)$(VENDOR_UCLIBC_RELEASE)
|
UCLIBC_OFFICIAL_VERSION:=$(UCLIBC_VER)$(VENDOR_SUFFIX)$(VENDOR_UCLIBC_RELEASE)
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
|
ifeq ($(BR2_TOOLCHAIN_NORMAL),y)
|
||||||
UCLIBC_PATCH_DIR:=toolchain/uClibc/
|
UCLIBC_PATCH_DIR:=toolchain/uClibc/
|
||||||
else
|
else
|
||||||
UCLIBC_PATCH_DIR:=$(VENDOR_PATCH_DIR)/uClibc-$(UCLIBC_OFFICIAL_VERSION)
|
UCLIBC_PATCH_DIR:=$(VENDOR_PATCH_DIR)/uClibc-$(UCLIBC_OFFICIAL_VERSION)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user