> -----Original Message-----
> From: Leif Lindholm [mailto:leif.lindh...@linaro.org]
> Sent: Tuesday, October 1, 2019 4:04 AM
> To: devel@edk2.groups.io; Chang, Abner (HPS SW/FW Technologist)
> <abner.ch...@hpe.com>
> Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v2 18/29]
> RiscVPkg/Library: Add EDK2 RISC-V OpenSBI library.
> 
> On Mon, Sep 23, 2019 at 08:31:44AM +0800, Abner Chang wrote:
> > EDK2 RISC-V OpenSBI library which pull in external source files under
> > RiscVPkg/opensbi to the build process.
> >
> > Signed-off-by: Abner Chang <abner.ch...@hpe.com>
> > ---
> >  .../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.<BR> # #  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
> 
> Please move the opensbi directory to here instead.
> 
This is good.  Now [Includes] in RiscVPkg.dec looks like this,
[Includes]
   Library/RiscvOpensbiLib/opensbi
   Library/RiscvOpensbiLib/opensbi/include

> /
>     Leif
> 
> > +  ../../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
> >
> >
> > 
> >

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#48966): https://edk2.groups.io/g/devel/message/48966
Mute This Topic: https://groups.io/mt/34258215/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to