Skip to content

Commit

Permalink
toolchain/arc: update to the most recent release arc-2016.09
Browse files Browse the repository at this point in the history
arc-2016.09 is the most recent toolchain for ARC cores and
it is based on top of upstream Binutils 2.27 and GCC 6.2.1.

With updated major version of GCC we copied all GCC 6.x patches
for ARC as well as Bintils 2.27 patches.

Note that toochain sports ARCv4 ABI and so must be used
with 4.8+ Linux kernels. Even though it will build v4.4 kernel
perfectly fine on attempt to run user-space apps they won't
work with older kernel. That said previuosly sent RFC patches with
Linux kernel update are required:
 [1] https://patchwork.ozlabs.org/patch/726686/
 [2] https://patchwork.ozlabs.org/patch/726687/

Signed-off-by: Alexey Brodkin <[email protected]>
  • Loading branch information
abrodkin authored and nbd168 committed May 2, 2017
1 parent 2b27e62 commit 34e8393
Show file tree
Hide file tree
Showing 41 changed files with 573 additions and 523 deletions.
6 changes: 3 additions & 3 deletions package/devel/gdb-arc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=gdb-arc
PKG_VERSION:=arc-2016.03-gdb
PKG_VERSION:=arc-2016.09-gdb
PKG_RELEASE:=1

PKG_SOURCE:=gdb-arc-2016.03-gdb.tar.gz
PKG_SOURCE:=gdb-arc-2016.09-gdb.tar.gz
PKG_SOURCE_URL:=https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb/archive/$(PKG_VERSION)
PKG_HASH:=6a91f86cc487c1548d3f5d4f29f7226d2019c0db8a63633aeabd5914a340f3f9

PKG_BUILD_DIR:=$(BUILD_DIR)/binutils-gdb-arc-2016.03-gdb
PKG_BUILD_DIR:=$(BUILD_DIR)/binutils-gdb-arc-2016.09-gdb

PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
Expand Down
8 changes: 4 additions & 4 deletions toolchain/binutils/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
choice
prompt "Binutils Version" if TOOLCHAINOPTS
default BINUTILS_USE_VERSION_2_27 if !arc
default BINUTILS_USE_VERSION_2_26_ARC if arc
default BINUTILS_USE_VERSION_2_27_ARC if arc
help
Select the version of binutils you wish to use.

Expand All @@ -17,10 +17,10 @@ choice
bool "Binutils 2.28"
select BINUTILS_VERSION_2_28

config BINUTILS_USE_VERSION_2_26_ARC
config BINUTILS_USE_VERSION_2_27_ARC
depends on arc
bool "ARC binutils 2.26"
select BINUTILS_VERSION_2_26_ARC
bool "ARC binutils 2.27"
select BINUTILS_VERSION_2_27_ARC

endchoice

Expand Down
5 changes: 2 additions & 3 deletions toolchain/binutils/Config.version
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ config BINUTILS_VERSION_2_27
config BINUTILS_VERSION_2_28
bool

config BINUTILS_VERSION_2_26_ARC
config BINUTILS_VERSION_2_27_ARC
default y if (!TOOLCHAINOPTS && arc)
bool

config BINUTILS_VERSION
string
default "2.27" if BINUTILS_VERSION_2_27
default "2.28" if BINUTILS_VERSION_2_28
default "arc-2016.03" if BINUTILS_VERSION_2_26_ARC

default "arc-2016.09" if BINUTILS_VERSION_2_27_ARC
12 changes: 6 additions & 6 deletions toolchain/binutils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ ifeq ($(PKG_VERSION),2.28)
PKG_HASH:=6297433ee120b11b4b0a1c8f3512d7d73501753142ab9e2daa13c5a3edd32a72
endif

ifneq ($(CONFIG_BINUTILS_VERSION_2_26_ARC),)
PKG_SOURCE_URL:=https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb/archive/arc-2016.03/
PKG_REV:=2016.03
PKG_SOURCE:=$(PKG_NAME)-arc-$(PKG_REV).tar.gz
PKG_HASH:=6583a0cd5c7251dc895a47c797a9b011e466c23377d2ca7548a707fdb918fba1
BINUTILS_DIR:=$(PKG_NAME)-gdb-arc-$(PKG_REV)
ifneq ($(CONFIG_BINUTILS_VERSION_2_27_ARC),)
PKG_REV:=arc-2016.09-release
PKG_SOURCE_URL:=https://github.com/foss-for-synopsys-dwc-arc-processors/binutils-gdb/archive/$(PKG_REV)/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_REV).tar.gz
PKG_HASH:=c6de8aedb7568406d784295476de9139a5e351e970e18b602e0037439b3a7b4b
BINUTILS_DIR:=$(PKG_NAME)-gdb-$(PKG_REV)
HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(BINUTILS_DIR)
endif

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -57,7 +57,7 @@ endif
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
-scriptdir = $(tooldir)/lib
+scriptdir = $(libdir)

