edk2: Merge edk2-stable202502Merge in edk2 stable202502 to pick up latest definitions. This is asubset import, as outlined in FREEBSD-update, since the full thing hasonly gotten larger.I also h
edk2: Merge edk2-stable202502Merge in edk2 stable202502 to pick up latest definitions. This is asubset import, as outlined in FREEBSD-update, since the full thing hasonly gotten larger.I also had to disable building of libefivar for i386 build. Theprecondition for EDK2 isn't met by our ABI there. And we can't callEFIRT there anyway. We normally don't build the EFI binaries for i386anyway. We likely never should have built this, but disabling onelibrary in 32-bit mode is hard.I also had to ifdef the L" and L' asserts on _STANDALONE. In the bootloader build enviornment, we met these conditions. All the other placeswe do not. But we also are careful to massage the code so that we do notdepend on these preconditions.Sponsored by: Netflix
show more ...
LoongArch: sys/contrib/edk2: add supportcopy from upstream:https://github.com/tianocore/edk2/tree/edk2-stable202408commit: https://github.com/tianocore/edk2/commit/cd24eb578bb77e6a55d37c2e9afef4
LoongArch: sys/contrib/edk2: add supportcopy from upstream:https://github.com/tianocore/edk2/tree/edk2-stable202408commit: https://github.com/tianocore/edk2/commit/cd24eb578bb77e6a55d37c2e9afef4a6814a82acReviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/1624
Update edk2 headers to stable202005We use these to compile libefivar. The particular motivation for this update isthe inclusion of the RISC-V machine definitions that allow us to build thelibrary
Update edk2 headers to stable202005We use these to compile libefivar. The particular motivation for this update isthe inclusion of the RISC-V machine definitions that allow us to build thelibrary on the platform. This support could easily have been submitted as asmall local diff, but the timing of the release coincided with this work, andit has been over 3 years since these sources were initially imported.Note that this comes with a license change from regular BSD 2-clause to theBSD+Patent license. This has been approved by core@ for this particularproject [1].As with the original import, we retain only the subset of headers that weactually need to build libefivar. I adapted imp@'s process slightly for thisupdate: # Generate list of the headers needed to build cp -r ../vendor/edk2/dist/MdePkg/Include sys/contrib/edk2 cd lib/libefivar make pushd `make -V .OBJDIR` cat .depend*.o | grep sys/contrib | cut -d' ' -f 3 | sort -u | sed -e 's=/full/path/sys/contrib/edk2/==' > /tmp/xxx popd # Merge the needed files cd ../../sys/contrib/edk2 svn revert -R . for i in `cat /tmp/xxx`; do svn merge -c VendorRevision svn+ssh://repo.freebsd.org/base/vendor/edk2/dist/MdePkg/$i $i done svn merge -c VendorRevision svn+ssh://repo.freebsd.org/base/vendor/edk2/dist/MdePkg/MdePkg.dec MdePkg.dec[1] https://www.freebsd.org/internal/software-license.html
Copy needed include files from EDK2. This is a minimal set gleenedfrom the .depend files after the build: cp -r ../vendor/edk2/MdePkg/Include sys/contrib/edk2 cd lib/libefivar make pushd `make -
Copy needed include files from EDK2. This is a minimal set gleenedfrom the .depend files after the build: cp -r ../vendor/edk2/MdePkg/Include sys/contrib/edk2 cd lib/libefivar make pushd `make -V .OBJDIR` cat .depend*.o | grep sys/contrib | cut -d' ' -f 3 | sort -u | sed -e 's=/full/path/sys/contrib/edk2/==' > /tmp/xxx popd cd ../../sys/contrib/edk2 rm -rf Include for i in `cat /tmp/xxx`; do svn cp svn+ssh://repo.freebsd.org/base/vendor/edk2/dist/MdePkg/$i $i done svn cp svn+ssh://repo.freebsd.org/base/vendor/edk2/dist/MdePkg/MdePkg.dec .The original EDK2 repo is ~265MB, the MdePkg is ~23MB, allMdePkg/Includes is ~7MB and this minimal set is ~1.3MB.Sponsored by: Netflix