From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 14432C00144 for ; Mon, 1 Aug 2022 22:09:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A2717606C0; Mon, 1 Aug 2022 22:09:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org A2717606C0 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a1NH4AdvFR54; Mon, 1 Aug 2022 22:09:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id C868A60675; Mon, 1 Aug 2022 22:09:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org C868A60675 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id F3D6D1BF31F for ; Mon, 1 Aug 2022 22:09:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A548B60675 for ; Mon, 1 Aug 2022 22:09:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org A548B60675 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qg0nY_zgbGJs for ; Mon, 1 Aug 2022 22:09:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E8CC6605B0 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by smtp3.osuosl.org (Postfix) with ESMTPS id E8CC6605B0 for ; Mon, 1 Aug 2022 22:09:22 +0000 (UTC) Received: (Authenticated sender: thomas.petazzoni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 8A26C1BF207; Mon, 1 Aug 2022 22:09:19 +0000 (UTC) Date: Tue, 2 Aug 2022 00:09:18 +0200 To: Abel Bernabeu Message-ID: <20220802000918.00ea20f2@windsurf> In-Reply-To: <20220723215448.2532160-1-abel@x-silicon.com> References: <20220723215448.2532160-1-abel@x-silicon.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1659391760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9L4nhjYg4c4e6IV3su/a7nJTe609c23jLiN5sUNaBFc=; b=knwZt8iKuHsRIRYoDyyXywz34fGSdDL7oIo1A5wQS7J4skhNFUaLa318oY1eI0FMAeqf86 QnM6I5ArgGjtbspNPi/StMKwqlyic52eEAvPnT7HJxc1dbfyZh6Q+uT9WPCfCrHh9pinZd tUUnoKv3jfNlQAWntLIG6yRvmLSWyObi8y+/kDkwAr9G0dW775PcP0dUdo0WmgmAArQb+b f7qaw7XMwrPob5fRStIjCmtwqBAlRMsurVCID3vHEuQU2UBmLMRKvULdknt51O9aNXBRdq 6ogqkb983QAnnXy52ysEt13D6uTaljVwjsx/CRg6747ioS9AjB/5B1F+7shyeQ== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=knwZt8iK Subject: Re: [Buildroot] [PATCH 1/2] package/llvm: Support for RISC-V on the LLVM package X-BeenThere: buildroot@buildroot.org 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: , From: Thomas Petazzoni via buildroot Reply-To: Thomas Petazzoni Cc: Joseph Kogut , Romain Naour , Valentin Korenblit , Mark Corbin , buildroot@buildroot.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" On Sat, 23 Jul 2022 23:54:47 +0200 Abel Bernabeu wrote: > The initial support for the LLVM package did not include RISC-V, and > needed to be added. > > There is a new configuration parameter added > (BR2_PACKAGE_LLVM_TARGETS_TO_BUILD) for dealing with the fact that > the LLVM target and the architecture have different naming for RISC-V. > While the target for RISC-V is "RISCV" irrespective of the ISA being > 32 or 64 bits, the architecture does contain the number of bits > leading to "riscv32" and "riscv64". > > For previously supported architectures the naming for target and > architecture matched and thus this parameter had not been needed, but > it is now needed for RISC-V. > > Signed-off-by: Abel Bernabeu > --- > package/llvm/Config.in | 10 ++++++++++ > package/llvm/llvm.mk | 2 +- > 2 files changed, 11 insertions(+), 1 deletion(-) I have simplified the RISCV quirk by moving it to the llvm.mk file: # Build backend for target architecture. This include backends like # AMDGPU. We need to special case RISCV. ifneq ($(filter riscv%,$(LLVM_TARGET_ARCH)),) LLVM_TARGETS_TO_BUILD = RISCV else LLVM_TARGETS_TO_BUILD = $(LLVM_TARGET_ARCH) endif Applied with this change, thanks! Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot