From patchwork Tue Nov 12 13:26:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mischa Jonker X-Patchwork-Id: 290636 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id B9D332C00EF for ; Wed, 13 Nov 2013 00:27:17 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BF9DB330EB; Tue, 12 Nov 2013 13:27:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cKSrdEE0HcdH; Tue, 12 Nov 2013 13:27:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id ED124330CA; Tue, 12 Nov 2013 13:26:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 210FC1BF86D for ; Tue, 12 Nov 2013 13:26:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 12BDE8D305 for ; Tue, 12 Nov 2013 13:26:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dvGDePFMxSEz for ; Tue, 12 Nov 2013 13:26:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from hermes.synopsys.com (us01smtp3.synopsys.com [198.182.44.81]) by whitealder.osuosl.org (Postfix) with ESMTP id 59A6D8D300 for ; Tue, 12 Nov 2013 13:26:39 +0000 (UTC) Received: from WBSNus01mta1 (us01secmta1.synopsys.com [10.9.203.100]) by hermes.synopsys.com (Postfix) with ESMTP id 392EB9704 for ; Tue, 12 Nov 2013 05:26:39 -0800 (PST) Received: from us01secmta1.internal.synopsys.com (us01secmta1.internal.synopsys.com [127.0.0.1]) by us01secmta1.internal.synopsys.com (Service) with ESMTP id 2D88827113 for ; Tue, 12 Nov 2013 05:26:39 -0800 (PST) Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by us01secmta1.internal.synopsys.com (Service) with ESMTP id 1182B27102 for ; Tue, 12 Nov 2013 05:26:39 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 05FA61A5; Tue, 12 Nov 2013 05:26:39 -0800 (PST) Received: from mischa-VirtualBox.internal.synopsys.com (mischa-virtualbox.internal.synopsys.com [10.100.24.54]) by mailhost.synopsys.com (Postfix) with ESMTP id 2174E19C; Tue, 12 Nov 2013 05:26:37 -0800 (PST) From: Mischa Jonker To: buildroot@busybox.net Date: Tue, 12 Nov 2013 14:26:16 +0100 Message-Id: <1384262780-12743-4-git-send-email-mjonker@synopsys.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1384262780-12743-1-git-send-email-mjonker@synopsys.com> References: <1384262780-12743-1-git-send-email-mjonker@synopsys.com> Cc: Mischa Jonker Subject: [Buildroot] [PATCH 3/7] gcc: arc: Download from github instead of Synopsys website X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net The github release mechanism only supports .tar.gz, hence the ugly GCC_UNPACK variable. Signed-off-by: Mischa Jonker --- 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/*' \