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