# hci_sock harness KLD -- builds the VERBATIM production netbt socket
# layer (plus its engine) against stubbed L2CAP/SCO/RFCOMM layers.
#
# hci_socket.c / hci_event.c / hci_link.c / hci_misc.c / hci_unit.c /
# bt_input.c / bt_proto.c are copied unmodified from /usr/src/sys/netbt
# by build.sh (md5s recorded).  bt_proto.c registers the real
# AF_BLUETOOTH domain so userland socket(2) reaches production code.

SYSDIR?=	/usr/src/sys
KMOD=		hci_sock_harness
SRCS=		harness.c sock_stub.c stub.h \
		hci_socket.c hci_event.c hci_link.c hci_misc.c \
		hci_unit.c bt_input.c bt_proto.c \
		device_if.h bus_if.h
KCFLAGS+=	-I${SYSDIR} -I${.CURDIR} -I${SYSDIR}/netbt
NOMAN=		yes

.include "${SYSDIR}/conf/kmod.mk"
