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