# Build the DF-2532 harness kernel module.
# This includes the real xdisk.c and adds a trigger sysctl.
# Must be built with the kernel's opt_global.h for INVARIANTS.

KMOD=   df2532_harness
SRCS=   df2532_harness.c

# xdisk.c needs to be in the include path
CFLAGS+= -I/usr/src/sys/dev/disk/xdisk
# Inherit INVARIANTS and other kernel options from the built kernel
CFLAGS+= -I/usr/obj/usr/src/sys/X86_64_GENERIC
CFLAGS+= -DINVARIANTS

.include <bsd.kmod.mk>
