Don't build the old USB driver modules when WANT_USB4BSD is set.
Also, do some cleanup in some of the Makefiles, while I'm here.
raid \
serial \
sound \
- usbmisc \
video \
virtual
+.if !defined(WANT_USB4BSD)
+SUBDIR+=usbmisc
+.endif
+
.for dir in ${SUBDIR}
.if empty(DEV_SUPPORT:M${dir}) && empty(DEV_SUPPORT:M${dir}/*)
SUBDIR:= ${SUBDIR:N${dir}}
-# Makefile - module build for nata modules
-#
-# $DragonFly: src/sys/dev/disk/nata/Makefile,v 1.4 2006/12/06 20:20:51 tgen Exp $
-
-#SUBDIR= nata natacard natadisk nataisa natapci natapicam natapicd natapifd \
-# natapist nataraid natausb
-# XXX TGEN These are ready for more heavy testing, the others are still largely untested.
SUBDIR= nata natacard natadisk nataisa natapci natapicd natapifd \
- natapist natapicam natausb
+ natapist natapicam
+#SUBDIR+= nataraid
+
+.if !defined(WANT_USB4BSD)
+SUBDIR+= natausb
+.endif
.include <bsd.subdir.mk>
-SUBDIR= an age alc ale ar ath aue axe bce bfe bge \
- cue dc ed em ep et \
- fwe fxp ic iwi iwn jme kue lge lgue lnc \
+SUBDIR= an age alc ale ar ath bce bfe bge \
+ dc ed em ep et \
+ fwe fxp ic iwi iwn jme lge lnc \
mii_layer my msk mxge ndis nfe nge pcn \
- ral re rl rue sbni sbsh sf sis sk sln sr ste stge ti tl tx txp \
+ ral re rl sbni sbsh sf sis sk sln sr ste stge ti tl tx txp \
vge vr vx wb wi wpi xe xl ig_hal emx ae igb ixgbe bnx
# XXX need to be updated to the new net80211 stack
-# SUBDIR= acx bwi iwl rtw rum ural
+# SUBDIR+= acx bwi iwl rtw
+# .endif
+#
+# ...and to the new USB stack
+# .if !defined(WANT_USB4BSD)
+# SUBDIR+= rum ural
+# .endif
+
+.if !defined(WANT_USB4BSD)
+SUBDIR+=aue axe cue kue lgue rue
+.endif
.include <bsd.subdir.mk>
# $FreeBSD: src/sys/modules/if_ndis/Makefile,v 1.6 2005/09/27 18:10:35 mlaier Exp $
KMOD= if_ndis
-SRCS= if_ndis.c if_ndis_pci.c if_ndis_pccard.c if_ndis_usb.c
+SRCS= if_ndis.c if_ndis_pci.c if_ndis_pccard.c
SRCS+= device_if.h bus_if.h pci_if.h card_if.h
-SRCS+= opt_usb.h
+
+.if !defined(WANT_USB4BSD)
+SRCS+= if_ndis_usb.c opt_usb.h
+.endif
.include <bsd.kmod.mk>
# $FreeBSD: src/sys/modules/sound/driver/Makefile,v 1.16.2.2 2007/05/13 21:11:40 ariff Exp $
-# $DragonFly: src/sys/dev/sound/driver/Makefile,v 1.4 2007/06/16 19:48:04 hasso Exp $
-.if ${MACHINE_ARCH} == "sparc64"
-SUBDIR = audiocs es137x
-.else
SUBDIR = als4000 ad1816 atiixp cmi cs4281 csa ds1 emu10k1 envy24
SUBDIR += envy24ht es137x ess fm801 hda ich maestro maestro3 mss neomagic
SUBDIR += sb16 sb8 sbc solo spicds t4dwave via8233 via82c686 vibes
-SUBDIR += driver uaudio
+SUBDIR += driver
+
+.if !defined(WANT_USB4BSD)
+SUBDIR += uaudio
.endif
.include <bsd.subdir.mk>
KMOD= ndis
SRCS= subr_pe.c subr_ndis.c subr_hal.c subr_ntoskrnl.c kern_ndis.c
-SRCS+= kern_windrv.c subr_usbd.c
+SRCS+= kern_windrv.c
SRCS+= device_if.h bus_if.h pci_if.h
-SRCS+= opt_usb.h
.if ${MACHINE_ARCH} == "x86_64"
SRCS+= winx64_wrap.S
SRCS+= winx32_wrap.S
.endif
+.if !defined(WANT_USB4BSD)
+SRCS+= subr_usbd.c opt_usb.h
+.endif
+
.include <bsd.kmod.mk>