From: "Nate DeSimone" <nathaniel.l.desimone@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
"michael.kubacki@outlook.com" <michael.kubacki@outlook.com>
Cc: Leif Lindholm <leif@nuviainc.com>,
Laszlo Ersek <lersek@redhat.com>,
"Ard Biesheuvel" <ard.biesheuvel@arm.com>,
"Ni, Ray" <ray.ni@intel.com>,
"Chaganty, Rangasai V" <rangasai.v.chaganty@intel.com>,
"Dong, Eric" <eric.dong@intel.com>,
"Bi, Dandan" <dandan.bi@intel.com>,
"Kinney, Michael D" <michael.d.kinney@intel.com>,
"Steele, Kelly" <kelly.steele@intel.com>,
"Sun, Zailiang" <zailiang.sun@intel.com>,
"Qian, Yi" <yi.qian@intel.com>,
"Chiu, Chasel" <chasel.chiu@intel.com>,
"Agyeman, Prince" <prince.agyeman@intel.com>,
"Feng, Bob C" <bob.c.feng@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Abner Chang <abner.chang@hpe.com>,
"Daniel Schaefer" <daniel.schaefer@hpe.com>,
Gilbert Chen <gilbert.chen@hpe.com>,
Christian Walter <christian.walter@9elements.com>
Subject: Re: [edk2-devel] [edk2-platforms] [RFC] Compatibility Expectations in edk2-platforms
Date: Wed, 7 Oct 2020 04:19:19 +0000 [thread overview]
Message-ID: <MWHPR1101MB216032AA0EC48FAB74100E5BCD0A0@MWHPR1101MB2160.namprd11.prod.outlook.com> (raw)
In-Reply-To: <MWHPR07MB344057997A0214CC67473C00E90C0@MWHPR07MB3440.namprd07.prod.outlook.com>
Hey Michael,
On 10/5/20, 3:36 PM, Michael Kubacki <michael.kubacki@outlook.com> wrote:
>
> 1. Inconsistent maintainer support
> * Some packages currently do not build. Some packages are not getting
> updated often.
>
> * Example: Last week I had to update Vlv2TbltDevicePkg which did not
> build.
> * Example: Many packages only document support for old toolchains.
100% agreed here.
>
> 2. Inconsistent toolchain support
>
> To build these according to instruction, a developer needs to install Visual
> Studio dating back to 2015 (though it is 2020), and multiple versions of iASL,
> NASM, a separate host OS for Linux/Windows builds, etc.
IMHO, the best way forward would be to finish the EDK II native clang port that Liming started some time ago. This would need to include robust support for Windows, Linux, and Mac host systems. From what I remember the last status update was issues with stability of the LLVM linker's support for PE/COFF output.
Otherwise build reproducibility will always be a problem since the binary generated will be different depending on which OS/compiler the developer was using at the time. The coreboot community handles this issue by only supporting GCC, which I think is inappropriate for TianoCore since Windows ports of GCC differ greatly from Linux versions. While I think the goal of supporting many different C toolchains is admirable and definitely appropriate for edk2 core code... for edk2-platforms I think it would be better to have everyone agree on a single cross-platform toolchain; at least for x86 and ARM since clang supports those architectures well (maybe other architectures depending on the clang's maturity.)
>
> 3. Inconsistent build requirements
>
> Many builds use the "build" command. Others have script wrappers with
> unique parameters. Platforms are free to choose what they do and do not
> support and developers have to figure it out.
We solved that for MinPlatform based boards with build_bios.py, but agreed that that at an overall project level this is still an issue. I believe Bob and Liming were working on adding extensibility to BaseTools needed for "build" to work everywhere, but I'm not sure what the status of that work is.
>
> 4. Lack of build health indicators
>
> Basically, there is no public CI across platforms. It is not clear exactly what
> platform builds are broken, what configurations they are broken against,
> how long they have been broken, etc.
Public CI seems like a great idea. Public automated testing would also be awesome. I believe 9elements has been working on building a pool of hardware for automated testing of Open System Firmware, maybe we should check and see if they would be interested in supporting automated testing for TianoCore. We would also need to see what the intersection is between what they have in their pool and what boards are supported in edk2-platforms.
> Without such support, I believe platforms can only have a dependency on
> edk2 (not vice versa). Maintainers move their edk2 pointer when they have
> verified that their platform properly integrates the latest changes. This is
> relatively common in relationships with package-based dependencies and
> how this is typically handled outside edk2-platforms. I believe this is
> reasonable even with public CI in place unless maintainers understand and
> accept the challenges and additional support that is involved with being on
> edk2/master.
Coreboot handles this problem by auditing the how good the maintenance is of boards over time. If a given board becomes stale, then the board becomes a candidate for getting deleted from master and moved to a legacy branch. Sometimes entire technologies are dropped, for example FSP v1.0 is only supported up to coreboot 4.11, for that reason there is a long-lived 4.11_branch in coreboot git to maintain platforms dependent on FSP v1.0 binaries.
I think we need some sort of deprecation process for edk2-platforms as well because as you note, the Bay Trail Minnow Max is not receiving particularly good maintenance at this point. A similar issue happened with PurleyOpenBoardPkg last year and you actually sent the patch series to delete it.
>
> I just wanted to give my observation of some recent challenges and see if
> the community can align on some practices to help simplify edk2-platforms
> integration and testing.
>
> Thanks,
> Michael
>
>
>
>
next prev parent reply other threads:[~2020-10-07 4:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-05 22:36 [edk2-platforms] [RFC] Compatibility Expectations in edk2-platforms Michael Kubacki
2020-10-06 6:20 ` Laszlo Ersek
2020-10-07 4:19 ` Nate DeSimone [this message]
2020-10-07 5:01 ` [edk2-devel] " Michael Kubacki
2020-10-07 5:42 ` Andrew Fish
2020-10-13 2:29 ` 回复: " gaoliming
2020-10-16 0:55 ` Nate DeSimone
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=MWHPR1101MB216032AA0EC48FAB74100E5BCD0A0@MWHPR1101MB2160.namprd11.prod.outlook.com \
--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