From patchwork Thu Jan 25 04:36:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 25523 Received: (qmail 23090 invoked by alias); 25 Jan 2018 04:37:13 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 22829 invoked by uid 89); 25 Jan 2018 04:37:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Received:42a3, HX-Received:sk:h32-v6m X-HELO: mail-pf0-f195.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :cc:from:to; bh=gXTv1qYQVt5Uc+VsUtChMsNdCVMg/Qey95Ozwgf+7HU=; b=gA0kMdaEGGOR5QV4U/DWi56QQnRhj2zvY82WIvtSIDo/+uRmsifnnNl0Up6PZa3dqa VAwMwYDwJiFPbcZDbYxGQA6mVXeQA/5jRWhmcihlG293FxmkUvsRAVo/mEg2xIYnJRrZ 6IHr7GZlii6xD3XdJicjYlSs8JZShT3SNXl7TRqPrAy5ncjfrk/00ynjVUNSqklUIxnr Ki1IBOrg7/dY+DY6MC6rGtl6h3LPEh+/a3c1ynjnFvldeu950FH3HBeemwkXj0X6Zk4X TBeOuddSGR64W33BX1DLoCfLf2MbKK5p8e97gnq2oFDOQ1qQmsU/mQkGh4uWwvhsN+C6 Vavw== X-Gm-Message-State: AKwxytc8Un8kjjGabnlGTa82K3ooeNlOBWkv25FBQgDGSjFxHkqBLA8Q KpcozvIf6OdLcpT4B0tUTnHU5Q== X-Google-Smtp-Source: AH8x225pVCeHeMqukYVN3FleuYVo+wkQN4ncPc+pEPth4DiXWcJFqLlQomzpTXnOMWYVSh+r8SQJiA== X-Received: by 2002:a17:902:42a3:: with SMTP id h32-v6mr9886908pld.56.1516855027936; Wed, 24 Jan 2018 20:37:07 -0800 (PST) Subject: [PATCH 17/17] Add RISC-V to build-many-glibcs.py Date: Wed, 24 Jan 2018 20:36:21 -0800 Message-Id: <20180125043621.19972-18-palmer@dabbelt.com> In-Reply-To: <20180125043621.19972-1-palmer@dabbelt.com> References: <20180125043621.19972-1-palmer@dabbelt.com> Cc: Andrew Waterman , Darius Rad , dj@redhat.com, patches@groups.riscv.org, Palmer Dabbelt From: Palmer Dabbelt To: libc-alpha@sourceware.org, joseph@codesourcery.com For full disclosure, I've only run build-many-glibcs.py with the additional diff below. diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 1c7b85050b57..22cc7b427041 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -706,7 +706,7 @@ class Context(object): 'gcc': 'vcs-7', 'glibc': 'vcs-mainline', 'gmp': '6.1.2', - 'linux': '4.14', + 'linux': '4.15-rc8', 'mpc': '1.0.3', 'mpfr': '3.1.6'} use_versions = {} @@ -841,7 +841,7 @@ class Context(object): url_map = {'binutils': 'https://ftp.gnu.org/gnu/binutils/binutils-%(version)s.tar.bz2', 'gcc': 'https://ftp.gnu.org/gnu/gcc/gcc-%(version)s/gcc-%(version)s.tar.bz2', 'gmp': 'https://ftp.gnu.org/gnu/gmp/gmp-%(version)s.tar.xz', - 'linux': 'https://www.kernel.org/pub/linux/kernel/v4.x/linux-%(version)s.tar.xz', + 'linux': 'https://git.kernel.org/torvalds/t/linux-%(version)s.tar.gz', 'mpc': 'https://ftp.gnu.org/gnu/mpc/mpc-%(version)s.tar.gz', 'mpfr': 'https://ftp.gnu.org/gnu/mpfr/mpfr-%(version)s.tar.xz'} if component not in url_map: 2018-01-13 Palmer Dabbelt * scripts/build-many-glibcs.py (Context): Add RISC-V targets. (Config): Likewise. --- scripts/build-many-glibcs.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 28c04e66fd52..e3113599beb1 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -329,6 +329,12 @@ class Context(object): os_name='linux-gnuspe', variant='e500v1', gcc_cfg=['--disable-multilib', '--enable-secureplt']) + self.add_config(arch='riscv64', + os_name='linux-gnu', + glibcs=[{'variant': 'rv64imafdc-lp64d', + 'ccopts': '-march=rv64imafdc -mabi=lp64d'}, + {'variant': 'rv64imac-lp64', + 'ccopts': '-march=rv64imac -mabi=lp64'}]) self.add_config(arch='s390x', os_name='linux-gnu', glibcs=[{}, @@ -1227,6 +1233,8 @@ class Config(object): 'nios2': 'nios2', 'powerpc': 'powerpc', 's390': 's390', + 'riscv32': 'riscv', + 'riscv64': 'riscv', 'sh': 'sh', 'sparc': 'sparc', 'tile': 'tile',