From patchwork Sat Jan 13 10:38:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 25384 Received: (qmail 101448 invoked by alias); 13 Jan 2018 10:39:14 -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 100726 invoked by uid 89); 13 Jan 2018 10:39:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.0 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:10.98.189.10, disclosure X-HELO: mail-pg0-f67.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=6w6QibW4pIsw5xpOcuSnshMlN11/q1Wiw3riq0Gx1O8=; b=lg1mMWNx5Mg+fNHnwf439T63bx+vy6QleZLlBrSt+7qLj+khLizF49IzVo+QthRwY3 B6VNtbsafTmNpgBVujsAeJuXn8rv1mVoqKvFPEfc4dCN5NsW6sfKTTu9j42tQ2SPJMhY U9u+GiC4DarjzQD5SVSjKRtyouTI8UGhM8zt4o3S5MC53hiqd3T6kVXdk5BSP7CvevCH 5J3iW1f2uS+jgtjIW9X9RlF3ljeqtEGeF53xRu9hYPolSfyRNpvxY7C93zZtk0oPORzK rikgpTtC03h+mwUq1yWLuPk3W7/FWpnXvIkjbVTxoHO8CTCHsLJ8JJzfavlsu4uA0T31 CqUQ== X-Gm-Message-State: AKwxytdg9kej2F8F64s6I+YU+XPCNWm+is/YoJP6sPfnq44cZk+dhBI4 HNzbJmyulKyPfPGndYlZqvMvbQ== X-Google-Smtp-Source: ACJfBotJzPtdPddYR+ctG9/yHJHNjpIhxEgxIR0elN5B2MjH9lZcwnvJ9lZh4UJ6LZMxJg/BdjMUJw== X-Received: by 10.98.189.10 with SMTP id a10mr4646032pff.125.1515839946651; Sat, 13 Jan 2018 02:39:06 -0800 (PST) Subject: [PATCH v4 17/17] Add RISC-V to build-many-glibcs.py Date: Sat, 13 Jan 2018 02:38:16 -0800 Message-Id: <20180113103816.4861-18-palmer@dabbelt.com> In-Reply-To: <20180113103816.4861-1-palmer@dabbelt.com> References: <20180113103816.4861-1-palmer@dabbelt.com> Cc: patches@groups.riscv.org, Palmer Dabbelt From: Palmer Dabbelt To: libc-alpha@sourceware.org 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-rc4', '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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 75a920a1611e..3d5fdd77c061 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -322,6 +322,16 @@ 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'}, + {'variant': 'rv32imafdc-ilp32d', + 'ccopts': '-march=rv32imafdc -mabi=ilp32d'}, + {'variant': 'rv32imac-ilp32', + 'ccopts': '-march=rv32imac -mabi=ilp32'}]) self.add_config(arch='s390x', os_name='linux-gnu', glibcs=[{}, @@ -1207,6 +1217,8 @@ class Config(object): 'nios2': 'nios2', 'powerpc': 'powerpc', 's390': 's390', + 'riscv32': 'riscv', + 'riscv64': 'riscv', 'sh': 'sh', 'sparc': 'sparc', 'tile': 'tile',