DF-2301 / build_fix.sh
#!/bin/sh # build_fix.sh -- rebuild the SAME harness kernel with the combined # fix.diff (four independent hunks, fwohci.c only) applied to the # guest /usr/src scratch copy. fwohci_harness.c #includes fwohci.c, # so only that object recompiles + relink. # # Run as: sh /root/fwo/build_fix.sh set -e cd /root/fwo cp fix.diff /usr/src/ cd /usr/src patch --dry-run -p1 < fix.diff >/dev/null && patch -p1 < fix.diff cd /usr/src make -j6 nativekernel KERNCONF=FWO make installkernel KERNCONF=FWO echo BUILD_FIX_OK |