From nobody Sun Feb 8 14:53:18 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+98016+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98016+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1672934711; cv=none; d=zohomail.com; s=zohoarc; b=Sdjdyn3tfmovglL+Bxd0M6+ZkTAZ2Pt/aFAmq6jZ5xysiFPRRCCz/Qv9x+4uY5G9XgfrjV4gh9l7Ru8dKe+cx+pRtP89WvPAap8Ej9m4HHeXbaGr46w2+F7U2TBOAD9FYzxt3CmvkxMb/SZpNbu5StFQzBkQPU5IytH2JDDpVoQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672934711; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=V1OPz72EnEEvLzqb4yLSP3mwIcdg68gLEockeeglU6I=; b=Y3wmZXJoi7BwrPeQltS+x6hkaed+P9qNXjs4WsnxHlodZImrFNRVRVL7j4W1KbRUHizZ4JKcdo3iQwJ5q+LAw+2RdRiAxEHN8y+sQSmjKtk1zwU4dSrHyDNsvSX2tC1wbG8Dfo8+WJR3P7IMfsTz3L34Rn/TNGw+wtuoV6EgSwQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98016+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 167293471153933.24344531107931; Thu, 5 Jan 2023 08:05:11 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id I1uiYY1788612xqacyDa655d; Thu, 05 Jan 2023 08:05:10 -0800 X-Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web10.16650.1672934710401717421 for ; Thu, 05 Jan 2023 08:05:10 -0800 X-Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F0D9F61B13; Thu, 5 Jan 2023 16:05:09 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1B2EC433F2; Thu, 5 Jan 2023 16:05:07 +0000 (UTC) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: quic_llindhol@quicinc.com, rebecca@quicinc.com, bob.c.feng@intel.com, gaoliming@byosoft.com.cn, Ard Biesheuvel , Abner Chang Subject: [edk2-devel] [PATCH 1/4] BaseTools/tools_def RISCV: Make OpenSBI references RISCV-only Date: Thu, 5 Jan 2023 17:05:00 +0100 Message-Id: <20230105160503.1423627-2-ardb@kernel.org> In-Reply-To: <20230105160503.1423627-1-ardb@kernel.org> References: <20230105160503.1423627-1-ardb@kernel.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ardb@kernel.org X-Gm-Message-State: gVTiOAFETtagoq8Di8CQqP1kx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672934710; bh=0yU+1toUOU0TjoMKMWddbALjSwsWqoA3J+6yf5Jg1KQ=; h=Cc:Date:From:Reply-To:Subject:To; b=Ko++jWJKIMmhfQ2mJdxjb9vS1C9WeZWl4upjY6HyZyN4WXIi1SZOIHGgQjPyNUXAQYj dkgNGvhYzEyjZR+47Vaujj65DLMbKtsl7Qn0VsbjZTC/01NlS350kHoYJ277LEI0MIHlb lL4ex5hkdplpo+UeDmlt8yrQllyUkJrYFuM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672934712877100006 Content-Type: text/plain; charset="utf-8" The global GCC_PP_FLAGS tools_def variable now contains a reference to OpenSBI specific C preprocessor variables, which means they are added to the command line on every architecture, not just RISC-V. This does not currently result in any issues, but it is a bit sloppy so let's clean this up. Given that the GCC_PP_FLAGS definition appears twice, drop the one that carries the OpenSBI reference, and move that reference to a new RISC-V specific variable. Cc: Abner Chang Signed-off-by: Ard Biesheuvel Acked-by: Abner Chang Reviewed-by: Sunil V L --- BaseTools/Conf/tools_def.template | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.t= emplate index 805e903b23bb..4733040e3ef1 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -1979,8 +1979,6 @@ DEFINE GCC5_LOONGARCH64_ASLDLINK_FLAGS =3D DEF(GC= C_LOONGARCH64_ASLDLINK_FLAGS) DEFINE GCC5_LOONGARCH64_ASM_FLAGS =3D -x assembler-with-cpp -mabi= =3Dlp64d -march=3Dloongarch64 -fno-builtin -c -Wall -mno-explicit-relocs DEFINE GCC5_LOONGARCH64_PP_FLAGS =3D -mabi=3Dlp64d -march=3Dloon= garch64 DEF(GCC_PP_FLAGS) =20 -DEFINE GCC_PP_FLAGS =3D -E -x assembler-with-cpp -i= nclude AutoGen.h DEF(GCC5_RISCV_OPENSBI_TYPES) - ##########################################################################= ########## # # GCC 4.8 - This configuration is used to compile under Linux to produce @@ -2456,6 +2454,7 @@ RELEASE_GCC5_AARCH64_DLINK_XIPFLAGS =3D -z common-pag= e-size=3D0x20 *_GCC5_RISCV64_RC_FLAGS =3D DEF(GCC_RISCV64_RC_FLAGS) *_GCC5_RISCV64_OBJCOPY_FLAGS =3D *_GCC5_RISCV64_DTCPP_FLAGS =3D DEF(GCC_DTCPP_FLAGS) +*_GCC5_RISCV64_PP_FLAGS =3D DEF(GCC_PP_FLAGS) DEF(GCC5_RISCV_O= PENSBI_TYPES) =20 ################## # GCC5 LOONGARCH64 definitions --=20 2.39.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#98016): https://edk2.groups.io/g/devel/message/98016 Mute This Topic: https://groups.io/mt/96074676/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-