HomeFreeBSD

Copy needed include files from EDK2. This is a minimal set gleened

Description

Copy needed include files from EDK2. This is a minimal set gleened
from 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, all
MdePkg/Includes is ~7MB and this minimal set is ~1.3MB.

Sponsored by: Netflix

Details

Provenance
impAuthored on
Parents
rS314889: Avoid dereferencing unintialized elements in the error path.
Branches
Unknown
Tags
Unknown