DragonFlyBSD Kernel Audit
DF-1337 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
#!/bin/sh
# DF-1337 fix compile-validation. Builds the sound module against the patched in-guest source.
# Run on the audit guest as root after `patch -p1 < fix.diff` in /usr/src.
set -e
cd /usr/src
patch -p1 --forward < /root/fix.diff || true
cd /usr/src/sys/dev/sound/sound
KERNCONF=X86_64_GENERIC SYSDIR=/usr/src/sys make -m /usr/src/share/mk
echo "BUILD_OK rc=$?"