From 8b3bf7f98b95f8b2f8c8315d93fcac0f636364d9 Mon Sep 17 00:00:00 2001 From: skrll Date: Thu, 8 Aug 2019 16:06:14 +0000 Subject: [PATCH] Build an if_udav module (untested) --- distrib/sets/lists/modules/mi | 4 +++- sys/modules/Makefile | 3 ++- sys/modules/if_udav/Makefile | 11 +++++++++++ sys/modules/if_udav/if_udav.ioconf | 10 ++++++++++ 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 sys/modules/if_udav/Makefile create mode 100644 sys/modules/if_udav/if_udav.ioconf diff --git a/distrib/sets/lists/modules/mi b/distrib/sets/lists/modules/mi index 6f0bf91fb35b..21d92d02e1bc 100644 --- a/distrib/sets/lists/modules/mi +++ b/distrib/sets/lists/modules/mi @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.123 2019/07/31 09:13:16 mrg Exp $ +# $NetBSD: mi,v 1.124 2019/08/08 16:06:14 skrll Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -232,6 +232,8 @@ ./@MODULEDIR@/if_tap/if_tap.kmod base-kernel-modules kmod ./@MODULEDIR@/if_tun base-kernel-modules kmod ./@MODULEDIR@/if_tun/if_tun.kmod base-kernel-modules kmod +./@MODULEDIR@/if_udav base-kernel-modules kmod +./@MODULEDIR@/if_udav/if_udav.kmod base-kernel-modules kmod ./@MODULEDIR@/if_ure base-kernel-modules kmod ./@MODULEDIR@/if_ure/if_ure.kmod base-kernel-modules kmod ./@MODULEDIR@/if_vioif base-obsolete obsolete diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 7b5d10823a7d..2f0364beb45c 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.223 2019/07/31 09:13:16 mrg Exp $ +# $NetBSD: Makefile,v 1.224 2019/08/08 16:06:14 skrll Exp $ .include @@ -89,6 +89,7 @@ SUBDIR+= if_stf SUBDIR+= if_strip SUBDIR+= if_tap tap SUBDIR+= if_tun tun +SUBDIR+= if_udav SUBDIR+= if_ure SUBDIR+= if_vlan SUBDIR+= iic diff --git a/sys/modules/if_udav/Makefile b/sys/modules/if_udav/Makefile new file mode 100644 index 000000000000..73e269505100 --- /dev/null +++ b/sys/modules/if_udav/Makefile @@ -0,0 +1,11 @@ +# $NetBSD: Makefile,v 1.1 2019/08/08 16:06:14 skrll Exp $ + +.include "../Makefile.inc" + +.PATH: ${S}/dev/usb + +KMOD= if_udav +IOCONF= if_udav.ioconf +SRCS= if_udav.c + +.include diff --git a/sys/modules/if_udav/if_udav.ioconf b/sys/modules/if_udav/if_udav.ioconf new file mode 100644 index 000000000000..ee29cda3a3ee --- /dev/null +++ b/sys/modules/if_udav/if_udav.ioconf @@ -0,0 +1,10 @@ +# $NetBSD: if_udav.ioconf,v 1.1 2019/08/08 16:06:14 skrll Exp $ + +ioconf udav + +include "conf/files" +include "dev/usb/files.usb" + +pseudo-root usbdevif* + +udav* at usbdevif?