From patchwork Thu Oct 28 13:20:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= X-Patchwork-Id: 12590139 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40815C433EF for ; Thu, 28 Oct 2021 13:21:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0EC2360F92 for ; Thu, 28 Oct 2021 13:21:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0EC2360F92 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=80KGFsgh0s8j2Pm9mYh2qpxVtotPS0wQCqmpMwWVXo8=; b=b27zFxhttUcx/L PwqlOyVGP7nHjYpN9Pkez2bmdXcgBoWHxcR2cujsKA9RQWYQKwHCGZzYOHK7s8/n8MsFG12Ouhtuf rvXYZJ1DYmHY2tWAjWYIYqC/Ni+8aU5Qtrl5XannHkKDlZjS/d0xQI0nhWKPX+4psUFONg0Cz6tP0 d+NC++PjFkci7zKUeCBpVskKvsHd+swTR3NlfdSdI80Ql8+R+PiyBSzI5eVhPp+Tezh5Ma7JF3kAT SSzDRx41GM6Ybbevm+VSdz3vApWG5o3U1KjBiWH51kyBuznZOnEMIuIIqBgzhvh4iNmWab7W+vlKY YiL04rNROtFKroxQxxfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mg5Kw-007uXw-1K; Thu, 28 Oct 2021 13:20:54 +0000 Received: from mail-lf1-f54.google.com ([209.85.167.54]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mg5Kr-007uVe-Ki for linux-riscv@lists.infradead.org; Thu, 28 Oct 2021 13:20:50 +0000 Received: by mail-lf1-f54.google.com with SMTP id bq11so13512791lfb.10 for ; Thu, 28 Oct 2021 06:20:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FpcAIXzIJRZanZR1xOZ449nR9Z4CpuYm3hzQzUAM83c=; b=rN1mU9b04kHL1q0rR9BDVgndzvOvFwGcdNI3xXJUjRlHOXy8UUAseYWd8+NrDWuKry PWIUUEDMxT42BX2HwPeLgi8Yba0VD45HHMHaWN1Qu8afrNR24muR2qdPWtseAFYwjAAo nIHnfjcTauDjyR0pr5cPb+l1sL280Xpy/H52/v3CmcNCYQX4XdbQEhYnn2Me0MprdIp6 U45jyfEEt4VaJRZYDTU+0/PzwIiT9eXwEhzs+fLQ0mVNoOHCW/aTJoyBYbwfACImPpVn iwfFOfW6EMKPJpe61UU8UQCD1CPKdmneLoQZnPP1oBalUuE/xbWEf5YAhBIjYLHNUMSE 8ErQ== X-Gm-Message-State: AOAM532guWazu53HN/iXrHBGg3Vt5jd2xgcHx4cD2Ocr02chjlZdl7pd 0EHoz7+nSOq4hHOt5sFeU/0= X-Google-Smtp-Source: ABdhPJzpoIYhfju6k4/Qfnivw7wHlSlK52r59+vqI6IlaJ3X5/OYjMzzZhfjKSvZC4Rv3XnX0kOmUQ== X-Received: by 2002:a05:6512:3b20:: with SMTP id f32mr4083761lfv.423.1635427248082; Thu, 28 Oct 2021 06:20:48 -0700 (PDT) Received: from kladdkakan.. ([185.213.154.234]) by smtp.gmail.com with ESMTPSA id o9sm309616lfk.292.2021.10.28.06.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 06:20:47 -0700 (PDT) From: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= To: ast@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org, bpf@vger.kernel.org Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , linux-riscv@lists.infradead.org Subject: [PATCH bpf-next 2/4] tools build: Add RISC-V to HOSTARCH parsing Date: Thu, 28 Oct 2021 15:20:39 +0200 Message-Id: <20211028132041.516820-3-bjorn@kernel.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211028132041.516820-1-bjorn@kernel.org> References: <20211028132041.516820-1-bjorn@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211028_062049_702521_6DDB3866 X-CRM114-Status: UNSURE ( 8.62 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add RISC-V to the HOSTARCH parsing, so that ARCH is "riscv", and not "riscv32" or "riscv64". This affects the perf and libbpf builds, so that arch specific includes are correctly picked up for RISC-V. Signed-off-by: Björn Töpel --- tools/scripts/Makefile.arch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/scripts/Makefile.arch b/tools/scripts/Makefile.arch index b10b7a27c33f..0c6c7f456887 100644 --- a/tools/scripts/Makefile.arch +++ b/tools/scripts/Makefile.arch @@ -4,7 +4,8 @@ HOSTARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \ -e /arm64/!s/arm.*/arm/ -e s/sa110/arm/ \ -e s/s390x/s390/ -e s/parisc64/parisc/ \ -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ - -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ ) + -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ \ + -e s/riscv.*/riscv/) ifndef ARCH ARCH := $(HOSTARCH)