DragonFlyBSD Kernel Audit
DF-1340 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
#!/bin/sh
# DF-1340 fix compile-validation. Builds the radeon 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/drm/radeon
KERNCONF=X86_64_GENERIC SYSDIR=/usr/src/sys make -m /usr/src/share/mk
echo "BUILD_OK rc=$?"