⬢ DragonFlyBSD Kernel Audit
DF-2306 / build_fix.sh
← back to finding ↓ download raw
#!/bin/sh
# build_fix.sh -- rebuild the SAME harness kernel with the combined
# fix.diff (three independent hunks, fwohci_pci.c only) applied to the
# guest /usr/src scratch copy.  fwpci_harness.c #includes fwohci_pci.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