From patchwork Sat Jan 27 03:57:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 25604 Received: (qmail 106769 invoked by alias); 27 Jan 2018 03:58:26 -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 106565 invoked by uid 89); 27 Jan 2018 03:58:24 -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= X-HELO: mail-pl0-f66.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=MIDQfu6ReTDXSgPiSL+GWIbN8eX8C5Cj+QZE/n4hhNw=; b=dbEFZc8Ll62/olUoygQuImsUqHxb8CoXAGl3Xiuf2Y4TiiNP6VfUGCk2UdWEsFhr1w uefFbopeYb6NAyg2K3RG9PrbEz/UbzVZek68LkY9AfZXtbeyfBj25Sy9QE+mI7ANtj5z 7gqdMIgQ6N44+zMxwzPogyresZD6w4WK5Xw/mnYcg78a8gnhRhhERf9T1di3v6urZV2R CvBvL9uh4l4fvQf3Q/svRl91Ab+kvMOIUZXM3qtmyhZC6mdgL5gNuuf6Ey59ekELUwW8 AaHrsfio5uVo6M+NDplFJDceey5tql/6Lx2m2WvQ0Z5mUkUX49Rjivf90lhu9Vgj03Ww tElg== X-Gm-Message-State: AKwxytcN8t4gixBHfwZ8XeAWZmqCa8PIiUNwqXLKAJLFEhwYURrwhLCm Uix7qI5uLU8Iz1GvO482OFXL6CmyJe8= X-Google-Smtp-Source: AH8x225XiWp4sDkts0Fg555YkItofrh+CGkMSnRmZKi8M9H6ql5Gk31t6todepEpD8+/FfUUlRm3cA== X-Received: by 2002:a17:902:5853:: with SMTP id f19-v6mr16219258plj.383.1517025501004; Fri, 26 Jan 2018 19:58:21 -0800 (PST) Subject: [PATCH v7 16/17] Add RISC-V to build-many-glibcs.py Date: Fri, 26 Jan 2018 19:57:43 -0800 Message-Id: <20180127035744.10058-17-palmer@dabbelt.com> In-Reply-To: <20180127035744.10058-1-palmer@dabbelt.com> References: <20180127035744.10058-1-palmer@dabbelt.com> Cc: 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 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 8a2e068577a3..02bcd8a4582b 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -329,6 +329,21 @@ class Context(object): os_name='linux-gnuspe', variant='e500v1', gcc_cfg=['--disable-multilib', '--enable-secureplt']) + self.add_config(arch='riscv64', + os_name='linux-gnu', + variant='rv64imac-lp64', + gcc_cfg=['--with-arch=rv64imac', '--with-abi=lp64', + '--disable-multilib']) + self.add_config(arch='riscv64', + os_name='linux-gnu', + variant='rv64imafdc-lp64', + gcc_cfg=['--with-arch=rv64imafdc', '--with-abi=lp64', + '--disable-multilib']) + self.add_config(arch='riscv64', + os_name='linux-gnu', + variant='rv64imafdc-lp64d', + gcc_cfg=['--with-arch=rv64imafdc', '--with-abi=lp64d', + '--disable-multilib']) self.add_config(arch='s390x', os_name='linux-gnu', glibcs=[{}, @@ -1234,6 +1249,8 @@ class Config(object): 'nios2': 'nios2', 'powerpc': 'powerpc', 's390': 's390', + 'riscv32': 'riscv', + 'riscv64': 'riscv', 'sh': 'sh', 'sparc': 'sparc', 'tile': 'tile',