1*7814aaf5SMitchell HorneWe try to maintain the minimal set of headers required to build, as the full 2*7814aaf5SMitchell Horneset of files from MdePkg is quite large (10MB at the time of writing). To do 3*7814aaf5SMitchell Hornethis when performing an upgrade, execute the following: 4*7814aaf5SMitchell Horne 5*7814aaf5SMitchell Horne# Generate list of the headers needed to build 6*7814aaf5SMitchell Hornecp -r ../vendor/edk2/dist/MdePkg/Include sys/contrib/edk2 7*7814aaf5SMitchell Hornecd lib/libefivar 8*7814aaf5SMitchell Hornemake 9*7814aaf5SMitchell Hornepushd `make -V .OBJDIR` 10*7814aaf5SMitchell Hornecat .depend*.o | grep sys/contrib | cut -d' ' -f 3 | 11*7814aaf5SMitchell Horne sort -u | sed -e 's=/full/path/sys/contrib/edk2/==' > /tmp/xxx 12*7814aaf5SMitchell Hornepopd 13*7814aaf5SMitchell Horne 14*7814aaf5SMitchell Horne# Merge the needed files 15*7814aaf5SMitchell Hornecd ../../sys/contrib/edk2 16*7814aaf5SMitchell Hornesvn revert -R . 17*7814aaf5SMitchell Hornefor i in `cat /tmp/xxx`; do 18*7814aaf5SMitchell Horne svn merge -c VendorRevision svn+ssh://repo.freebsd.org/base/vendor/edk2/dist/MdePkg/$i $i 19*7814aaf5SMitchell Hornedone 20*7814aaf5SMitchell Hornesvn merge -c VendorRevision \ 21*7814aaf5SMitchell Horne svn+ssh://repo.freebsd.org/base/vendor/edk2/dist/MdePkg/MdePkg.dec MdePkg.dec 22