DF-2813 / build.sh
#!/bin/sh # DF-2813 - build the ochang KLD + driver on the guest. # Run from the host: ./build.sh (assumes files already scp'd to ~/ochang) # Everything runs on the guest; logs land in build.log on the host side. set -e cd "$HOME/ochang" printf 'KMOD=ochang\nSRCS=ochang.c\n\n.include <bsd.kmod.mk>\n' > Makefile make cc -O2 -o ochang_drv ochang_drv.c ls -l ochang.ko ochang_drv |