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
show more ...
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