17d0d268bSAndrew Thompson# 27d0d268bSAndrew Thompson# $FreeBSD$ 37d0d268bSAndrew Thompson# 47d0d268bSAndrew Thompson# Copyright (c) 2008 Hans Petter Selasky. All rights reserved. 57d0d268bSAndrew Thompson# 67d0d268bSAndrew Thompson# Redistribution and use in source and binary forms, with or without 77d0d268bSAndrew Thompson# modification, are permitted provided that the following conditions 87d0d268bSAndrew Thompson# are met: 97d0d268bSAndrew Thompson# 1. Redistributions of source code must retain the above copyright 107d0d268bSAndrew Thompson# notice, this list of conditions and the following disclaimer. 117d0d268bSAndrew Thompson# 2. Redistributions in binary form must reproduce the above copyright 127d0d268bSAndrew Thompson# notice, this list of conditions and the following disclaimer in the 137d0d268bSAndrew Thompson# documentation and/or other materials provided with the distribution. 147d0d268bSAndrew Thompson# 157d0d268bSAndrew Thompson# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 167d0d268bSAndrew Thompson# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 177d0d268bSAndrew Thompson# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 187d0d268bSAndrew Thompson# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 197d0d268bSAndrew Thompson# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 207d0d268bSAndrew Thompson# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 217d0d268bSAndrew Thompson# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 227d0d268bSAndrew Thompson# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 237d0d268bSAndrew Thompson# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 247d0d268bSAndrew Thompson# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 257d0d268bSAndrew Thompson# SUCH DAMAGE. 267d0d268bSAndrew Thompson# 277d0d268bSAndrew Thompson 284a47892cSRobert Millan.include <bsd.own.mk> 294a47892cSRobert Millan 304a47892cSRobert Millan# Modules that include binary-only blobs of microcode should be selectable by 314a47892cSRobert Millan# MK_SOURCELESS_UCODE option (see below). 324a47892cSRobert Millan 337d0d268bSAndrew ThompsonSUBDIR = usb 34*e8052eb4SHans Petter SelaskySUBDIR += ${_dwc_otg} ehci ${_musb} ohci uhci xhci ${_uss820dci} ${_at91dci} ${_atmegadci} ${_avr32dci} 354a47892cSRobert MillanSUBDIR += ${_rum} run ${_uath} upgt usie ural ${_zyd} ${_urtw} 36d9d7ab85SGleb SmirnoffSUBDIR += atp uhid ukbd ums udbp ufm uep 37b20adc2bSAndrew ThompsonSUBDIR += ucom u3g uark ubsa ubser uchcom ucycom ufoma uftdi ugensa uipaq ulpt \ 38884a2a69SHans Petter Selasky umct umcs umodem umoscom uplcom uslcom uvisor uvscom 394a47892cSRobert MillanSUBDIR += uether aue axe cdce cue ${_kue} mos rue udav uhso ipheth 407d0d268bSAndrew ThompsonSUBDIR += usfs umass urio 417d0d268bSAndrew ThompsonSUBDIR += quirk template 427d0d268bSAndrew Thompson 434a47892cSRobert Millan.if ${MK_SOURCELESS_UCODE} != "no" 444a47892cSRobert Millan_rum= rum 454a47892cSRobert Millan_uath= uath 464a47892cSRobert Millan_zyd= zyd 474a47892cSRobert Millan_kue= kue 484a47892cSRobert Millan.endif 494a47892cSRobert Millan 50c09808d0SWarner Losh.if ${MACHINE_CPUARCH} == "amd64" 5118b223feSWeongyo Jeong_urtw= urtw 5218b223feSWeongyo Jeong.endif 5318b223feSWeongyo Jeong 54c09808d0SWarner Losh.if ${MACHINE_CPUARCH} == "arm" 557d0d268bSAndrew Thompson_at91dci= at91dci 567d0d268bSAndrew Thompson_atmegadci= atmegadci 57*e8052eb4SHans Petter Selasky_dwc_otg= dwc_otg 58*e8052eb4SHans Petter Selasky_musb= musb 59*e8052eb4SHans Petter Selasky_uss820dci= uss820dci 607d0d268bSAndrew Thompson.endif 617d0d268bSAndrew Thompson 62c09808d0SWarner Losh.if ${MACHINE_CPUARCH} == "i386" 6318b223feSWeongyo Jeong_urtw= urtw 6418b223feSWeongyo Jeong.endif 6518b223feSWeongyo Jeong 662e141748SHans Petter Selasky.if ${MACHINE_CPUARCH} == "avr32" 672e141748SHans Petter Selasky_avr32dci= avr32dci 682e141748SHans Petter Selasky.endif 692e141748SHans Petter Selasky 707d0d268bSAndrew Thompson.include <bsd.subdir.mk> 71