From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=01695bccdc=abner.chang@hpe.com) Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by groups.io with SMTP; Sun, 22 Sep 2019 18:02:58 -0700 Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8N1140k010085 for ; Mon, 23 Sep 2019 01:02:57 GMT Received: from g9t5009.houston.hpe.com (g9t5009.houston.hpe.com [15.241.48.73]) by mx0b-002e3701.pphosted.com with ESMTP id 2v5984pmqv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 23 Sep 2019 01:02:57 +0000 Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g9t5009.houston.hpe.com (Postfix) with ESMTP id 2C18851 for ; Mon, 23 Sep 2019 01:02:57 +0000 (UTC) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.44]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id 3B07345; Mon, 23 Sep 2019 01:02:56 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com Subject: [edk2-staging/RISC-V-V2 PATCH v2 18/29] RiscVPkg/Library: Add EDK2 RISC-V OpenSBI library. Date: Mon, 23 Sep 2019 08:31:44 +0800 Message-Id: <1569198715-31552-20-git-send-email-abner.chang@hpe.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1569198715-31552-1-git-send-email-abner.chang@hpe.com> References: <1569198715-31552-1-git-send-email-abner.chang@hpe.com> X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-22_09:2019-09-20,2019-09-22 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=999 spamscore=0 phishscore=0 impostorscore=0 priorityscore=1501 suspectscore=1 malwarescore=0 adultscore=0 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1909230006 EDK2 RISC-V OpenSBI library which pull in external source files under RiscVPkg/opensbi to the build process. Signed-off-by: Abner Chang --- .../Library/RiscVOpensbiLib/RiscVOpensbiLib.inf | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 RiscVPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf diff --git a/RiscVPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf b/RiscVPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf new file mode 100644 index 0000000..640ffba --- /dev/null +++ b/RiscVPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf @@ -0,0 +1,52 @@ +## @file +# RISC-V Opensbi Library Instance. +# +# Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All rights reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION = 0x0001001b + BASE_NAME = RiscVOpensbiLib + FILE_GUID = 6EF0C812-66F6-11E9-93CE-3F5D5F0DF0A7 + MODULE_TYPE = BASE + VERSION_STRING = 1.0 + LIBRARY_CLASS = RiscVOpensbiLib + +[Sources] + ../../opensbi/lib/sbi/riscv_asm.c + ../../opensbi/lib/sbi/riscv_atomic.c + ../../opensbi/lib/sbi/riscv_hardfp.S + ../../opensbi/lib/sbi/riscv_locks.c + ../../opensbi/lib/sbi/riscv_unpriv.c + ../../opensbi/lib/sbi/sbi_console.c + ../../opensbi/lib/sbi/sbi_ecall.c + ../../opensbi/lib/sbi/sbi_emulate_csr.c + ../../opensbi/lib/sbi/sbi_fifo.c + ../../opensbi/lib/sbi/sbi_hart.c + ../../opensbi/lib/sbi/sbi_illegal_insn.c + ../../opensbi/lib/sbi/sbi_init.c + ../../opensbi/lib/sbi/sbi_ipi.c + ../../opensbi/lib/sbi/sbi_misaligned_ldst.c + ../../opensbi/lib/sbi/sbi_scratch.c + ../../opensbi/lib/sbi/sbi_string.c + ../../opensbi/lib/sbi/sbi_system.c + ../../opensbi/lib/sbi/sbi_timer.c + ../../opensbi/lib/sbi/sbi_tlb.c + ../../opensbi/lib/sbi/sbi_trap.c + ../../opensbi/lib/utils/sys/clint.c + ../../opensbi/lib/utils/irqchip/plic.c + ../../opensbi/lib/utils/serial/sifive-uart.c + ../../opensbi/lib/utils/serial/uart8250.c + +[Packages] + MdePkg/MdePkg.dec + RiscVPkg/RiscVPkg.dec + +[LibraryClasses] + BaseLib + PcdLib + RiscVCpuLib + -- 2.7.4