Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mischa Jonker <Mischa.Jonker@synopsys.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/7] gcc: arc: Download from github instead of Synopsys website
Date: Tue, 12 Nov 2013 14:26:16 +0100	[thread overview]
Message-ID: <1384262780-12743-4-git-send-email-mjonker@synopsys.com> (raw)
In-Reply-To: <1384262780-12743-1-git-send-email-mjonker@synopsys.com>

The github release mechanism only supports .tar.gz, hence the ugly
GCC_UNPACK variable.

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
---
 package/gcc/Config.in.host |    2 +-
 package/gcc/gcc.mk         |   11 +++++++----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
index 41c1213..b762411 100644
--- a/package/gcc/Config.in.host
+++ b/package/gcc/Config.in.host
@@ -90,7 +90,7 @@ config BR2_GCC_VERSION
 	default "4.6.4"     if BR2_GCC_VERSION_4_6_X
 	default "4.7.3"     if BR2_GCC_VERSION_4_7_X
 	default "4.8.2"     if BR2_GCC_VERSION_4_8_X
-	default "4.8-arc"   if BR2_GCC_VERSION_4_8_ARC
+	default "arc-4.8-R2-rc1"   if BR2_GCC_VERSION_4_8_ARC
 	default BR2_GCC_SNAP_DATE if BR2_GCC_VERSION_SNAP
 
 config BR2_EXTRA_GCC_CONFIG_OPTIONS
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk
index 41600ef..79fe4ef 100644
--- a/package/gcc/gcc.mk
+++ b/package/gcc/gcc.mk
@@ -19,13 +19,16 @@ ifneq ($(GCC_SNAP_DATE),)
 GCC_SITE = ftp://gcc.gnu.org/pub/gcc/snapshots/$(GCC_SNAP_DATE)/
 else ifeq ($(findstring avr32,$(GCC_VERSION)),avr32)
 GCC_SITE = ftp://www.at91.com/pub/buildroot/
-else ifeq ($(findstring arc,$(GCC_VERSION)),arc)
-GCC_SITE = $(BR2_ARC_SITE)
+else ifeq ($(BR2_arc),y)
+GCC_SITE = http://github.com/foss-for-synopsys-dwc-arc-processors/gcc/archive/
+GCC_SOURCE = $(GCC_VERSION).tar.gz
+GCC_UNPACK = $(ZCAT)
 else
 GCC_SITE = $(BR2_GNU_MIRROR:/=)/gcc/gcc-$(GCC_VERSION)
 endif
 
-GCC_SOURCE = gcc-$(GCC_VERSION).tar.bz2
+GCC_UNPACK ?= $(BZCAT)
+GCC_SOURCE ?= gcc-$(GCC_VERSION).tar.bz2
 
 #
 # Xtensa special hook
@@ -60,7 +63,7 @@ endef
 #
 
 define HOST_GCC_EXTRACT_CMDS
-	$(BZCAT) $(DL_DIR)/$(GCC_SOURCE) | \
+	$(GCC_UNPACK) $(DL_DIR)/$(GCC_SOURCE) | \
 		$(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(@D) \
 		--exclude='libjava/*' \
 		--exclude='libgo/*' \
-- 
1.7.9.5

  parent reply	other threads:[~2013-11-12 13:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-12 13:26 [Buildroot] [PATCH 0/7] RFC: Move to github as source for ARC-specific packages Mischa Jonker
2013-11-12 13:26 ` [Buildroot] [PATCH 1/7] gdb: arc: Use git instead of website Mischa Jonker
2013-11-12 21:37   ` Thomas Petazzoni
2013-11-12 21:40     ` Mischa Jonker
2013-11-12 21:52       ` Thomas Petazzoni
2013-11-12 13:26 ` [Buildroot] [PATCH 2/7] binutils: " Mischa Jonker
2013-11-12 13:26 ` Mischa Jonker [this message]
2013-11-12 13:26 ` [Buildroot] [PATCH 4/7] uclibc: " Mischa Jonker
2013-11-12 13:26 ` [Buildroot] [PATCH 5/7] gcc: remove ARC-specific patches Mischa Jonker
2013-11-12 17:03   ` Arnout Vandecappelle
2013-11-12 13:26 ` [Buildroot] [PATCH 6/7] uclibc: " Mischa Jonker
2013-11-12 13:26 ` [Buildroot] [PATCH 7/7] Revert "arc: Add option for ARC-specific download site" Mischa Jonker
2013-11-12 14:59 ` [Buildroot] [PATCH 0/7] RFC: Move to github as source for ARC-specific packages Spenser Gilliland
2013-11-12 15:07   ` Thomas De Schampheleire

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1384262780-12743-4-git-send-email-mjonker@synopsys.com \
    --to=mischa.jonker@synopsys.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox