DF-0003 / build.sh
#!/bin/sh # DF-0003 build: build both kld modules (trigger + control) via bsd.kmod.mk. # Requires the kernel source headers installed (run setup_env.sh once first). # sh setup_env.sh && sh build.sh set -eu cd "$(dirname "$0")" SYSDIR="${SYSDIR:-/usr/src/sys}" echo ">>> building trigger (poc_negunit.ko, unit=-2)" make SYSDIR="$SYSDIR" echo ">>> building control (poc_ctrl.ko, unit=0)" make -f Makefile.ctrl SYSDIR="$SYSDIR" echo "BUILD_OK" ls -l poc_negunit.ko poc_ctrl.ko |