From patchwork Thu Sep 14 22:14:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 813974 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xtY1X1C8xz9s82 for ; Fri, 15 Sep 2017 08:22:23 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id EF2B68911D; Thu, 14 Sep 2017 22:22:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id riLmWlR5SdrF; Thu, 14 Sep 2017 22:22:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6D1C08910C; Thu, 14 Sep 2017 22:22:18 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E29F71C04DC for ; Thu, 14 Sep 2017 22:22:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DBE9689CB0 for ; Thu, 14 Sep 2017 22:22:16 +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 FkbM4pv7X2OT for ; Thu, 14 Sep 2017 22:22:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.47.9]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4254689CB2 for ; Thu, 14 Sep 2017 22:22:16 +0000 (UTC) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 5E31B24E1697; Thu, 14 Sep 2017 15:15:03 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 340E1CDD; Thu, 14 Sep 2017 15:15:03 -0700 (PDT) Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id 63C29C76; Thu, 14 Sep 2017 15:15:01 -0700 (PDT) From: Alexey Brodkin To: buildroot@busybox.net Date: Fri, 15 Sep 2017 01:14:46 +0300 Message-Id: <20170914221446.13647-3-abrodkin@synopsys.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170914221446.13647-1-abrodkin@synopsys.com> References: <20170914221446.13647-1-abrodkin@synopsys.com> Cc: Thomas Petazzoni , Cupertino Miranda , Vineet Gupta , Alexey Brodkin , Anton Kolesov Subject: [Buildroot] [PATCH 2/2] toolchain: Add glibc support for ARCv2 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Finally there's working ARC port of glibc thanks to Vineet and Cuper! This port is based on pretty recent glibc's master branch and ARC changes are being reviewed now in glibc's mailing list. Thus we again have to use sources from our GitHub but as soon as there's a glibc release with our patches applied we'll switch to unpstream releases and will drop our glibc GitHub repo alltogether. Note now we cut tags in glibc repo simultaneously with tags in Binutils and GCC repos and so to make sure everything works in the best way we plan to update glibc tag together with Binutils and GCC. Also note as of today ARCompact (AKA ARCv1 ISA) is not supported in glibc but we plan to fix it soonish so for now we make glibc intentionally dependent on archs38. Signed-off-by: Alexey Brodkin Cc: Cupertino Miranda Cc: Vineet Gupta Cc: Anton Kolesov --- package/glibc/glibc.hash | 2 ++ package/glibc/glibc.mk | 7 +++++++ toolchain/toolchain-buildroot/Config.in | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/package/glibc/glibc.hash b/package/glibc/glibc.hash index daaf014a00..06b52eb069 100644 --- a/package/glibc/glibc.hash +++ b/package/glibc/glibc.hash @@ -1,2 +1,4 @@ # Locally calculated after checking pgp signature (glibc) sha256 067bd9bb3390e79aa45911537d13c3721f1d9d3769931a30c2681bfee66f23a0 glibc-2.25.tar.xz +# Locally calculated (fetched from Github) +sha256 acbc223dea1130e9df2dd839f3311b4d0e3942e9dc833d8a962024cfaceed9c6 glibc-arc-2017.09-eng008.tar.gz diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk index c9a65796b0..e9570b6a5f 100644 --- a/package/glibc/glibc.mk +++ b/package/glibc/glibc.mk @@ -4,9 +4,16 @@ # ################################################################################ +ifeq ($(BR2_arc),y) +GLIBC_VERSION = arc-2017.09-eng008 +GLIBC_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,glibc,$(GLIBC_VERSION)) +GLIBC_SOURCE = glibc-$(GLIBC_VERSION).tar.gz +else GLIBC_VERSION = 2.25 GLIBC_SITE = $(BR2_GNU_MIRROR)/libc GLIBC_SOURCE = glibc-$(GLIBC_VERSION).tar.xz +endif + GLIBC_SRC_SUBDIR = . GLIBC_LICENSE = GPL-2.0+ (programs), LGPL-2.1+, BSD-3-Clause, MIT (library) diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in index f47001fcf6..6afd139b59 100644 --- a/toolchain/toolchain-buildroot/Config.in +++ b/toolchain/toolchain-buildroot/Config.in @@ -47,7 +47,7 @@ config BR2_TOOLCHAIN_BUILDROOT_GLIBC BR2_mipsel || BR2_mips64 || BR2_mips64el|| \ BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \ BR2_sh || BR2_sparc64 || BR2_x86_64 || \ - BR2_microblaze || BR2_nios2 + BR2_microblaze || BR2_nios2 || BR2_archs38 depends on BR2_USE_MMU depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2