From nobody Mon Feb 9 07:07:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+49486+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+49486+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1572229911; cv=none; d=zoho.com; s=zohoarc; b=YwO8vs8vrhQOciRcvXZgXBYKOicNYlDUFkLTQIicEntWFXcbhKtH8ELHmOxj7gxvwXknIAa/Psl/4G9xUxfYMBX/RCnTAO2g2tlbPjuV10JCy/WWOaky4JVDfyV18NY+SyLzcJvqT5fRxy3E8Hh0G9WY3kbLk+7Lwrf+J5hZ91k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1572229911; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=Rdd857McCA77MzFy/eqDBhFHbAfjK+Bgj4ztRGH8LL8=; b=neO8r9kbyJGsSEUVKqXsX1YykHDMe7nfxZoJ7iVpr2sYl6DJu2q7NxlyOq3HZOyA/yTyyTH3UuLoEUO0hH6chf+cdidfXMxBQPPJRfDLQBBycFbRYLww/ug+epzxEjsgle5we/4RTAeAOHBxvYSm4Ba+NMhtH4L4eAmJZn49Xp8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+49486+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1572229911701951.4703932576715; Sun, 27 Oct 2019 19:31:51 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id eeUuYY1788612xghJUZFYicV; Sun, 27 Oct 2019 19:31:50 -0700 X-Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web11.571.1572229908274923008 for ; Sun, 27 Oct 2019 19:31:48 -0700 X-Received: from pps.filterd (m0134424.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9S2Vjxu007224; Mon, 28 Oct 2019 02:31:45 GMT X-Received: from g9t5008.houston.hpe.com (g9t5008.houston.hpe.com [15.241.48.72]) by mx0b-002e3701.pphosted.com with ESMTP id 2vvd4qrwdf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Oct 2019 02:31:45 +0000 X-Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g9t5008.houston.hpe.com (Postfix) with ESMTP id 3CFF453; Mon, 28 Oct 2019 02:31:12 +0000 (UTC) X-Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id D85CC45; Mon, 28 Oct 2019 02:31:10 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Leif Lindholm , Gilbert Chen Subject: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v3 01/39] RiscVPkg: RISC-V processor package. Date: Mon, 28 Oct 2019 09:58:39 +0800 Message-Id: <1572227957-13169-2-git-send-email-abner.chang@hpe.com> In-Reply-To: <1572227957-13169-1-git-send-email-abner.chang@hpe.com> References: <1572227957-13169-1-git-send-email-abner.chang@hpe.com> X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: 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,abner.chang@hpe.com X-Gm-Message-State: UK4TEf49KTBk388pKy8xkPKqx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1572229910; bh=hqpkrOC4RhnqsRKVa4fqq7Ni9ZoxUF/J1T3X3Ip19wo=; h=Cc:Date:From:Reply-To:Subject:To; b=mc/D+ruLGtCThlJa6NQzIiS+lBNoxB0o7h4QCeWA2YXnX0S3+fb2CkEJgfdz0zX+gyQ FahGHBIfbb+mETteIQRyiFxGnJJde/HxAChzULQB81vCX/0vowdPxpdVK3svZN1yphlr1 BHQhPYZpBN7pom3dvDw+TGDHKN/NagDdbak= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" - Add RiscVPkg package which provides RISC-V processor related drivers and libraries. - Support RISC-V OpenSBI and RISC-V platforms Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- RiscVPkg/RiscVPkg.dec | 26 +++++++++++++ RiscVPkg/RiscVPkg.dsc | 92 ++++++++++++++++++++++++++++++++++++++++++= ++++ RiscVPkg/RiscVPkg.uni | 13 +++++++ RiscVPkg/RiscVPkgExtra.uni | 13 +++++++ 4 files changed, 144 insertions(+) create mode 100644 RiscVPkg/RiscVPkg.dec create mode 100644 RiscVPkg/RiscVPkg.dsc create mode 100644 RiscVPkg/RiscVPkg.uni create mode 100644 RiscVPkg/RiscVPkgExtra.uni diff --git a/RiscVPkg/RiscVPkg.dec b/RiscVPkg/RiscVPkg.dec new file mode 100644 index 0000000..d01d76f --- /dev/null +++ b/RiscVPkg/RiscVPkg.dec @@ -0,0 +1,26 @@ +## @file RiscVPkg.dec +# This Package provides UEFI RISC-V modules and libraries. +# +# Copyright (c) 2016 - 2019, Hewlett Packard Enterprise Development LP. Al= l rights reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + DEC_SPECIFICATION =3D 0x0001001b + PACKAGE_NAME =3D RiscVPkg + PACKAGE_UNI_FILE =3D RiscVPkg.uni + PACKAGE_GUID =3D 993C7CAC-C87C-4F08-A2CF-AD3AABA859D1 + PACKAGE_VERSION =3D 1.0 + +[Includes] + Include + Library/RiscVOpensbiLib/opensbi # OpenSBI header file reference = ("include/sbi/...") + Library/RiscVOpensbiLib/opensbi/include # Header file reference from ope= nsbi files, ("sbi/...") + +[Guids] + gUefiRiscVPkgTokenSpaceGuid =3D { 0x4261e9c8, 0x52c0, 0x4b34, { 0x85, 0= x3d, 0x48, 0x46, 0xea, 0xd3, 0xb7, 0x2c}} + +[UserExtensions.TianoCore."ExtraFiles"] + RiscVPkgExtra.uni diff --git a/RiscVPkg/RiscVPkg.dsc b/RiscVPkg/RiscVPkg.dsc new file mode 100644 index 0000000..307d17b --- /dev/null +++ b/RiscVPkg/RiscVPkg.dsc @@ -0,0 +1,92 @@ +#/** @file +# RISC-V package. +# +# Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All right= s reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +#**/ + +##########################################################################= ###### +# +# Defines Section +# +##########################################################################= ###### +[Defines] + PLATFORM_NAME =3D RiscV + PLATFORM_GUID =3D 55D77916-B270-41B4-9325-2CE9DCE0926E + PLATFORM_VERSION =3D 0.1 + DSC_SPECIFICATION =3D 0x0001001c + OUTPUT_DIRECTORY =3D Build/$(PLATFORM_NAME) + SUPPORTED_ARCHITECTURES =3D RISCV64 + BUILD_TARGETS =3D DEBUG|RELEASE|NOOPT + SKUID_IDENTIFIER =3D DEFAULT + +[BuildOptions] + GCC:RELEASE_*_*_CC_FLAGS =3D -DMDEPKG_NDEBUG +!ifdef $(SOURCE_DEBUG_ENABLE) + GCC:*_*_RISCV64_GENFW_FLAGS =3D --keepexceptiontable +!endif + +##########################################################################= ###### +# +# SKU Identification section - list of all SKU IDs supported by this Platf= orm. +# +##########################################################################= ###### +[SkuIds] + 0|DEFAULT + +[LibraryClasses.common] + CpuExceptionHandlerLib|RiscVPkg/Library/RiscVExceptionLib/CpuExceptionHa= ndlerDxeLib.inf + RiscVCpuLib|RiscVPkg/Library/RiscVCpuLib/RiscVCpuLib.inf + RiscVOpensbiLib|RiscVPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf + TimerLib|RiscVPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf + BaseLib|MdePkg/Library/BaseLib/BaseLib.inf + BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf + DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.i= nf + DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf + HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf + IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf + MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAll= ocationLib.inf + PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf + PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeC= offExtraActionLibNull.inf + PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf + PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf + SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull= .inf + PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeC= offGetEntryPointLib.inf + CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf + UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBoo= tServicesTableLib.inf + UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/U= efiRuntimeServicesTableLib.inf + UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntry= Point.inf + UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiA= pplicationEntryPoint.inf + UefiLib|MdePkg/Library/UefiLib/UefiLib.inf + DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDev= icePathLibDevicePathProtocol.inf + RiscVPlatformTimerLib|RiscVPkg/Library/RiscVPlatformTimerLibNull/RiscVPl= atformTimerLib.inf + +[LibraryClasses.common.PEI_CORE] + PeiServicesTablePointerLib|RiscVPkg/Library/PeiServicesTablePointerLibOp= enSbi/PeiServicesTablePointerLibOpenSbi.inf + +[LibraryClasses.common.PEIM] + PeiServicesTablePointerLib|RiscVPkg/Library/PeiServicesTablePointerLibOp= enSbi/PeiServicesTablePointerLibOpenSbi.inf + RiscVPlatformDxeIplLib|RiscVPkg/Library/RiscVDxeIplHandoffOpenSbiLib/Ris= cVDxeIplHandoffOpenSbiLib.inf + HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf + MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAlloc= ationLib.inf + PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf + +[LibraryClasses.common.DXE_CORE] + TimerLib|RiscVPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf + +[LibraryClasses.common.DXE_DRIVER] + PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf + PlatformBootManagerLib|RiscVPlatformPkg/Library/PlatformBootManagerLib/P= latformBootManagerLib.inf + +[LibraryClasses.common.DXE_RUNTIME_DRIVER] + TimerLib|RiscVPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf + +[LibraryClasses.common.UEFI_DRIVER] + TimerLib|RiscVPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf + +[Components] + RiscVPkg/Universal/CpuDxe/CpuDxe.inf + RiscVPkg/Universal/SmbiosDxe/RiscVSmbiosDxe.inf + diff --git a/RiscVPkg/RiscVPkg.uni b/RiscVPkg/RiscVPkg.uni new file mode 100644 index 0000000..5ec7a99 --- /dev/null +++ b/RiscVPkg/RiscVPkg.uni @@ -0,0 +1,13 @@ +// /** @file +// RISC-V Package Localized Strings and Content. +// +// Copyright (c) 2016 - 2019, Hewlett Packard Enterprise Development LP. A= ll rights reserved.
+// +// SPDX-License-Identifier: BSD-2-Clause-Patent +// +// **/ + +#string STR_PACKAGE_ABSTRACT #language en-US "Provides UEFI com= patible RISC-V modules and libraries" + +#string STR_PACKAGE_DESCRIPTION #language en-US "This Package prov= ides UEFI compatible RISC-V modules and libraries." + diff --git a/RiscVPkg/RiscVPkgExtra.uni b/RiscVPkg/RiscVPkgExtra.uni new file mode 100644 index 0000000..b50a6b4 --- /dev/null +++ b/RiscVPkg/RiscVPkgExtra.uni @@ -0,0 +1,13 @@ +// /** @file +// RISC-V Package Localized Strings and Content. +// +// Copyright (c) 2016 - 2019, Hewlett Packard Enterprise Development LP. A= ll rights reserved.
+// +// SPDX-License-Identifier: BSD-2-Clause-Patent +// +// **/ + +#string STR_PROPERTIES_PACKAGE_NAME +#language en-US +"RiscV package" + --=20 2.7.4 -=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 (#49486): https://edk2.groups.io/g/devel/message/49486 Mute This Topic: https://groups.io/mt/38757505/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-