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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1249EC7619A for ; Wed, 5 Apr 2023 23:49:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D2B3C85FBC; Thu, 6 Apr 2023 01:49:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="CFL3TPs/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 02BBB85FAE; Thu, 6 Apr 2023 01:49:13 +0200 (CEST) Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1492985FCD for ; Thu, 6 Apr 2023 01:49:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-54c0c86a436so8420697b3.6 for ; Wed, 05 Apr 2023 16:49:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1680738546; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=E0CLNyf27gk5/2FVnMOIFwUgdoLIxld4ddnnN4mFm7k=; b=CFL3TPs/MDXduK4u+23PXan2d24Ivp5Js0R8ACzntch/ZAomMrFDd/ebhJoBUPsDyN CYrLNKH8Afi6RKTZ6pkrMH37dpb+ZScpBJE2BAyHFtxW7/OKmCs2h9szO7uV6Bd4yZtN 1RVUuvZIvgnPK1L62ISSXxz1+jEMEYRy0FkMY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680738546; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E0CLNyf27gk5/2FVnMOIFwUgdoLIxld4ddnnN4mFm7k=; b=Kg5JTRTgY2s00/GsRySK6SlSMVDIf1KpZU0qBVaZBOiflPskAEiJB0j/ZxNvu3+MBF CJLpIurIj/aZOL79jG5MCzEL5+qfVa0biN0DPP/x3TMQMophGv1HiLXSjk3c482zzskI xeUrxIPCYtwOj0kRtGdzIAndUo+eSUUhNxURVbRG7AQpuBxKXLbS8e6cqrxyu0cgh6cv rs1HF++Xj5xYs5PHCpTnDMvTnwNAvIi4jMZtH3H/JF71iROoFUawl5ZFjmKNLDuInsd/ LSedQvZH/QSYO/3+8YGFRo5uf0T2CCPmgZ9tjUiIxXzyy46vz1+0KiBCmhrISf16aYJw zikA== X-Gm-Message-State: AAQBX9fQzC/NFr+MQnKpJkXiCXzGPxUA96kDJN1OXTeHwI/pikje9JfL MZJ8E27AbH3WEdxor2eEzoIRHkhBcHcu0b7NMnWHuw== X-Google-Smtp-Source: AKy350Z3B1xNU4EC9TBaQgzf16UBILnGj+kwfeCC+V/vSE4ZhhL/6MYUpfpYCIcHVps9RBOfrLT5oQ== X-Received: by 2002:a0d:cb54:0:b0:541:7565:e35b with SMTP id n81-20020a0dcb54000000b005417565e35bmr3652436ywd.26.1680738546365; Wed, 05 Apr 2023 16:49:06 -0700 (PDT) Received: from bill-the-cat.lan (2603-6081-7b00-6400-acff-1005-f218-7c24.res6.spectrum.com. [2603:6081:7b00:6400:acff:1005:f218:7c24]) by smtp.gmail.com with ESMTPSA id l33-20020a81ad61000000b00545a08184b1sm4215448ywk.65.2023.04.05.16.49.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 16:49:05 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 1/9] arm: Only support ARM64_CRC32 when using GCC Date: Wed, 5 Apr 2023 19:48:51 -0400 Message-Id: <20230405234859.1446811-2-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230405234859.1446811-1-trini@konsulko.com> References: <20230405234859.1446811-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Today, only gcc has __builtin_aarch64_crc32b (clang-16 does not, for example). Make this option depend on CC_IS_GCC. Signed-off-by: Tom Rini --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f0118e225419..d7e657806051 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -12,7 +12,7 @@ config ARM64 config ARM64_CRC32 bool "Enable support for CRC32 instruction" - depends on ARM64 + depends on ARM64 && CC_IS_GCC default y help ARMv8 implements dedicated crc32 instruction for crc32 calculation. -- 2.34.1