EMUL = @EMUL@
EMULATION_OFILES = @EMULATION_OFILES@
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -451,7 +451,7 @@ AM_CFLAGS = $(WARN_CFLAGS) $(ELF_CLFAGS)
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
# directives need to be different for native and cross linkers.
-scriptdir = $(tooldir)/lib
+scriptdir = $(libdir)
BASEDIR = $(srcdir)/..
BFDDIR = $(BASEDIR)/bfd
INCDIR = $(BASEDIR)/include
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1244,6 +1244,8 @@ fragment <<EOF
&& command_line.rpath == NULL)
{
lib_path = (const char *) getenv ("LD_RUN_PATH");
+ if ((lib_path) && (strlen (lib_path) == 0))
+ lib_path = NULL;
if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
force))
break;
@@ -1525,6 +1527,8 @@ gld${EMULATION_NAME}_before_allocation (
rpath = command_line.rpath;
if (rpath == NULL)
rpath = (const char *) getenv ("LD_RUN_PATH");
+ if ((rpath) && (strlen (rpath) == 0))
+ rpath = NULL;

for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next)
if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)
11 changes: 5 additions & 6 deletions toolchain/gcc/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

choice
prompt "GCC compiler Version" if TOOLCHAINOPTS
default GCC_USE_VERSION_4_8_ARC if arc
default GCC_USE_VERSION_6_2_ARC if arc
default GCC_USE_VERSION_5
help
Select the version of gcc you wish to use.

config GCC_USE_VERSION_4_8_ARC
select GCC_VERSION_4_8_ARC
bool "gcc 4.8.x with support of ARC cores"
config GCC_USE_VERSION_6_2_ARC
select GCC_VERSION_6_2_ARC
bool "gcc 6.2.x with support of ARC cores"
depends on arc

config GCC_USE_VERSION_5
Expand All @@ -23,7 +23,6 @@ choice
endchoice

config GCC_USE_GRAPHITE
depends on !GCC_VERSION_4_8_ARC
bool
prompt "Compile in support for the new Graphite framework in GCC 4.4+" if TOOLCHAINOPTS

Expand Down Expand Up @@ -69,7 +68,7 @@ config INSTALL_GFORTRAN
config INSTALL_GCCGO
bool
prompt "Build/install Go compiler?" if TOOLCHAINOPTS
depends on !GCC_VERSION_4_8 && (USE_GLIBC || BROKEN)
depends on USE_GLIBC || BROKEN
default n
help
Build/install GNU gccgo compiler ?
8 changes: 4 additions & 4 deletions toolchain/gcc/Config.version
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
config GCC_VERSION_4_8_ARC
config GCC_VERSION_6_2_ARC
default y if (!TOOLCHAINOPTS && arc)
bool

config GCC_VERSION
string
default "arc-2016.03" if GCC_VERSION_4_8_ARC
default "arc-2016.09-release" if GCC_VERSION_6_2_ARC
default "6.3.0" if GCC_USE_VERSION_6
default "5.4.0"

config GCC_VERSION_4_8
config GCC_VERSION_6_2
bool
default y if GCC_VERSION_4_8_ARC
default y if GCC_VERSION_6_2_ARC
10 changes: 5 additions & 5 deletions toolchain/gcc/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ ifeq ($(PKG_VERSION),6.3.0)
PKG_HASH:=f06ae7f3f790fbf0f018f6d40e844451e6bc3b7bc96e128e63b09825c1f8b29f
endif

ifneq ($(CONFIG_GCC_VERSION_4_8_ARC),)
PKG_VERSION:=4.8.5
PKG_SOURCE_URL:=https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/archive/arc-2016.03
ifneq ($(CONFIG_GCC_VERSION_6_2_ARC),)
PKG_VERSION:=6.2.1
PKG_SOURCE_URL:=https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/archive/$(GCC_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(GCC_VERSION).tar.gz
PKG_HASH:=6a5eb0c83dca16f228ac836677a1fbb42a53c30334487ac37c2c18db80a38f35
PKG_REV:=2016.03
PKG_HASH:=d6f842dd266ccb0d5a53b51e2b2951503569f2ff3c84f81b2a1d9fea109ec077
PKG_REV:=2016.09
GCC_DIR:=gcc-arc-$(PKG_REV)
HOST_BUILD_DIR = $(BUILD_DIR_HOST)/$(PKG_NAME)-$(GCC_VERSION)
endif
Expand Down
42 changes: 0 additions & 42 deletions toolchain/gcc/patches/arc-2016.03/002-weak_data_fix.patch

This file was deleted.

94 changes: 0 additions & 94 deletions toolchain/gcc/patches/arc-2016.03/003-universal_initializer.patch

This file was deleted.

28 changes: 0 additions & 28 deletions toolchain/gcc/patches/arc-2016.03/020-no-plt-backport.patch

This file was deleted.

This file was deleted.

Loading

0 comments on commit 34e8393

Please sign in to comment.