tpm20: Bring in the edk2 includes for TPM 2.0 supportBring these in from edk2-stable202502. They will be used in aforthcoming TPM 2.0 support code.Sponsored by: Netflix
edk2: Pull in more headers from edk2Pull in more headers from edk2-stable202502 that will be needed as wetransition the building to using only EDK2 headers in the boot loader,finally ditching our
edk2: Pull in more headers from edk2Pull in more headers from edk2-stable202502 that will be needed as wetransition the building to using only EDK2 headers in the boot loader,finally ditching our home-grown ones from a super-obsolete SDK from theearly days of EFI.Note to future importers: My apologies if this not being a mege commitcauses problems. Except for ProcessorBind.h, all files should be exactlyas we got them from EDK2, and if that breaks the build on futureimports, we should adjust our code.Sponsored by: NetflixDifferential Revision: https://reviews.freebsd.org/D53654
show more ...
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
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