1086 / build.sh
#!/bin/sh # DF-1084 (+DF-1086 shared harness) build. # Links against the REAL kernel parser sys/bus/firewire/fwcrom.c (TEST mode). # Must be built on the DragonFly guest (needs /usr/src headers + cc). set -e cd "$(dirname "$0")" # Compile the real kernel parser with its demo main() renamed out of the way. cc -DTEST -Dmain=fw_unused_main -Isys -I/usr/src/sys -I/usr/src \ -c /usr/src/sys/bus/firewire/fwcrom.c -o fwcrom.o cc -DTEST -Isys -I/usr/src/sys -I/usr/src -c poc_firewire.c -o poc_firewire.o cc -DTEST -o poc_firewire poc_firewire.o fwcrom.o echo "built: poc_firewire" |