From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web10.2666.1641618773016096163 for ; Fri, 07 Jan 2022 21:12:53 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=LDnK3wVJ; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=000704d8ca=abner.chang@hpe.com) Received: from pps.filterd (m0150241.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2082Qup3019409 for ; Sat, 8 Jan 2022 05:12:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=f91JnIhaDa3UiHkvAX9DyvswehwZFPcVRQ1SxYA2guc=; b=LDnK3wVJkTuKfSnhGf862wubgpZjSr3ro/8eGRNaFq1vfYvg4w1cfu8MxYE4r0IPoL41 ijcE3ZkmrnpNIPbEeSzUn9LTVNOEXrJc9kR51QhlJ+WyZSrg9jy/YahoT9imAuh5H42H Ki9cI5R1XBrWIKHGvzYOnXs2xoEgIJUAZbK0wiVmu3mX1iGIyR/o2iEYq0Lk6Es1jobF Ye8xXPWHd1CBbD/sswdB8pK1BzpT9DHVMnWwovYf7JV31wgH4rUSpZd28MFrvUTVnvdg zUX3hWyaLJB/1G7wB9R/UlIrvBVkKraWvUrgHL32lIfqOfftaCj5vxp2jmPoius8GTQf Rg== Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3df15pgqv3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 08 Jan 2022 05:12:52 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2354.austin.hpe.com (Postfix) with ESMTP id 9731281 for ; Sat, 8 Jan 2022 05:12:51 +0000 (UTC) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id DF3C437; Sat, 8 Jan 2022 05:12:50 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com Subject: [PATCH 30/79] RISC-V: Use U5 SMBIOS library only for those platforms Date: Sat, 8 Jan 2022 12:10:50 +0800 Message-Id: <20220108041121.16005-29-abner.chang@hpe.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220108041121.16005-1-abner.chang@hpe.com> References: <20220108041121.16005-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-GUID: y87Nm0bzFjlxQAwk2k9N1hjMe2_wE5mo X-Proofpoint-ORIG-GUID: y87Nm0bzFjlxQAwk2k9N1hjMe2_wE5mo X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-08_01,2022-01-07_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 impostorscore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 suspectscore=0 priorityscore=1501 phishscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201080036 Content-Transfer-Encoding: quoted-printable (This is migrated from edk2-platforms) Cc: Abner Chang Cc: Sunil V L Reviewed-by: Abner Chang Signed-off-by: Daniel Schaefer --- .../PeiCoreInfoHobLib.inf | 43 +++++++++++++++++++ .../Universal/Pei/PlatformPei/PlatformPei.inf | 2 +- .../PeiCoreInfoHobLibNull/CoreInfoHob.c | 37 ++++++++++++++++ 3 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNu= ll/PeiCoreInfoHobLib.inf create mode 100644 Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNu= ll/CoreInfoHob.c diff --git a/Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/PeiC= oreInfoHobLib.inf b/Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNu= ll/PeiCoreInfoHobLib.inf new file mode 100644 index 0000000000..5a8db5071f --- /dev/null +++ b/Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/PeiCoreInfo= HobLib.inf @@ -0,0 +1,43 @@ +## @file=0D +# Library instance to create core information HOB=0D +#=0D +# Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
=0D +#=0D +# SPDX-License-Identifier: BSD-2-Clause-Patent=0D +#=0D +##=0D +=0D +[Defines]=0D + INF_VERSION =3D 0x0001001b=0D + BASE_NAME =3D RiscVCoreplexInfoLibNull=0D + FILE_GUID =3D E5783AF0-B7C5-4FAA-BAB4-D52C06B98BBE= =0D + MODULE_TYPE =3D PEIM=0D + VERSION_STRING =3D 1.0=0D + LIBRARY_CLASS =3D RiscVCoreplexInfoLib=0D +=0D +#=0D +# The following information is for reference only and not required by the = build tools.=0D +#=0D +# VALID_ARCHITECTURES =3D RISCV64=0D +#=0D +=0D +[Sources]=0D + CoreInfoHob.c=0D +=0D +[Packages]=0D + MdePkg/MdePkg.dec=0D + MdeModulePkg/MdeModulePkg.dec=0D + Platform/RISC-V/PlatformPkg/RiscVPlatformPkg.dec=0D + Silicon/RISC-V/ProcessorPkg/RiscVProcessorPkg.dec=0D +=0D +[LibraryClasses]=0D + BaseLib=0D + PcdLib=0D + MemoryAllocationLib=0D + PrintLib=0D +=0D +[Guids]=0D +=0D +[Ppis]=0D +=0D +[FixedPcd]=0D diff --git a/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/Platform= Pei.inf b/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/PlatformPei= .inf index e7f5eef630..0db88abba4 100644 --- a/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/PlatformPei.inf +++ b/Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/PlatformPei.inf @@ -51,7 +51,7 @@ PeiServicesTablePointerLib=0D PeimEntryPoint=0D PcdLib=0D - SiliconSiFiveU5MCCoreplexInfoLib=0D + RiscVCoreplexInfoLib=0D =0D [Pcd]=0D gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved=0D diff --git a/Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/Core= InfoHob.c b/Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/CoreI= nfoHob.c new file mode 100644 index 0000000000..9aad7991bc --- /dev/null +++ b/Platform/RISC-V/PlatformPkg/Library/PeiCoreInfoHobLibNull/CoreInfoHob= .c @@ -0,0 +1,37 @@ +/**@file=0D + Build up platform processor information.=0D +=0D + Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All right= s reserved.
=0D +=0D + SPDX-License-Identifier: BSD-2-Clause-Patent=0D +=0D +**/=0D +=0D +//=0D +// The package level header files this module uses=0D +//=0D +#include =0D +=0D +//=0D +// The Library classes this module consumes=0D +//=0D +#include =0D +#include =0D +#include =0D +=0D +#include =0D +=0D +=0D +/**=0D + Build processor and platform information for a generic RISC-V=0D +=0D + @return EFI_SUCCESS Status.=0D +=0D +**/=0D +EFI_STATUS=0D +BuildRiscVSmbiosHobs (=0D + VOID=0D +)=0D +{=0D + return EFI_SUCCESS;=0D +}=0D --=20 2.31.1