From patchwork Sun May 10 15:43:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Corbin X-Patchwork-Id: 1287220 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dibsco.co.uk Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49KpKC3VWjz9sPF for ; Mon, 11 May 2020 01:44:31 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D1FB485C00; Sun, 10 May 2020 15:44:29 +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 qcPN5enu-D4b; Sun, 10 May 2020 15:44:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A978A85C28; Sun, 10 May 2020 15:44:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id D5F1F1BF591 for ; Sun, 10 May 2020 15:44:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id D1FFC2041F for ; Sun, 10 May 2020 15:44:25 +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 f06admvGN4Z6 for ; Sun, 10 May 2020 15:44:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.75]) by silver.osuosl.org (Postfix) with ESMTPS id AEE0C203C2 for ; Sun, 10 May 2020 15:44:21 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id 0E4B46025F84 for ; Sun, 10 May 2020 16:44:19 +0100 (BST) X-ASG-Debug-ID: 1589125458-05541315aa502a20001-rUBnyj Received: from cloud209.unlimitedwebhosting.co.uk (cloud209.unlimitedwebhosting.co.uk [149.255.58.38]) by mailgw01.thundermail.uk with ESMTP id o5hqs3yAruX2FzQ6 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sun, 10 May 2020 16:44:18 +0100 (BST) X-Barracuda-Envelope-From: mark@dibsco.co.uk X-Barracuda-Effective-Source-IP: cloud209.unlimitedwebhosting.co.uk[149.255.58.38] X-Barracuda-Apparent-Source-IP: 149.255.58.38 Received: from localhost.localdomain (host86-167-16-142.range86-167.btcentralplus.com [86.167.16.142]) by cloud209.unlimitedwebhosting.co.uk (Postfix) with ESMTPSA id D01D5C7C6CA; Sun, 10 May 2020 16:44:17 +0100 (BST) Authentication-Results: cloud209.unlimitedwebhosting.co.uk; spf=pass (sender IP is 86.167.16.142) smtp.mailfrom=mark@dibsco.co.uk smtp.helo=localhost.localdomain Received-SPF: pass (cloud209.unlimitedwebhosting.co.uk: connection is authenticated) From: Mark Corbin To: buildroot@buildroot.org Date: Sun, 10 May 2020 16:43:45 +0100 X-ASG-Orig-Subj: [PATCH v2 1/3] toolchain/toolchain-buildroot: enable uclibc for riscv64 Message-Id: <20200510154347.5711-1-mark@dibsco.co.uk> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-PPP-Message-ID: <20200510154418.2036706.71444@cloud209.unlimitedwebhosting.co.uk> X-PPP-Vhost: dibsco.co.uk X-Barracuda-Connect: cloud209.unlimitedwebhosting.co.uk[149.255.58.38] X-Barracuda-Start-Time: 1589125458 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 2392 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.81756 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Subject: [Buildroot] [PATCH v2 1/3] toolchain/toolchain-buildroot: enable uclibc for riscv64 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour , Thomas De Schampheleire , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" We can enable uclibc for RISC-V 64 bit now that it has been bumped from v1.0.32 to v1.0.34. Uclibc has had basic support for RISC-V 64 bit since v1.0.31, but shared library and TLS/NPTL support has only been available since v1.0.33. This update has been tested using qemu_riscv64_virt_defconfig and the Buildroot host QEMU. Signed-off-by: Mark Corbin --- Changes v1 -> v2: - use BR2_RISCV_64 instead of (BR2_riscv && BR2_ARCH_IS_64) (Thomas P) --- package/uclibc/Config.in | 1 + toolchain/toolchain-buildroot/Config.in | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/package/uclibc/Config.in b/package/uclibc/Config.in index de2885bc92..f4d4f06462 100644 --- a/package/uclibc/Config.in +++ b/package/uclibc/Config.in @@ -101,6 +101,7 @@ config BR2_UCLIBC_TARGET_ARCH default "mips" if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el default "or1k" if BR2_or1k default "powerpc" if BR2_powerpc + default "riscv64" if BR2_RISCV_64 default "sh" if BR2_sh default "sparc" if BR2_sparc default "xtensa" if BR2_xtensa diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in index 8c33b2b4dd..3b2da333a2 100644 --- a/toolchain/toolchain-buildroot/Config.in +++ b/toolchain/toolchain-buildroot/Config.in @@ -27,12 +27,13 @@ choice config BR2_TOOLCHAIN_BUILDROOT_UCLIBC bool "uClibc-ng" - depends on BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || \ - BR2_arm || BR2_armeb || \ - BR2_i386 || BR2_m68k || BR2_microblaze || \ - BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \ - BR2_or1k || BR2_powerpc || BR2_sh2a || BR2_sh4 || \ - BR2_sh4eb || BR2_sparc || BR2_xtensa || BR2_x86_64 + depends on BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || \ + BR2_arm || BR2_armeb || \ + BR2_i386 || BR2_m68k || BR2_microblaze || \ + BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \ + BR2_or1k || BR2_powerpc || BR2_RISCV_64 || \ + BR2_sh2a || BR2_sh4 || BR2_sh4eb || BR2_sparc || \ + BR2_xtensa || BR2_x86_64 select BR2_TOOLCHAIN_USES_UCLIBC help This option selects uClibc-ng as the C library for the