summaryrefslogtreecommitdiff
path: root/sys/modules/usb
diff options
context:
space:
mode:
authorAndriy Voskoboinyk <avos@FreeBSD.org>2016-02-22 00:48:53 +0000
committerAndriy Voskoboinyk <avos@FreeBSD.org>2016-02-22 00:48:53 +0000
commit7873b2abd6d9c5ad78f084c09e4159389dbb4339 (patch)
treec8c788415b37d87cf57f79d163e96bd6bcce3b94 /sys/modules/usb
parentfe3232f39a69ffce51ff4b866661418b8924140f (diff)
Notes
Diffstat (limited to 'sys/modules/usb')
-rw-r--r--sys/modules/usb/Makefile3
-rw-r--r--sys/modules/usb/urtwn/Makefile9
2 files changed, 9 insertions, 3 deletions
diff --git a/sys/modules/usb/Makefile b/sys/modules/usb/Makefile
index 8bb355ba2beb..b236d04b139c 100644
--- a/sys/modules/usb/Makefile
+++ b/sys/modules/usb/Makefile
@@ -47,7 +47,7 @@ SUBDIR = usb
SUBDIR += ${_dwc_otg} ehci ${_musb} ohci uhci xhci ${_uss820dci} ${_at91dci} \
${_atmegadci} ${_avr32dci} ${_rsu} ${_rsufw} ${_saf1761otg}
SUBDIR += ${_rum} ${_run} ${_runfw} ${_uath} upgt usie ural ${_zyd} ${_urtw}
-SUBDIR += ${_urtwn} ${_urtwnfw}
+SUBDIR += urtwn ${_urtwnfw}
SUBDIR += atp uhid ukbd ums udbp ufm uep wsp ugold uled
SUBDIR += ucom u3g uark ubsa ubser uchcom ucycom ufoma uftdi ugensa uipaq ulpt \
umct umcs umodem umoscom uplcom uslcom uvisor uvscom
@@ -70,7 +70,6 @@ _rum= rum
_uath= uath
_zyd= zyd
_kue= kue
-_urtwn= urtwn
_urtwnfw= urtwnfw
_run= run
_runfw= runfw
diff --git a/sys/modules/usb/urtwn/Makefile b/sys/modules/usb/urtwn/Makefile
index 656fab93a330..59fa910aa82c 100644
--- a/sys/modules/usb/urtwn/Makefile
+++ b/sys/modules/usb/urtwn/Makefile
@@ -2,9 +2,16 @@
.PATH: ${.CURDIR}/../../../dev/usb/wlan
+.include <src.opts.mk>
+
KMOD = if_urtwn
SRCS = if_urtwn.c if_urtwnreg.h if_urtwnvar.h \
bus_if.h device_if.h \
- opt_bus.h opt_usb.h opt_wlan.h usb_if.h usbdevs.h
+ opt_bus.h opt_urtwn.h opt_usb.h opt_wlan.h usb_if.h usbdevs.h
+
+.if ${MK_SOURCELESS_UCODE} == "no"
+opt_urtwn.h:
+ @echo "#define URTWN_WITHOUT_UCODE 1" > ${.TARGET}
+.endif
.include <bsd.kmod.mk>