From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by mx.groups.io with SMTP id smtpd.web09.26668.1574354916676050718 for ; Thu, 21 Nov 2019 08:48:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=uO9Nr9y9; spf=pass (domain: linaro.org, ip: 209.85.128.66, mailfrom: leif.lindholm@linaro.org) Received: by mail-wm1-f66.google.com with SMTP id y5so4494615wmi.5 for ; Thu, 21 Nov 2019 08:48:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7WVfBzibBTjjKtcVOrVMxwkpcQBSHXxw7XH/7Mq4JVA=; b=uO9Nr9y95o0MuzcHRY32Hlu2wR5DPG3+44Ys2DwHCuqj6J1pUmhkA7cief/xGI/2xT CYjdlIoNRyO77v1cm0aFOYtcRIjV2B6flu9fs1qLiRhTl3L84L1Kb8UYFu5vW2kI1HOq 3TT/d6rBMa1Mxt2BTYyodpcx0ARRDtMQpFPEtYShsveUFis0+RBd611KMHx1uN8VqzEu mvg5vwA4LgeFl6u9oyaPcHhkPn3DrSWqiL6iDuX7qZScow2NHZzj0TgftSmUN1oCuLzh VMMSv64zfEu1m4o6F/eJeu62KBHJd8jwmQ6/jwo76htNb9VO3m/fwAXQU+sRKFIdXjwK 9+mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7WVfBzibBTjjKtcVOrVMxwkpcQBSHXxw7XH/7Mq4JVA=; b=lTe98RCuMMAPkXn+1DuokRRFT527lgRZkKPWW4SNck0rtARRVg0PmSokp19DSS1FRQ +WwM4tjUjtyPRS/SGZhIR3HkOpq54InMUt8lW4UJ+q0TT9lHnrN7rudusYc0a7BJMY3y RMuaMzNOu7cbfADiRK7mKCFVDXR3WvTqgamjCMPwvOXpFHkHJPBLq7A2pBA4dFI7Emve QtihVv6fRae9lLmJTVtuM5jqW5lL8UgMLqSCRLLd8m5nDl++Vb6YZg0LRrGUgScdZGI8 C+lXo9gH5TjZP41lZ0150VcVUASeAxn1BsBxbS5DFdON1qITNsd54PJKzt24KG0PDGyv F95g== X-Gm-Message-State: APjAAAUm9JXVz8i6TfQRpfPKZbqMFG0W2GlIqMWSHiOrU24gsz940b9Z ytQ3bipteeZ1TIo81MleLa1ElRA+WUM= X-Google-Smtp-Source: APXvYqwT0/ip+ZRliQtSiRnhGId/axpNvZXuEPAKBWrG8eWKVvoGsQl6TwXds4If54/ZBVQyZyHR2g== X-Received: by 2002:a1c:e0c4:: with SMTP id x187mr11432010wmg.93.1574354914800; Thu, 21 Nov 2019 08:48:34 -0800 (PST) Return-Path: Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id c15sm4281778wrx.78.2019.11.21.08.48.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 08:48:33 -0800 (PST) Date: Thu, 21 Nov 2019 16:48:32 +0000 From: "Leif Lindholm" To: devel@edk2.groups.io, abner.chang@hpe.com Cc: Gilbert Chen Subject: Re: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v3 18/39] RiscVPkg/Library: Add EDK2 RISC-V OpenSBI library. Message-ID: <20191121164832.GL7359@bivouac.eciton.net> References: <1572227957-13169-1-git-send-email-abner.chang@hpe.com> <1572227957-13169-19-git-send-email-abner.chang@hpe.com> MIME-Version: 1.0 In-Reply-To: <1572227957-13169-19-git-send-email-abner.chang@hpe.com> User-Agent: Mutt/1.10.1 (2018-07-13) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Oct 28, 2019 at 09:58:56 +0800, Abner Chang wrote: > EDK2 RISC-V OpenSBI library which pull in external source files under > RiscVPkg/Library/RiscVOpensbiLib/opensbi to the build process. > > Signed-off-by: Abner Chang > Could this be reordered to appear immediately after the Sbi wrapper headers are added (or even squashed with it)? / Leif > Cc: Leif Lindholm > Cc: Gilbert Chen > --- > .../Library/RiscVOpensbiLib/RiscVOpensbiLib.inf | 53 ++++++++++++++++++++++ > 1 file changed, 53 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..3e7f0fb > --- /dev/null > +++ b/RiscVPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf > @@ -0,0 +1,53 @@ > +## @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] > + EmbeddedPkg/EmbeddedPkg.dec # For libfdt. > + MdePkg/MdePkg.dec > + RiscVPkg/RiscVPkg.dec > + > +[LibraryClasses] > + BaseLib > + PcdLib > + RiscVCpuLib > + > -- > 2.7.4 > > > >