DragonFlyBSD Kernel Audit
DF-2942 / build.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-2941/DF-2942 sysref layer probe -- build in the DragonFly guest.
# Copies sysref_probe.c + Makefile to /root/sysref_probe and runs make.
set -e
cd "$(dirname "$0")"
D=dfbsd-qemu
ssh -F $D/config -o ConnectTimeout=8 -o BatchMode=yes dfbsd 'mkdir -p /root/sysref_probe'
scp -F $D/config -o ConnectTimeout=8 -o BatchMode=yes sysref_probe.c Makefile dfbsd:/root/sysref_probe/
ssh -F $D/config -o ConnectTimeout=8 -o BatchMode=yes dfbsd \
    'cd /root/sysref_probe && make obj 2>/dev/null; make depend 2>/dev/null; make' 2>&1