Skip to contentSkip to conversation

ARC: change the default CROSS_COMPILE for ARC

PATCH New Masahiro Yamada 2 participants 3 messages May 11, 2015 – May 13, 2015 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARC: change the default CROSS_COMPILE for ARC

As doc/README.ARC says, pre-build ARC toolchains are available at the Synopsys GitHub page.

The bin files are prefixed with arc(eb)-buildroot-linux- for earlier releases, but with arc(eb)-snps-linux- for the latest releases (arc_gnu_2014.12_prebuilt_*).

For all the releases, the symbolic link, arc(eb)-linux-* is also prepared for each bin file, so it can be used as the default CROSS_COMPILE regardless of the toolchains version.

---

 arch/arc/config.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arc/config.mk +2 -2
index 04c034b..9aed147 100644
@@ -11,13 +11,13 @@ CONFIG_SYS_BIG_ENDIAN = 1
 endif
 
 ifdef CONFIG_SYS_LITTLE_ENDIAN
-ARC_CROSS_COMPILE := arc-buildroot-linux-uclibc-
+ARC_CROSS_COMPILE := arc-linux-uclibc-
 PLATFORM_LDFLAGS += -EL
 PLATFORM_CPPFLAGS += -mlittle-endian
 endif
 
 ifdef CONFIG_SYS_BIG_ENDIAN
-ARC_CROSS_COMPILE := arceb-buildroot-linux-uclibc-
+ARC_CROSS_COMPILE := arceb-linux-uclibc-
 PLATFORM_LDFLAGS += -EB
 PLATFORM_CPPFLAGS += -mbig-endian
 endif
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 ARC: change the default CROSS_COMPILE for ARC

Hello Masahiro-san,

Quoted 27 lines · Masahiro Yamada

As doc/README.ARC says, pre-build ARC toolchains are available at the Synopsys GitHub page.

The bin files are prefixed with arc(eb)-buildroot-linux- for earlier releases, but with arc(eb)-snps-linux- for the latest releases (arc_gnu_2014.12_prebuilt_*).

For all the releases, the symbolic link, arc(eb)-linux-* is also prepared for each bin file, so it can be used as the default CROSS_COMPILE regardless of the toolchains version.

---

 arch/arc/config.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arc/config.mk +1 -1
index 04c034b..9aed147 100644
@@ -11,13 +11,13 @@ CONFIG_SYS_BIG_ENDIAN = 1
 endif
 
 ifdef CONFIG_SYS_LITTLE_ENDIAN
-ARC_CROSS_COMPILE := arc-buildroot-linux-uclibc-
+ARC_CROSS_COMPILE := arc-linux-uclibc-

arch/arc/config.mk CONFIG_SYS_BIG_ENDIAN = 1 · line 23

Quoted 10 lines
arch/arc/config.mk +1 -1
 PLATFORM_LDFLAGS += -EL
 PLATFORM_CPPFLAGS += -mlittle-endian
 endif
 
 ifdef CONFIG_SYS_BIG_ENDIAN
-ARC_CROSS_COMPILE := arceb-buildroot-linux-uclibc-
+ARC_CROSS_COMPILE := arceb-linux-uclibc-
 PLATFORM_LDFLAGS += -EB
 PLATFORM_CPPFLAGS += -mbig-endian
 endif

I would propose to use even simpler and more universal prefix which could be used with both ARC pre-built toolchains, your own toolchain built by Buildroot or even pre-built Buildroot toolchain
(http://autobuild.buildroot.org/toolchains/tarballs/br-arcle-hs38-full-2015.02.tar.bz2):
[1] "arc-linux-" for little-endian
[2] "arceb-linux-"

Care to re-send your patch or I may do that change myself?

-Alexey

#2 lore raw

PATCH 1/1 ARC: change the default CROSS_COMPILE for ARC

Hi Alexey,

2015-05-13 18:36 GMT+09:00 Alexey Brodkin <[email protected]>:

Quoted 48 lines

Hello Masahiro-san,

Quoted 27 lines · Masahiro Yamada

As doc/README.ARC says, pre-build ARC toolchains are available at the Synopsys GitHub page.

The bin files are prefixed with arc(eb)-buildroot-linux- for earlier releases, but with arc(eb)-snps-linux- for the latest releases (arc_gnu_2014.12_prebuilt_*).

For all the releases, the symbolic link, arc(eb)-linux-* is also prepared for each bin file, so it can be used as the default CROSS_COMPILE regardless of the toolchains version.

---

 arch/arc/config.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arc/config.mk +1 -1
index 04c034b..9aed147 100644
@@ -11,13 +11,13 @@ CONFIG_SYS_BIG_ENDIAN = 1
 endif
 
 ifdef CONFIG_SYS_LITTLE_ENDIAN
-ARC_CROSS_COMPILE := arc-buildroot-linux-uclibc-
+ARC_CROSS_COMPILE := arc-linux-uclibc-

arch/arc/config.mk CONFIG_SYS_BIG_ENDIAN = 1 · line 23

Quoted 10 lines
arch/arc/config.mk +1 -1
 PLATFORM_LDFLAGS += -EL
 PLATFORM_CPPFLAGS += -mlittle-endian
 endif
 
 ifdef CONFIG_SYS_BIG_ENDIAN
-ARC_CROSS_COMPILE := arceb-buildroot-linux-uclibc-
+ARC_CROSS_COMPILE := arceb-linux-uclibc-
 PLATFORM_LDFLAGS += -EB
 PLATFORM_CPPFLAGS += -mbig-endian
 endif

I would propose to use even simpler and more universal prefix which could be used with both ARC pre-built toolchains, your own toolchain built by Buildroot or even pre-built Buildroot toolchain
(http://autobuild.buildroot.org/toolchains/tarballs/br-arcle-hs38-full-2015.02.tar.bz2):
[1] "arc-linux-" for little-endian
[2] "arceb-linux-"

Quoted 2 lines

Care to re-send your patch or I may do that change myself?

I've posted v2.
Thanks for pointing this out!

Signature · 2 lines
Best Regards
Masahiro Yamada