summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--target/config/Config.in.binutils8
-rw-r--r--target/config/Config.in.compiler32
-rw-r--r--toolchain/binutils/Makefile2
-rw-r--r--toolchain/binutils/Makefile.inc2
-rw-r--r--toolchain/binutils/patches/arc-2016.09-release/openadk_binutils_fix.patch97
-rw-r--r--toolchain/gcc/Makefile4
-rw-r--r--toolchain/gcc/Makefile.inc42
7 files changed, 39 insertions, 148 deletions
diff --git a/target/config/Config.in.binutils b/target/config/Config.in.binutils
index 7ef88714c..92f8b674f 100644
--- a/target/config/Config.in.binutils
+++ b/target/config/Config.in.binutils
@@ -3,9 +3,9 @@
choice
prompt "Binutils version"
+default ADK_TOOLCHAIN_BINUTILS_AVR32 if ADK_TARGET_ARCH_AVR32
default ADK_TOOLCHAIN_BINUTILS_CSKY if ADK_TARGET_ARCH_CSKY
default ADK_TOOLCHAIN_BINUTILS_NDS32 if ADK_TARGET_ARCH_NDS32
-default ADK_TOOLCHAIN_BINUTILS_2_20_1 if ADK_TARGET_ARCH_AVR32
default ADK_TOOLCHAIN_BINUTILS_2_28 if ADK_TARGET_ARCH_ARM && ADK_KERNEL_THUMB2_KERNEL && ADK_TARGET_OS_LINUX
default ADK_TOOLCHAIN_BINUTILS_2_28 if ADK_TARGET_CPU_SH_J2
default ADK_TOOLCHAIN_BINUTILS_2_29
@@ -34,11 +34,11 @@ config ADK_TOOLCHAIN_BINUTILS_NDS32
depends on ADK_TARGET_ARCH_NDS32
config ADK_TOOLCHAIN_BINUTILS_CSKY
- bool "2.27-c-sky"
+ bool "2.27-csky"
depends on ADK_TARGET_ARCH_CSKY
-config ADK_TOOLCHAIN_BINUTILS_2_20_1
- bool "2.20.1"
+config ADK_TOOLCHAIN_BINUTILS_AVR32
+ bool "2.20.1-avr32"
depends on ADK_TARGET_ARCH_AVR32
endchoice
diff --git a/target/config/Config.in.compiler b/target/config/Config.in.compiler
index e630e97c6..a9155cd92 100644
--- a/target/config/Config.in.compiler
+++ b/target/config/Config.in.compiler
@@ -16,11 +16,11 @@ endchoice
choice
prompt "GCC version"
depends on ADK_BUILD_COMPILER_GCC
+default ADK_TOOLCHAIN_GCC_AVR32 if ADK_TARGET_ARCH_AVR32
default ADK_TOOLCHAIN_GCC_CSKY if ADK_TARGET_ARCH_CSKY
-default ADK_TOOLCHAIN_GCC_OR1K if ADK_TARGET_ARCH_OR1K
+default ADK_TOOLCHAIN_GCC_METAG if ADK_TARGET_ARCH_METAG
default ADK_TOOLCHAIN_GCC_NDS32 if ADK_TARGET_ARCH_NDS32
-default ADK_TOOLCHAIN_GCC_4_2 if ADK_TARGET_ARCH_METAG
-default ADK_TOOLCHAIN_GCC_4_4 if ADK_TARGET_ARCH_AVR32
+default ADK_TOOLCHAIN_GCC_OR1K if ADK_TARGET_ARCH_OR1K
default ADK_TOOLCHAIN_GCC_6 if ADK_TARGET_CPU_SH_J2
default ADK_TOOLCHAIN_GCC_7
@@ -46,28 +46,24 @@ config ADK_TOOLCHAIN_GCC_6
bool "6.3.0"
depends on ADK_TARGET_CPU_SH_J2
+config ADK_TOOLCHAIN_GCC_AVR32
+ bool "4.4.7-avr32"
+ depends on ADK_TARGET_ARCH_AVR32
+
config ADK_TOOLCHAIN_GCC_CSKY
- bool "csky"
+ bool "6.3.0-csky"
depends on ADK_TARGET_ARCH_CSKY
-config ADK_TOOLCHAIN_GCC_OR1K
- bool "or1k"
- depends on ADK_TARGET_ARCH_OR1K
+config ADK_TOOLCHAIN_GCC_METAG
+ bool "4.2.4-metag"
+ depends on ADK_TARGET_ARCH_METAG
config ADK_TOOLCHAIN_GCC_NDS32
bool "4.9.4-nds32"
depends on ADK_TARGET_ARCH_NDS32
-config ADK_TOOLCHAIN_GCC_4_4
- bool "4.4.7"
- depends on ADK_TARGET_ARCH_AVR32
-
-config ADK_TOOLCHAIN_GCC_4_2
- bool "4.2.4"
- select ADK_TOOLCHAIN_GCC_OLD
- depends on ADK_TARGET_ARCH_METAG
+config ADK_TOOLCHAIN_GCC_OR1K
+ bool "5.4.0-or1k"
+ depends on ADK_TARGET_ARCH_OR1K
endchoice
-
-config ADK_TOOLCHAIN_GCC_OLD
- bool
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index a844388cc..67707c881 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -76,7 +76,7 @@ ifeq ($(ADK_TARGET_USE_GOLD),y)
(cd $(TOOLCHAIN_DIR)/usr/bin && \
ln -sf $(GNU_TARGET_NAME)-ld.gold $(GNU_TARGET_NAME)-ld)
else
-ifeq (ADK_TOOLCHAIN_BINUTILS_2_20_1),)
+ifeq (ADK_TOOLCHAIN_BINUTILS_AVR32),)
(cd $(TOOLCHAIN_DIR)/usr/bin && \
ln -sf $(GNU_TARGET_NAME)-ld.bfd $(GNU_TARGET_NAME)-ld)
endif
diff --git a/toolchain/binutils/Makefile.inc b/toolchain/binutils/Makefile.inc
index de1215ec7..fe24110d9 100644
--- a/toolchain/binutils/Makefile.inc
+++ b/toolchain/binutils/Makefile.inc
@@ -30,7 +30,7 @@ PKG_HASH:= ab1c72aeed2d50403bdf67914e60d936279d065943d83d1c19c20462a7b82cda
PKG_SITES:= http://distfiles.openadk.org/
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
endif
-ifeq ($(ADK_TOOLCHAIN_BINUTILS_2_20_1),y)
+ifeq ($(ADK_TOOLCHAIN_BINUTILS_AVR32),y)
PKG_VERSION:= 2.20.1
PKG_RELEASE:= 1
PKG_HASH:= 71d37c96451333c5c0b84b170169fdcb138bbb27397dc06281905d9717c8ed64
diff --git a/toolchain/binutils/patches/arc-2016.09-release/openadk_binutils_fix.patch b/toolchain/binutils/patches/arc-2016.09-release/openadk_binutils_fix.patch
deleted file mode 100644
index d54fb1667..000000000
--- a/toolchain/binutils/patches/arc-2016.09-release/openadk_binutils_fix.patch
+++ /dev/null
@@ -1,97 +0,0 @@
-diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c
-index fba58cb..d99da93 100644
---- a/bfd/elf32-arc.c
-+++ b/bfd/elf32-arc.c
-@@ -70,13 +70,7 @@ name_for_global_symbol (struct elf_link_hash_entry *h)
- struct dynamic_sections
- {
- bfd_boolean initialized;
-- asection * sgot;
-- asection * srelgot;
-- asection * sgotplt;
-- asection * srelgotplt;
- asection * sdyn;
-- asection * splt;
-- asection * srelplt;
- };
-
- enum dyn_section_types
-@@ -1578,13 +1572,7 @@ arc_create_dynamic_sections (bfd * abfd, struct bfd_link_info *info)
- struct dynamic_sections ds =
- {
- .initialized = FALSE,
-- .sgot = NULL,
-- .srelgot = NULL,
-- .sgotplt = NULL,
-- .srelgotplt = NULL,
- .sdyn = NULL,
-- .splt = NULL,
-- .srelplt = NULL
- };
-
- htab = elf_hash_table (info);
-@@ -1592,7 +1580,7 @@ arc_create_dynamic_sections (bfd * abfd, struct bfd_link_info *info)
-
- /* Create dynamic sections for relocatable executables so that we
- can copy relocations. */
-- if (! htab->dynamic_sections_created && bfd_link_pic (info))
-+ if (! htab->dynamic_sections_created)
- {
- if (! _bfd_elf_link_create_dynamic_sections (abfd, info))
- BFD_ASSERT (0);
-@@ -1600,18 +1588,6 @@ arc_create_dynamic_sections (bfd * abfd, struct bfd_link_info *info)
-
- dynobj = (elf_hash_table (info))->dynobj;
-
-- if (dynobj)
-- {
-- ds.sgot = htab->sgot;
-- ds.srelgot = htab->srelgot;
--
-- ds.sgotplt = bfd_get_section_by_name (dynobj, ".got.plt");
-- ds.srelgotplt = ds.srelplt;
--
-- ds.splt = bfd_get_section_by_name (dynobj, ".plt");
-- ds.srelplt = bfd_get_section_by_name (dynobj, ".rela.plt");
-- }
--
- if (htab->dynamic_sections_created)
- {
- ds.sdyn = bfd_get_section_by_name (dynobj, ".dynamic");
-@@ -1634,10 +1610,20 @@ elf_arc_check_relocs (bfd * abfd,
- const Elf_Internal_Rela * rel_end;
- bfd * dynobj;
- asection * sreloc = NULL;
-+ struct elf_link_hash_table * htab = elf_hash_table (info);
-
- if (bfd_link_relocatable (info))
- return TRUE;
-
-+ if (htab->dynobj == NULL)
-+ htab->dynobj = abfd;
-+
-+ if (! htab->dynamic_sections_created)
-+ {
-+ if (! _bfd_elf_link_create_dynamic_sections (abfd, info))
-+ return FALSE;
-+ }
-+
- dynobj = (elf_hash_table (info))->dynobj;
- symtab_hdr = &((elf_tdata (abfd))->symtab_hdr);
- sym_hashes = elf_sym_hashes (abfd);
-@@ -1659,15 +1645,6 @@ elf_arc_check_relocs (bfd * abfd,
- }
- howto = arc_elf_howto (r_type);
-
-- if (dynobj == NULL
-- && (is_reloc_for_GOT (howto) == TRUE
-- || is_reloc_for_TLS (howto) == TRUE))
-- {
-- dynobj = elf_hash_table (info)->dynobj = abfd;
-- if (! _bfd_elf_create_got_section (abfd, info))
-- return FALSE;
-- }
--
- /* Load symbol information. */
- r_symndx = ELF32_R_SYM (rel->r_info);
- if (r_symndx < symtab_hdr->sh_info) /* Is a local symbol. */
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index b69cad2bd..eb21fc4fd 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -297,7 +297,7 @@ endif
touch $@
$(GCC_BUILD_DIR_INITIAL)/.compiled: $(GCC_BUILD_DIR_INITIAL)/.configured
-ifeq ($(ADK_TOOLCHAIN_GCC_OLD),y)
+ifeq ($(ADK_TOOLCHAIN_GCC_METAG),y)
PATH='$(TARGET_PATH)' \
$(MAKE) ${GCC_MAKEOPTS} -C $(GCC_BUILD_DIR_INITIAL) all-gcc
else
@@ -307,7 +307,7 @@ endif
touch $@
$(WRKBUILD)/.configured: $(GCC_BUILD_DIR_INITIAL)/.compiled
-ifeq ($(ADK_TOOLCHAIN_GCC_OLD),y)
+ifeq ($(ADK_TOOLCHAIN_GCC_METAG),y)
PATH='$(TARGET_PATH)' \
$(MAKE) -C $(GCC_BUILD_DIR_INITIAL) install-gcc
else
diff --git a/toolchain/gcc/Makefile.inc b/toolchain/gcc/Makefile.inc
index 3f1e4fda8..8c694cb30 100644
--- a/toolchain/gcc/Makefile.inc
+++ b/toolchain/gcc/Makefile.inc
@@ -18,13 +18,13 @@ PKG_RELEASE:= 1
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
LIBSTDCXXVER:= 22
endif
-ifeq ($(ADK_TOOLCHAIN_GCC_4_9),y)
-PKG_VERSION:= 4.9.4
-PKG_HASH:= 1680f92781b92cbdb57d7e4f647c650678c594154cb0d707fd9a994424a9860d
+ifeq ($(ADK_TOOLCHAIN_GCC_AVR32),y)
+PKG_VERSION:= 4.4.7
+PKG_HASH:= 76ad7c433af1c798a1e116c4dfa8f5f794f0d32bff65f88c54dcd5e5d146fc32
PKG_SITES:= ${MASTER_SITE_GNU:=gcc/gcc-${PKG_VERSION}/}
PKG_RELEASE:= 1
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
-LIBSTDCXXVER:= 20
+LIBSTDCXXVER:= 19
endif
ifeq ($(ADK_TOOLCHAIN_GCC_CSKY),y)
PKG_VERSION:= gcc-6-branch-csky
@@ -33,13 +33,13 @@ PKG_SITES:= https://github.com/c-sky/gcc.git
PKG_RELEASE:= 1
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
endif
-ifeq ($(ADK_TOOLCHAIN_GCC_OR1K),y)
-PKG_VERSION:= musl-5.4.0
-PKG_GIT:= branch
-PKG_SITES:= https://github.com/openrisc/or1k-gcc.git
+ifeq ($(ADK_TOOLCHAIN_GCC_METAG),y)
+PKG_VERSION:= 4.2.4
+PKG_HASH:= 7cb75c5183bd18f415860084440377016dc78feeee2852227b831f2e4fcaa5d6
+PKG_SITES:= http://gcc.cybermirror.org/releases/gcc-${PKG_VERSION}/
PKG_RELEASE:= 1
-DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
-LIBSTDCXXVER:= 21
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
+LIBSTDCXXVER:= 19
endif
ifeq ($(ADK_TOOLCHAIN_GCC_NDS32),y)
PKG_VERSION:= 4.9.4-nds32
@@ -48,25 +48,17 @@ PKG_SITES:= http://distfiles.openadk.org/
PKG_RELEASE:= 1
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
endif
-ifeq ($(ADK_TOOLCHAIN_GCC_4_4),y)
-PKG_VERSION:= 4.4.7
-PKG_HASH:= 76ad7c433af1c798a1e116c4dfa8f5f794f0d32bff65f88c54dcd5e5d146fc32
-PKG_SITES:= ${MASTER_SITE_GNU:=gcc/gcc-${PKG_VERSION}/}
-PKG_RELEASE:= 1
-DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
-LIBSTDCXXVER:= 19
-endif
-ifeq ($(ADK_TOOLCHAIN_GCC_4_2),y)
-PKG_VERSION:= 4.2.4
-PKG_HASH:= 7cb75c5183bd18f415860084440377016dc78feeee2852227b831f2e4fcaa5d6
-PKG_SITES:= http://gcc.cybermirror.org/releases/gcc-${PKG_VERSION}/
+ifeq ($(ADK_TOOLCHAIN_GCC_OR1K),y)
+PKG_VERSION:= musl-5.4.0
+PKG_GIT:= branch
+PKG_SITES:= https://github.com/openrisc/or1k-gcc.git
PKG_RELEASE:= 1
-DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
-LIBSTDCXXVER:= 19
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
+LIBSTDCXXVER:= 21
endif
ifeq ($(ADK_TOOLCHAIN_GCC_GIT),y)
PKG_VERSION:= git
PKG_SITES:= https://github.com/gcc-mirror/gcc.git
PKG_RELEASE:= 1
-LIBSTDCXXVER:= 21
+LIBSTDCXXVER:= 23
endif