From: "Leif Lindholm" <leif@nuviainc.com>
To: Daniel Schaefer <daniel.schaefer@hpe.com>
Cc: devel@edk2.groups.io, Gilbert Chen <gilbert.chen@hpe.com>,
Abner Chang <abner.chang@hpe.com>,
Michael D Kinney <michael.k.kinney@intel.com>
Subject: Re: [PATCH v2 1/3] ProcessorPkg/RiscVOpensbLib: Add opensbi submodule
Date: Wed, 20 May 2020 12:51:32 +0100 [thread overview]
Message-ID: <20200520115132.GL1923@vanye> (raw)
In-Reply-To: <20200515133937.29909-2-daniel.schaefer@hpe.com>
On Fri, May 15, 2020 at 15:39:35 +0200, Daniel Schaefer wrote:
> Add submodule opensbi under
> Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbLlib.
> The current supported opensbi version for RISC-V edk2 port is tags/v0.6.
>
> Signed-off-by: Daniel Schaefer <daniel.schaefer@hpe.com>
> Co-authored-by: Gilbert Chen <gilbert.chen@hpe.com>
> Co-authored-by: Abner Chang <abner.chang@hpe.com>
Please drop the above two lines.
>From a project standpoint they are no-ops and I don't really mind
keeping them in 2-3/3 (I appreciate the sentiment), but this patch
isn't interesting enough to justify it, and mainly duplicates/modifies
content already in edk2/ReadMe.rst.
With that:
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
>
> Cc: Abner Chang <abner.chang@hpe.com>
> Cc: Gilbert Chen <gilbert.chen@hpe.com>
> Cc: Michael D Kinney <michael.k.kinney@intel.com>
> Cc: Leif Lindholm <leif@nuviainc.com>
> ---
> .gitmodules | 3 ++
> Readme.md | 36 ++++++++++++++++++++
> Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi | 1 +
> 3 files changed, 40 insertions(+)
>
> diff --git a/.gitmodules b/.gitmodules
> new file mode 100644
> index 000000000000..88aafaf15820
> --- /dev/null
> +++ b/.gitmodules
> @@ -0,0 +1,3 @@
> +[submodule "Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi"]
> + path = Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi
> + url = https://github.com/riscv/opensbi
> diff --git a/Readme.md b/Readme.md
> index 8f9522659d7b..8f7317e6b029 100644
> --- a/Readme.md
> +++ b/Readme.md
> @@ -10,6 +10,10 @@ The majority of the content in the EDK II open source project uses a
> [BSD-2-Clause Plus Patent License](License.txt). Additional details on EDK II
> open source project code contributions can be found in the edk2 repository
> [Readme.md](https://github.com/tianocore/edk2/blob/master/Readme.md).
> +The EDK II Platforms open source project contains the following components that
> +are covered by additional licenses:
> +
> +- [`Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi`](https://github.com/riscv/opensbi/blob/master/COPYING.BSD)
>
> # INDEX
> * [Overview](#overview)
> @@ -260,3 +264,35 @@ For more information, see the
> # Maintainers
>
> See [Maintainers.txt](Maintainers.txt).
> +
> +# Submodules
> +
> +Submodule in EDK II Platforms is allowed but submodule chain should be avoided
> +as possible as we can. Currently EDK II Platforms contains the following
> +submodules
> +
> +- Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi
> +
> +To get a full, buildable EDK II repository, use following steps of git command
> +
> +```bash
> + git clone https://github.com/tianocore/edk2-platforms.git
> + cd edk2-platforms
> + git submodule update --init
> + cd ..
> +```
> +
> +If there's update for submodules, use following git commands to get the latest
> +submodules code.
> +
> +```bash
> + cd edk2-platforms
> + git pull
> + git submodule update
> +```
> +
> +Note: When cloning submodule repos, '--recursive' option is not recommended.
> +EDK II Platforms itself will not use any code/feature from submodules in above
> +submodules. So using '--recursive' adds a dependency on being able to reach
> +servers we do not actually want any code from, as well as needlessly
> +downloading code we will not use.
> diff --git a/Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi b/Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi
> new file mode 160000
> index 000000000000..ac5e821d50be
> --- /dev/null
> +++ b/Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi
> @@ -0,0 +1 @@
> +Subproject commit ac5e821d50be631f26274765a59bc1b444ffd862
> --
> 2.26.1
>
next prev parent reply other threads:[~2020-05-20 11:51 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-15 13:39 [PATCH v2 0/3] New RISC-V Patches Daniel Schaefer
2020-05-15 13:39 ` [PATCH v2 1/3] ProcessorPkg/RiscVOpensbLib: Add opensbi submodule Daniel Schaefer
2020-05-20 11:51 ` Leif Lindholm [this message]
2020-05-15 13:39 ` [PATCH v2 2/3] ProcessorPkg/Library: Add RiscVOpensbiLib Daniel Schaefer
2020-05-20 12:00 ` Leif Lindholm
2020-05-20 14:44 ` Daniel Schaefer
2020-05-15 13:39 ` [PATCH v2 3/3] ProcessorPkg/Library: Add RiscVEdk2SbiLib Daniel Schaefer
2020-05-20 18:27 ` Leif Lindholm
2020-05-29 12:43 ` [edk2-devel] " Daniel Schaefer
2020-05-29 13:15 ` Leif Lindholm
2020-05-20 11:43 ` [edk2-devel] [PATCH v2 0/3] New RISC-V Patches Leif Lindholm
2020-05-20 16:03 ` [edk2-devel] [PATCH v2 0/3] New RISC-V Patches - Why in edk2-platforms Daniel Schaefer
2020-05-20 16:07 ` Daniel Schaefer
2020-05-20 16:17 ` Daniel Schaefer
2020-05-21 6:59 ` Abner Chang
2020-05-28 11:54 ` Leif Lindholm
2020-05-29 14:41 ` Abner Chang
[not found] ` <b55ee3ec-74de-532e-01f7-bd24a327d00b@hpe.com>
[not found] ` <CY4PR21MB0743421F39A05298FBCFBAA0EF8F0@CY4PR21MB0743.namprd21.prod.outlook.com>
[not found] ` <MN2PR11MB4461D8666DE6DA1E7D4B5B9BD28F0@MN2PR11MB4461.namprd11.prod.outlook.com>
[not found] ` <TU4PR8401MB1182F755F76709FF1D46D3F2FF8F0@TU4PR8401MB1182.NAMPRD84.PROD.OUTLOOK.COM>
[not found] ` <MN2PR11MB4461442E7462457D6C20F6F2D28F0@MN2PR11MB4461.namprd11.prod.outlook.com>
[not found] ` <MW2PR2101MB092494AB8318628E06B62089E18F0@MW2PR2101MB0924.namprd21.prod.outlook.com>
2020-06-03 11:57 ` [edk2-devel] Where to put RISC-V packages Daniel Schaefer
2020-06-03 15:02 ` Abner Chang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200520115132.GL1923@vanye \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox