From: Leif Lindholm <leif.lindholm@linaro.org>
To: "Ni, Ray" <ray.ni@intel.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
"Kinney, Michael D" <michael.d.kinney@intel.com>,
"Zimmer, Vincent" <vincent.zimmer@intel.com>,
Laszlo Ersek <lersek@redhat.com>,
"'Andrew Fish (afish@apple.com)'" <afish@apple.com>,
"Cetola, Stephano" <stephano.cetola@intel.com>,
"Wolman, Ayellet" <ayellet.wolman@intel.com>
Subject: Re: [RFC] Proposal to split Pkgs
Date: Tue, 29 Jan 2019 14:21:13 +0000 [thread overview]
Message-ID: <20190129142113.yxvgoogk2ucgk3aj@bivouac.eciton.net> (raw)
In-Reply-To: <734D49CCEBEEF84792F5B80ED585239D5BFF82D7@SHSMSX104.ccr.corp.intel.com>
Hi Ray,
First of all, thank you for restarting this discussion, and putting
the effort in for a POC.
On Tue, Jan 29, 2019 at 05:59:35AM +0000, Ni, Ray wrote:
> Hello,
> I'd like to propose to split today's BIG packages in following ways:
>
> ==============Overview =================
>
> 1. Separate Industry standard definitions from UEFI and PI interfaces.
> 2. Separate UEFI and PI interfaces from implementations.
> a. Separate UEFI and PI interfaces to different packages
> b. Separate PI PEI, DXE and MM phase interfaces to different packages
> 3. Separate different features into feature packages.
> Feature interface may be in the feature package to provide minimal
> common interface packages.
>
> The POC code is in https://github.com/jyao1/edk2/tree/ReOrg.
> It basically split the EDKII common code to three directories:
> Core/, Device/, and Feature/.
I'm not sure I like the 'Device' name, but that's not that important
at this stage - I like that this is split up the way it is.
I also think a lot of things currently under Feture/misc could be
broken out into additional subdirectories under Feature/.
> The code is in very early POC phase and only code in Core/ directory
> can pass the build.
> I would like to gather feedbacks through this RFC to see whether
> this splitting direction makes sense.
> Is there any other better ways of splitting?
> Or perhaps do not split in such a small granularity?
I think this would be my only negative(ish) feedback on the POC.
While it has the benefit of modules requiring to specify more
precisely which functionality they are pulling in...
...it means that they now need to list *everything*.
And with the mechanism by which I have seen Intel engineers make use
of PACKAGES_PATH in the past*, we end up with a bazillion packages
that need to be added individually to this variable for each build.
* (arguably how it was designed to be used - just not how I am
interested in using it)
It also means that we need *tons* of dummy .dsc files in order to run
through simple build tests.
My preference would be to push the packages back up to the top-level.
The split still makes sense, and allocating maintainers to sub-parts
can happen without a full-out redesign of the Maintainers.txt format.
(Which I will try to resurrect with a proposal over the next few weeks
anyway.)
> Or perhaps Mike's work to move lib-c content to edk2-libc repo,
> to move real platform code to edk2-platform repo is enough for
> now?
I think we need this further restructuring, and renaming. Not just for
splitting up maintainership duties (which as I mentioned in email to
Laszlo, we will still need to do with this change). But to make the
codebase more approachable.
> ==============More explanations =================
>
> ####There are 9 packages inside Core/ directory:
> 1. BasePkg
> Contains industry standard definitions (exclude UEFI and PI) and base
> libraries that non-UEFI and non-PI development can depend on.
> UEFI or PI development can also depend on this package.
> 2. UefiPkg
> Contains UEFI interfaces and libraries that UEFI driver-model driver
> development can depend on.
> 3. PiPeiPkg
> Contains PI interfaces and libraries for PEI phase that PEI module
> development can depend on.
> 4. PiDxePkg
> Contains PI interfaces and libraries for DXE phase that DXE module
> development can depend on.
Really happy with the above split.
> 5. PiMmPkg
> Contains PI interfaces and libraries for MM phase that MM/SMM
> module development can depend on.
How would/should this work relative to StandaloneMmPkg?
> 6. MdeModulePkg (TianoPkg? Name is still TBD)
Yes, this needs to be renamed. I don't object to the Tiano naming.
> Contains Tiano implementation specific interfaces and libraries.
> Developing modules for pure UEFI or PI should not depend on this package.
> 7. PeiFoundationPkg
> Contains the PEI foundation modules (PeiCore and DxeIpl) and supported
> libraries.
> 8. DxeFoundationPkg
> Contains the DXE foundation modules (DxeCore and RuntimeDxe) and
> supported libraries.
> 9. SmmFoundationPkg
> Contains the SMM foundation modules (SmmCore, SmmIpl and
> SmmCommunicationBuffer) and supported libraries.
So as a feedback on the whole, this would somewhat help with
addressing the confusion caused by PI defining interfaces named EFI_*
(which we really ought to address on the spec level at some point).
> These packages are positioned in different layers. The package in higher
> layer depends on all packages that are in lower layers.
> Layer 0: BasePkg.
> Layer 1: UefiPkg.
This looks a bit weird though - surely PI components should not have
dependencies on UEFI components? I presume this is what Laszlo
referred to with regards to Base.h and the thread from earlier this
month.
> Layer 2: PiPeiPkg
> Layer 3: PiDxePkg
> Layer 4: PiMmPkg
> Layer 5: MdeModulePkg (TianoPkg?)
>
> ####All other modules are put to small packages under Device/ or Feature/.
>
> ============== Benefit of this proposal =================
>
> This helps to reduce the size of each package, especially the very BIG
> MdeModulePkg which contains almost all edk2 modules (except
> CPU, network, etc). So platform can use git sparse checkout feature
> to only clone the needed code still in package granularity.
> This also helps to separate the code maintenance to more expert
> developers. MdeModulePkg is just too huge to be maintained by 2 or 3
> developers.
So, I technically don't care about any of the above, but I still
support this proposal (given some additional tweaks). To me, this is
all about reflecing boundaries between specification and
implementation, as well as boundaries between specfications.
Best Regards,
Leif
next prev parent reply other threads:[~2019-01-29 14:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-29 5:59 [RFC] Proposal to split Pkgs Ni, Ray
2019-01-29 11:11 ` Laszlo Ersek
2019-01-29 11:39 ` Leif Lindholm
2019-01-29 13:13 ` Ni, Ray
2019-01-29 13:28 ` Laszlo Ersek
2019-01-29 14:21 ` Leif Lindholm [this message]
2019-01-31 7:12 ` Ni, Ray
2019-01-31 7:51 ` Ard Biesheuvel
2019-01-31 8:02 ` Ni, Ray
2019-01-31 13:09 ` Andrew Fish
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=20190129142113.yxvgoogk2ucgk3aj@bivouac.eciton.net \
--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