Here's the second round of patches to allow building MdeModulePkg on non x86 architectures.
We need this to successfully run the CI for RISC-V.
The commits are also here: https://github.com/changab/edk2-staging-riscv/commits/MdeModulePkg-cross-for-edk2
Yes, it's in our staging repo but the patches and branch are based on edk2 master.
By the way, how hasn't this caused any problems for ARM?
I've built this with the X64 and RISCV64 GCC toolchains:
build -a X64 -p MdeModulePkg/MdeModulePkg.dsc -t GCC5
build -a RISCV64 -p MdeModulePkg/MdeModulePkg.dsc -t GCC5
Building on RISCV64 needs Abners patches: https://edk2.groups.io/g/devel/message/54725
Daniel Schaefer (3):
MdeModulePkg: Restrict libraries using SMM to x86
MdeModulePkg: Set PcdDxeIplSwitchToLongMode false on non-x86
MdeModulePkg: Use CopyMem instead of GUID assignment
MdeModulePkg/MdeModulePkg.dec | 3 +++
MdeModulePkg/MdeModulePkg.dsc | 9 ++++++---
MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c | 2 +-
3 files changed, 10 insertions(+), 4 deletions(-)
Cc: Abner Chang <abner.chang@hpe.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Gilbert Chen <gilbert.chen@hpe.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
--
2.25.0
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#55162): https://edk2.groups.io/g/devel/message/55162
Mute This Topic: https://groups.io/mt/71671268/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-