]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sys/modules/Makefile
MFC r291072, r291168 and r291169:
[FreeBSD/stable/10.git] / sys / modules / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 SUBDIR_PARALLEL=
6
7 # Modules that include binary-only blobs of microcode should be selectable by
8 # MK_SOURCELESS_UCODE option (see below).
9
10 SUBDIR= \
11         ${_3dfx} \
12         ${_3dfx_linux} \
13         ${_aac} \
14         ${_aacraid} \
15         accf_data \
16         accf_dns \
17         accf_http \
18         acl_nfs4 \
19         acl_posix1e \
20         ${_acpi} \
21         ae \
22         ${_aesni} \
23         age \
24         ${_agp} \
25         aha \
26         ${_ahb} \
27         ahci \
28         ${_aic} \
29         aic7xxx \
30         aio \
31         alc \
32         ale \
33         alq \
34         ${_amdsbwd} \
35         ${_amdtemp} \
36         amr \
37         ${_an} \
38         ${_aout} \
39         ${_apm} \
40         ${_arcmsr} \
41         ${_arcnet} \
42         ${_asmc} \
43         ${_asr} \
44         ata \
45         ath \
46         ath_pci \
47         ${_autofs} \
48         ${_auxio} \
49         ${_bce} \
50         bfe \
51         bge \
52         ${_bxe} \
53         ${_bios} \
54         ${_bktr} \
55         ${_bm} \
56         bridgestp \
57         bwi \
58         bwn \
59         cam \
60         ${_canbepm} \
61         ${_canbus} \
62         ${_cardbus} \
63         ${_carp} \
64         cas \
65         ${_cbb} \
66         cc \
67         cd9660 \
68         cd9660_iconv \
69         ${_ce} \
70         ${_cfi} \
71         ${_ciss} \
72         ${_cm} \
73         ${_cmx} \
74         ${_coff} \
75         ${_coretemp} \
76         ${_cp} \
77         ${_cpsw} \
78         ${_cpuctl} \
79         ${_cpufreq} \
80         ${_crypto} \
81         ${_cryptodev} \
82         ${_cs} \
83         ${_ct} \
84         ${_ctau} \
85         ctl \
86         ${_cxgb} \
87         ${_cxgbe} \
88         dc \
89         dcons \
90         dcons_crom \
91         de \
92         ${_dpms} \
93         ${_dpt} \
94         ${_drm} \
95         ${_drm2} \
96         ${_dtrace} \
97         dummynet \
98         ${_ed} \
99         ${_elink} \
100         ${_em} \
101         en \
102         ${_ep} \
103         ${_epic} \
104         esp \
105         ${_et} \
106         ${_ex} \
107         ${_exca} \
108         ${_ext2fs} \
109         ${_fatm} \
110         fdc \
111         fdescfs \
112         ${_fe} \
113         ${_filemon} \
114         firewire \
115         firmware \
116         fuse \
117         ${_fxp} \
118         gem \
119         geom \
120         ${_glxiic} \
121         ${_glxsb} \
122         hatm \
123         hifn \
124         hme \
125         ${_hpt27xx} \
126         ${_hptiop} \
127         ${_hptmv} \
128         ${_hptnr} \
129         ${_hptrr} \
130         hwpmc \
131         ${_hyperv} \
132         ${_i2c} \
133         ${_ibcore} \
134         ${_ibcs2} \
135         ${_ichwd} \
136         ${_ida} \
137         ${_ie} \
138         if_bridge \
139         if_disc \
140         if_edsc \
141         if_ef \
142         if_epair \
143         if_faith \
144         ${_if_gif} \
145         ${_if_gre} \
146         ${_if_me} \
147         if_lagg \
148         ${_if_ndis} \
149         if_stf \
150         if_tap \
151         if_tun \
152         if_vlan \
153         if_vxlan \
154         ${_igb} \
155         ${_iir} \
156         ${_imgact_binmisc} \
157         ${_io} \
158         ${_ipoib} \
159         ${_ipdivert} \
160         ${_ipfilter} \
161         ${_ipfw} \
162         ipfw_nat \
163         ${_ipmi} \
164         ip6_mroute_mod \
165         ip_mroute_mod \
166         ${_ips} \
167         ${_ipw} \
168         ${_ipwfw} \
169         ${_isci} \
170         isp \
171         ${_ispfw} \
172         ${_iwi} \
173         ${_iwifw} \
174         ${_iwn} \
175         ${_iwnfw} \
176         ${_ix} \
177         ${_ixv} \
178         ${_ixgb} \
179         ${_ixgbe} \
180         ${_ixl} \
181         ${_ixlv} \
182         jme \
183         joy \
184         kbdmux \
185         kgssapi \
186         kgssapi_krb5 \
187         khelp \
188         krpc \
189         ksyms \
190         le \
191         lge \
192         libalias \
193         libiconv \
194         libmbpool \
195         libmchain \
196         ${_lindev} \
197         ${_linprocfs} \
198         ${_linsysfs} \
199         ${_linux} \
200         lmc \
201         lpt \
202         mac_biba \
203         mac_bsdextended \
204         mac_ifoff \
205         mac_lomac \
206         mac_mls \
207         mac_none \
208         mac_partition \
209         mac_portacl \
210         mac_seeotheruids \
211         mac_stub \
212         mac_test \
213         malo \
214         mcd \
215         md \
216         mem \
217         mfi \
218         mii \
219         mlx \
220         ${_mlx4} \
221         ${_mlx4ib} \
222         ${_mlxen} \
223         ${_mlx5} \
224         ${_mlx5en} \
225         ${_mly} \
226         mmc \
227         mmcsd \
228         mpr \
229         mps \
230         mpt \
231         mqueue \
232         mrsas \
233         msdosfs \
234         msdosfs_iconv \
235         ${_mse} \
236         msk \
237         ${_mthca} \
238         mvs \
239         mwl \
240         ${_mwlfw} \
241         mxge \
242         my \
243         ${_nandfs} \
244         ${_nandsim} \
245         ${_ncp} \
246         ${_ncv} \
247         ${_ndis} \
248         netfpga10g \
249         ${_netgraph} \
250         ${_nfe} \
251         nfs_common \
252         nfscl \
253         nfsclient \
254         nfscommon \
255         nfsd \
256         nfslock \
257         nfslockd \
258         nfsserver \
259         nfssvc \
260         nge \
261         nmdm \
262         ${_nsp} \
263         nullfs \
264         ${_ntb} \
265         ${_nvd} \
266         ${_nve} \
267         ${_nvme} \
268         ${_nvram} \
269         ${_nxge} \
270         ${_opensolaris} \
271         oce \
272         ${_padlock} \
273         patm \
274         ${_pccard} \
275         ${_pcfclock} \
276         pcn \
277         ${_pf} \
278         ${_pflog} \
279         ${_pfsync} \
280         plip \
281         ${_pmc} \
282         ${_pms} \
283         ppbus \
284         ppc \
285         ppi \
286         pps \
287         procfs \
288         pseudofs \
289         ${_pst} \
290         pty  \
291         puc \
292         ${_qlxge} \
293         ${_qlxgb} \
294         ${_qlxgbe} \
295         ral \
296         ${_ralfw} \
297         ${_random} \
298         rc4 \
299         ${_rdma} \
300         re \
301         reiserfs \
302         rl \
303         ${_s3} \
304         ${_safe} \
305         ${_sbni} \
306         scc \
307         scd \
308         ${_scsi_low} \
309         sdhci \
310         sdhci_pci \
311         sem \
312         send \
313         ${_sf} \
314         ${_sfxge} \
315         sge \
316         siba_bwn \
317         siftr \
318         siis \
319         sis \
320         sk \
321         ${_smbfs} \
322         ${_sn} \
323         ${_snc} \
324         snp \
325         ${_sound} \
326         ${_speaker} \
327         ${_splash} \
328         ${_sppp} \
329         ste \
330         ${_stg} \
331         stge \
332         ${_streams} \
333         ${_svr4} \
334         ${_sym} \
335         ${_syscons} \
336         sysvipc \
337         ${_ti} \
338         tl \
339         tmpfs \
340         ${_toecore} \
341         ${_tpm} \
342         trm \
343         ${_twa} \
344         twe \
345         tws \
346         tx \
347         ${_txp} \
348         uart \
349         ubsec \
350         udf \
351         udf_iconv \
352         ufs \
353         unionfs \
354         usb \
355         utopia \
356         ${_vesa} \
357         ${_virtio} \
358         vge \
359         ${_viawd} \
360         vkbd \
361         ${_vmm} \
362         ${_vmware} \
363         ${_vpo} \
364         vr \
365         vte \
366         vx \
367         ${_vxge} \
368         wb \
369         ${_wbwd} \
370         ${_wi} \
371         wlan \
372         wlan_acl \
373         wlan_amrr \
374         wlan_ccmp \
375         wlan_rssadapt \
376         wlan_tkip \
377         wlan_wep \
378         wlan_xauth \
379         ${_wpi} \
380         ${_wpifw} \
381         ${_x86bios} \
382         ${_xe} \
383         xl \
384         ${_zfs} \
385         zlib \
386
387 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
388 _filemon=       filemon
389 _imgact_binmisc=        imgact_binmisc
390 _vmware=        vmware
391 .endif
392
393 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
394         ${MACHINE_CPUARCH} != "mips"
395 _syscons=       syscons
396 _vpo=           vpo
397 .endif
398
399 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
400 # no BUS_SPACE_UNSPECIFIED
401 # No barrier instruction support (specific to this driver)
402 _sym=           sym
403 # intr_disable() is a macro, causes problems
404 .if ${MK_SOURCELESS_UCODE} != "no"
405 _cxgb=          cxgb
406 .endif
407 .endif
408
409 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
410         ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
411         ${MACHINE_ARCH} != "powerpc"
412 _cxgbe=         cxgbe
413 .endif
414
415 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
416 _autofs=        autofs
417 .endif
418
419 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
420 .if exists(${.CURDIR}/../opencrypto)
421 _crypto=        crypto
422 _cryptodev=     cryptodev
423 .endif
424 .if exists(${.CURDIR}/../crypto)
425 _random=        random
426 .endif
427 .endif
428
429 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
430         defined(ALL_MODULES)
431 _carp=  carp
432 _toecore=       toecore
433 _if_gif=        if_gif
434 _if_gre=        if_gre
435 .endif
436
437 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
438 _if_me=         if_me
439 .endif
440
441 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
442 _ipfilter=      ipfilter
443 .endif
444
445 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
446 _ipdivert=      ipdivert
447 _ipfw=          ipfw
448 .endif
449
450 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
451 SUBDIR+=        iscsi
452 SUBDIR+=        iscsi_initiator
453 .endif
454
455 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
456 _nandfs=        nandfs
457 _nandsim=       nandsim
458 .endif
459
460 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
461 _netgraph=      netgraph
462 .endif
463
464 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
465         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
466 _pf=            pf
467 _pflog=         pflog
468 .if ${MK_INET_SUPPORT} != "no"
469 _pfsync=        pfsync
470 .endif
471 .endif
472
473 .if ${MK_SOURCELESS_UCODE} != "no"
474 _bce=           bce
475 _fatm=          fatm
476 _fxp=           fxp
477 _ispfw=         ispfw
478 _mwlfw=         mwlfw
479 _ralfw=         ralfw
480 _sf=            sf
481 _sn=            sn
482 _ti=            ti
483 _txp=           txp
484 .endif
485
486 .if ${MACHINE_CPUARCH} == "i386"
487 # XXX some of these can move to the general case when de-i386'ed
488 # XXX some of these can move now, but are untested on other architectures.
489 _3dfx=          3dfx
490 _3dfx_linux=    3dfx_linux
491 _agp=           agp
492 _aic=           aic
493 _an=            an
494 _aout=          aout
495 _apm=           apm
496 _arcnet=        arcnet
497 _bktr=          bktr
498 _bxe=           bxe
499 _cardbus=       cardbus
500 _cbb=           cbb
501 .if ${MK_SOURCELESS_UCODE} != "no"
502 _ce=            ce
503 .endif
504 _coff=          coff
505 .if ${MK_SOURCELESS_UCODE} != "no"
506 _cp=            cp
507 .endif
508 _cpuctl=        cpuctl
509 _cpufreq=       cpufreq
510 _cs=            cs
511 _dpms=          dpms
512 _drm=           drm
513 _drm2=          drm2
514 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
515 _dtrace=        dtrace
516 .endif
517 _ed=            ed
518 _elink=         elink
519 _em=            em
520 _ep=            ep
521 _et=            et
522 _exca=          exca
523 _ext2fs=        ext2fs
524 _fe=            fe
525 _glxiic=        glxiic
526 _glxsb=         glxsb
527 _i2c=           i2c
528 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
529 _ibcore=        ibcore
530 .endif
531 _ibcs2=         ibcs2
532 _ie=            ie
533 _if_ndis=       if_ndis
534 _igb=           igb
535 _io=            io
536 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
537 _ipoib=         ipoib
538 .endif
539 _lindev=        lindev
540 _linprocfs=     linprocfs
541 _linsysfs=      linsysfs
542 _linux=         linux
543 _mse=           mse
544 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
545 _mlx4=          mlx4
546 _mlx4ib=        mlx4ib
547 _mlxen=         mlxen
548 _mthca=         mthca
549 .endif
550 _mlx5=          mlx5
551 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
552         defined(ALL_MODULES)
553 _mlx5en=        mlx5en
554 .endif
555 _ncv=           ncv
556 _ndis=          ndis
557 _nsp=           nsp
558 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
559 _opensolaris=   opensolaris
560 .endif
561 _pccard=        pccard
562 _pcfclock=      pcfclock
563 _pst=           pst
564 _rdma=          rdma
565 _safe=          safe
566 _sbni=          sbni
567 _scsi_low=      scsi_low
568 _smbfs=         smbfs
569 _sound=         sound
570 _speaker=       speaker
571 _splash=        splash
572 _sppp=          sppp
573 _stg=           stg
574 _streams=       streams
575 _svr4=          svr4
576 _vxge=          vxge
577 _wbwd=          wbwd
578 _wi=            wi
579 _xe=            xe
580 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
581 _zfs=           zfs
582 .endif
583 .if ${MACHINE} == "i386"
584 _aac=           aac
585 _aacraid=       aacraid
586 _acpi=          acpi
587 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
588 _aesni=         aesni
589 .endif
590 _ahb=           ahb
591 _amdsbwd=       amdsbwd
592 _amdtemp=       amdtemp
593 _arcmsr=        arcmsr
594 _asmc=          asmc
595 _asr=           asr
596 _bios=          bios
597 _ciss=          ciss
598 _cm=            cm
599 _cmx=           cmx
600 _coretemp=      coretemp
601 .if ${MK_SOURCELESS_UCODE} != "no"
602 _ctau=          ctau
603 .endif
604 _dpt=           dpt
605 _ex=            ex
606 .if ${MK_SOURCELESS_HOST} != "no"
607 _hpt27xx=       hpt27xx
608 .endif
609 _hptiop=        hptiop
610 .if ${MK_SOURCELESS_HOST} != "no"
611 _hptmv=         hptmv
612 _hptnr=         hptnr
613 _hptrr=         hptrr
614 .endif
615 _hyperv=        hyperv
616 _ichwd=         ichwd
617 _ida=           ida
618 _iir=           iir
619 _ipmi=          ipmi
620 _ips=           ips
621 _ipw=           ipw
622 .if ${MK_SOURCELESS_UCODE} != "no"
623 _ipwfw=         ipwfw
624 .endif
625 _isci=          isci
626 _iwi=           iwi
627 .if ${MK_SOURCELESS_UCODE} != "no"
628 _iwifw=         iwifw
629 .endif
630 _iwn=           iwn
631 .if ${MK_SOURCELESS_UCODE} != "no"
632 _iwnfw=         iwnfw
633 .endif
634 _ix=            ix
635 _ixv=           ixv
636 _ixgb=          ixgb
637 _ixgbe=         ixgbe
638 _mly=           mly
639 _nfe=           nfe
640 _nvd=           nvd
641 .if ${MK_SOURCELESS_HOST} != "no"
642 _nve=           nve
643 .endif
644 _nvme=          nvme
645 _nvram=         nvram
646 _nxge=          nxge
647 _tpm=           tpm
648 _viawd=         viawd
649 _wpi=           wpi
650 .if ${MK_SOURCELESS_UCODE} != "no"
651 _wpifw=         wpifw
652 .endif
653 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
654 _padlock=       padlock
655 .endif
656 _s3=            s3
657 _twa=           twa
658 _vesa=          vesa
659 _virtio=        virtio
660 _x86bios=       x86bios
661 .elif ${MACHINE} == "pc98"
662 _canbepm=       canbepm
663 _canbus=        canbus
664 _ct=            ct
665 _pmc=           pmc
666 _snc=           snc
667 .endif
668 .endif
669
670 .if ${MACHINE_CPUARCH} == "amd64"
671 _aac=           aac
672 _aacraid=       aacraid
673 _aout=          aout
674 _acpi=          acpi
675 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
676 _aesni=         aesni
677 .endif
678 _agp=           agp
679 _an=            an
680 _amdsbwd=       amdsbwd
681 _amdtemp=       amdtemp
682 _arcmsr=        arcmsr
683 _asmc=          asmc
684 _bktr=          bktr
685 _bxe=           bxe
686 _cardbus=       cardbus
687 _cbb=           cbb
688 _cmx=           cmx
689 _ciss=          ciss
690 _coretemp=      coretemp
691 _cpuctl=        cpuctl
692 _cpufreq=       cpufreq
693 _dpms=          dpms
694 _drm=           drm
695 _drm2=          drm2
696 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
697 _dtrace=        dtrace
698 .endif
699 _ed=            ed
700 _et=            et
701 _em=            em
702 _exca=          exca
703 _ext2fs=        ext2fs
704 .if ${MK_SOURCELESS_HOST} != "no"
705 _hpt27xx=       hpt27xx
706 .endif
707 _hptiop=        hptiop
708 .if ${MK_SOURCELESS_HOST} != "no"
709 _hptmv=         hptmv
710 _hptnr=         hptnr
711 _hptrr=         hptrr
712 .endif
713 _hyperv=        hyperv
714 _i2c=           i2c
715 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
716 _ibcore=        ibcore
717 .endif
718 _ichwd=         ichwd
719 _ida=           ida
720 _if_ndis=       if_ndis
721 _igb=           igb
722 _iir=           iir
723 _io=            io
724 _ipmi=          ipmi
725 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
726 _ipoib=         ipoib
727 .endif
728 _ips=           ips
729 _ipw=           ipw
730 .if ${MK_SOURCELESS_UCODE} != "no"
731 _ipwfw=         ipwfw
732 .endif
733 _isci=          isci
734 _iwi=           iwi
735 .if ${MK_SOURCELESS_UCODE} != "no"
736 _iwifw=         iwifw
737 .endif
738 _iwn=           iwn
739 .if ${MK_SOURCELESS_UCODE} != "no"
740 _iwnfw=         iwnfw
741 .endif
742 _ix=            ix
743 _ixv=           ixv
744 _ixgb=          ixgb
745 _ixgbe=         ixgbe
746 _ixl=           ixl
747 _ixlv=          ixlv
748 _lindev=        lindev
749 _linprocfs=     linprocfs
750 _linsysfs=      linsysfs
751 _linux=         linux
752 _mly=           mly
753 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
754 _mlx4=          mlx4
755 _mlx4ib=        mlx4ib
756 _mlxen=         mlxen
757 _mthca=         mthca
758 .endif
759 _mlx5=          mlx5
760 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
761         defined(ALL_MODULES)
762 _mlx5en=        mlx5en
763 .endif
764 _ndis=          ndis
765 _nfe=           nfe
766 _ntb=           ntb
767 _nvd=           nvd
768 .if ${MK_SOURCELESS_HOST} != "no"
769 _nve=           nve
770 .endif
771 _nvme=          nvme
772 _nvram=         nvram
773 _nxge=          nxge
774 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
775 _opensolaris=   opensolaris
776 .endif
777 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
778 _padlock=       padlock
779 .endif
780 _pccard=        pccard
781 _pms=           pms
782 _qlxge=         qlxge
783 _qlxgb=         qlxgb
784 _qlxgbe=        qlxgbe
785 _rdma=          rdma
786 _s3=            s3
787 _safe=          safe
788 _scsi_low=      scsi_low
789 _sfxge=         sfxge
790 _smbfs=         smbfs
791 _sound=         sound
792 _speaker=       speaker
793 _splash=        splash
794 _sppp=          sppp
795 _tpm=           tpm
796 _twa=           twa
797 _vesa=          vesa
798 _viawd=         viawd
799 _virtio=        virtio
800 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
801 _vmm=           vmm
802 .endif
803 _vxge=          vxge
804 _x86bios=       x86bios
805 _wbwd=          wbwd
806 _wi=            wi
807 _wpi=           wpi
808 .if ${MK_SOURCELESS_UCODE} != "no"
809 _wpifw=         wpifw
810 .endif
811 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
812 _zfs=           zfs
813 .endif
814 .endif
815
816 .if ${MACHINE_CPUARCH} == "arm"
817 _cfi=           cfi
818 _cpsw=          cpsw
819 .endif
820
821 .if ${MACHINE_CPUARCH} == "ia64"
822 _aac=           aac
823 _aacraid=       aacraid
824 _aic=           aic
825 _an=            an
826 _arcnet=        arcnet
827 _asr=           asr
828 _bktr=          bktr
829 _cardbus=       cardbus
830 _cbb=           cbb
831 _ciss=          ciss
832 _cm=            cm
833 _cmx=           cmx
834 _coff=          coff
835 _cpufreq=       cpufreq
836 _dpt=           dpt
837 _em=            em
838 _ep=            ep
839 _et=            et
840 _exca=          exca
841 _fe=            fe
842 _hptiop=        hptiop
843 _ida=           ida
844 _igb=           igb
845 _iir=           iir
846 _ips=           ips
847 _mly=           mly
848 _pccard=        pccard
849 _scsi_low=      scsi_low
850 _smbfs=         smbfs
851 _sound=         sound
852 _splash=        splash
853 _sppp=          sppp
854 _streams=       streams
855 _tpm=           tpm
856 _twa=           twa
857 _wi=            wi
858 _xe=            xe
859 .endif
860
861 .if ${MACHINE_CPUARCH} == "powerpc"
862 _agp=           agp
863 _an=            an
864 _bm=            bm
865 _cardbus=       cardbus
866 _cbb=           cbb
867 _cfi=           cfi
868 _cpufreq=       cpufreq
869 _drm=           drm
870 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
871 _dtrace=        dtrace
872 .endif
873 _exca=          exca
874 _nvram=         powermac_nvram
875 _pccard=        pccard
876 _smbfs=         smbfs
877 _sound=         sound
878 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
879 _opensolaris=   opensolaris
880 .endif
881 _wi=            wi
882 .endif
883
884 .if ${MACHINE_ARCH} == "powerpc64"
885 _drm2=          drm2
886 _i2c=           i2c
887 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
888 _zfs=           zfs
889 .endif
890 .endif
891
892 .if ${MACHINE_CPUARCH} == "sparc64"
893 _auxio=         auxio
894 _em=            em
895 _epic=          epic
896 _i2c=           i2c
897 _igb=           igb
898 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
899 _opensolaris=   opensolaris
900 .endif
901 _smbfs=         smbfs
902 _sound=         sound
903 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
904 _zfs=           zfs
905 .endif
906 .endif
907
908 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
909 SUBDIR=${MODULES_OVERRIDE}
910 .endif
911
912 SUBDIR+=${MODULES_EXTRA}
913
914 .for reject in ${WITHOUT_MODULES}
915 SUBDIR:= ${SUBDIR:N${reject}}
916 .endfor
917
918 # Calling kldxref(8) for each module is expensive.
919 .if !defined(NO_XREF)
920 .MAKEFLAGS+=    -DNO_XREF
921 afterinstall:
922         @if type kldxref >/dev/null 2>&1; then \
923                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
924                 kldxref ${DESTDIR}${KMODDIR}; \
925         fi
926 .endif
927
928 .include <bsd.subdir.mk>