DF-3173 / build.sh
#!/bin/sh # build.sh — build the DF-3173 harness inside the DragonFly guest. # Sources are deployed to /root/poc/df3173 by the host-side runner; # this script runs ON THE GUEST (root). set -e cd /root/poc/df3173 # out-of-tree kmod pattern proven on this guest (see DF-2848/DF-3169): ln -sf /usr/obj/usr/src/sys/X86_64_GENERIC/device_if.h . ln -sf /usr/obj/usr/src/sys/X86_64_GENERIC/bus_if.h . make -m /usr/share/mk SYSDIR=/usr/src/sys cc -O2 -o fake_daemon3173 fake_daemon3173.c && cc -O2 -pthread -o pending_stat pending_stat.c ls -l df3173_race.ko fake_daemon3173 echo BUILD-OK |