]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/modules/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.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         ${_mly} \
224         mmc \
225         mmcsd \
226         mpr \
227         mps \
228         mpt \
229         mqueue \
230         mrsas \
231         msdosfs \
232         msdosfs_iconv \
233         ${_mse} \
234         msk \
235         ${_mthca} \
236         mvs \
237         mwl \
238         ${_mwlfw} \
239         mxge \
240         my \
241         ${_nandfs} \
242         ${_nandsim} \
243         ${_ncp} \
244         ${_ncv} \
245         ${_ndis} \
246         netfpga10g \
247         ${_netgraph} \
248         ${_nfe} \
249         nfs_common \
250         nfscl \
251         nfsclient \
252         nfscommon \
253         nfsd \
254         nfslock \
255         nfslockd \
256         nfsserver \
257         nfssvc \
258         nge \
259         nmdm \
260         ${_nsp} \
261         nullfs \
262         ${_ntb} \
263         ${_nvd} \
264         ${_nve} \
265         ${_nvme} \
266         ${_nvram} \
267         ${_nxge} \
268         ${_opensolaris} \
269         oce \
270         ${_padlock} \
271         patm \
272         ${_pccard} \
273         ${_pcfclock} \
274         pcn \
275         ${_pf} \
276         ${_pflog} \
277         ${_pfsync} \
278         plip \
279         ${_pmc} \
280         ${_pms} \
281         ppbus \
282         ppc \
283         ppi \
284         pps \
285         procfs \
286         pseudofs \
287         ${_pst} \
288         pty  \
289         puc \
290         ${_qlxge} \
291         ${_qlxgb} \
292         ${_qlxgbe} \
293         ral \
294         ${_ralfw} \
295         ${_random} \
296         rc4 \
297         ${_rdma} \
298         re \
299         reiserfs \
300         rl \
301         ${_s3} \
302         ${_safe} \
303         ${_sbni} \
304         scc \
305         scd \
306         ${_scsi_low} \
307         sdhci \
308         sdhci_pci \
309         sem \
310         send \
311         ${_sf} \
312         ${_sfxge} \
313         sge \
314         siba_bwn \
315         siftr \
316         siis \
317         sis \
318         sk \
319         ${_smbfs} \
320         ${_sn} \
321         ${_snc} \
322         snp \
323         ${_sound} \
324         ${_speaker} \
325         ${_splash} \
326         ${_sppp} \
327         ste \
328         ${_stg} \
329         stge \
330         ${_streams} \
331         ${_svr4} \
332         ${_sym} \
333         ${_syscons} \
334         sysvipc \
335         ${_ti} \
336         tl \
337         tmpfs \
338         ${_toecore} \
339         ${_tpm} \
340         trm \
341         ${_twa} \
342         twe \
343         tws \
344         tx \
345         ${_txp} \
346         uart \
347         ubsec \
348         udf \
349         udf_iconv \
350         ufs \
351         unionfs \
352         usb \
353         utopia \
354         ${_vesa} \
355         ${_virtio} \
356         vge \
357         ${_viawd} \
358         vkbd \
359         ${_vmm} \
360         ${_vmware} \
361         ${_vpo} \
362         vr \
363         vte \
364         vx \
365         ${_vxge} \
366         wb \
367         ${_wbwd} \
368         ${_wi} \
369         wlan \
370         wlan_acl \
371         wlan_amrr \
372         wlan_ccmp \
373         wlan_rssadapt \
374         wlan_tkip \
375         wlan_wep \
376         wlan_xauth \
377         ${_wpi} \
378         ${_wpifw} \
379         ${_x86bios} \
380         ${_xe} \
381         xl \
382         ${_zfs} \
383         zlib \
384
385 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
386 _filemon=       filemon
387 _imgact_binmisc=        imgact_binmisc
388 _vmware=        vmware
389 .endif
390
391 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
392         ${MACHINE_CPUARCH} != "mips"
393 _syscons=       syscons
394 _vpo=           vpo
395 .endif
396
397 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
398 # no BUS_SPACE_UNSPECIFIED
399 # No barrier instruction support (specific to this driver)
400 _sym=           sym
401 # intr_disable() is a macro, causes problems
402 .if ${MK_SOURCELESS_UCODE} != "no"
403 _cxgb=          cxgb
404 .endif
405 .endif
406
407 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
408         ${MACHINE_ARCH:C/mips(el)?/mips/} != "mips" && \
409         ${MACHINE_ARCH} != "powerpc"
410 _cxgbe=         cxgbe
411 .endif
412
413 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
414 _autofs=        autofs
415 .endif
416
417 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
418 .if exists(${.CURDIR}/../opencrypto)
419 _crypto=        crypto
420 _cryptodev=     cryptodev
421 .endif
422 .if exists(${.CURDIR}/../crypto)
423 _random=        random
424 .endif
425 .endif
426
427 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
428         defined(ALL_MODULES)
429 _carp=  carp
430 _toecore=       toecore
431 _if_gif=        if_gif
432 _if_gre=        if_gre
433 .endif
434
435 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
436 _if_me=         if_me
437 .endif
438
439 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
440 _ipfilter=      ipfilter
441 .endif
442
443 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
444 _ipdivert=      ipdivert
445 _ipfw=          ipfw
446 .endif
447
448 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
449 SUBDIR+=        iscsi
450 SUBDIR+=        iscsi_initiator
451 .endif
452
453 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
454 _nandfs=        nandfs
455 _nandsim=       nandsim
456 .endif
457
458 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
459 _netgraph=      netgraph
460 .endif
461
462 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
463         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
464 _pf=            pf
465 _pflog=         pflog
466 .if ${MK_INET_SUPPORT} != "no"
467 _pfsync=        pfsync
468 .endif
469 .endif
470
471 .if ${MK_SOURCELESS_UCODE} != "no"
472 _bce=           bce
473 _fatm=          fatm
474 _fxp=           fxp
475 _ispfw=         ispfw
476 _mwlfw=         mwlfw
477 _ralfw=         ralfw
478 _sf=            sf
479 _sn=            sn
480 _ti=            ti
481 _txp=           txp
482 .endif
483
484 .if ${MACHINE_CPUARCH} == "i386"
485 # XXX some of these can move to the general case when de-i386'ed
486 # XXX some of these can move now, but are untested on other architectures.
487 _3dfx=          3dfx
488 _3dfx_linux=    3dfx_linux
489 _agp=           agp
490 _aic=           aic
491 _an=            an
492 _aout=          aout
493 _apm=           apm
494 _arcnet=        arcnet
495 _bktr=          bktr
496 _bxe=           bxe
497 _cardbus=       cardbus
498 _cbb=           cbb
499 .if ${MK_SOURCELESS_UCODE} != "no"
500 _ce=            ce
501 .endif
502 _coff=          coff
503 .if ${MK_SOURCELESS_UCODE} != "no"
504 _cp=            cp
505 .endif
506 _cpuctl=        cpuctl
507 _cpufreq=       cpufreq
508 _cs=            cs
509 _dpms=          dpms
510 _drm=           drm
511 _drm2=          drm2
512 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
513 _dtrace=        dtrace
514 .endif
515 _ed=            ed
516 _elink=         elink
517 _em=            em
518 _ep=            ep
519 _et=            et
520 _exca=          exca
521 _ext2fs=        ext2fs
522 _fe=            fe
523 _glxiic=        glxiic
524 _glxsb=         glxsb
525 _i2c=           i2c
526 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
527 _ibcore=        ibcore
528 .endif
529 _ibcs2=         ibcs2
530 _ie=            ie
531 _if_ndis=       if_ndis
532 _igb=           igb
533 _io=            io
534 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
535 _ipoib=         ipoib
536 .endif
537 _lindev=        lindev
538 _linprocfs=     linprocfs
539 _linsysfs=      linsysfs
540 _linux=         linux
541 _mse=           mse
542 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
543 _mlx4=          mlx4
544 _mlx4ib=        mlx4ib
545 _mlxen=         mlxen
546 _mthca=         mthca
547 .endif
548 _ncv=           ncv
549 _ndis=          ndis
550 _nsp=           nsp
551 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
552 _opensolaris=   opensolaris
553 .endif
554 _pccard=        pccard
555 _pcfclock=      pcfclock
556 _pst=           pst
557 _rdma=          rdma
558 _safe=          safe
559 _sbni=          sbni
560 _scsi_low=      scsi_low
561 _smbfs=         smbfs
562 _sound=         sound
563 _speaker=       speaker
564 _splash=        splash
565 _sppp=          sppp
566 _stg=           stg
567 _streams=       streams
568 _svr4=          svr4
569 _vxge=          vxge
570 _wbwd=          wbwd
571 _wi=            wi
572 _xe=            xe
573 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
574 _zfs=           zfs
575 .endif
576 .if ${MACHINE} == "i386"
577 _aac=           aac
578 _aacraid=       aacraid
579 _acpi=          acpi
580 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
581 _aesni=         aesni
582 .endif
583 _ahb=           ahb
584 _amdsbwd=       amdsbwd
585 _amdtemp=       amdtemp
586 _arcmsr=        arcmsr
587 _asmc=          asmc
588 _asr=           asr
589 _bios=          bios
590 _ciss=          ciss
591 _cm=            cm
592 _cmx=           cmx
593 _coretemp=      coretemp
594 .if ${MK_SOURCELESS_UCODE} != "no"
595 _ctau=          ctau
596 .endif
597 _dpt=           dpt
598 _ex=            ex
599 .if ${MK_SOURCELESS_HOST} != "no"
600 _hpt27xx=       hpt27xx
601 .endif
602 _hptiop=        hptiop
603 .if ${MK_SOURCELESS_HOST} != "no"
604 _hptmv=         hptmv
605 _hptnr=         hptnr
606 _hptrr=         hptrr
607 .endif
608 _hyperv=        hyperv
609 _ichwd=         ichwd
610 _ida=           ida
611 _iir=           iir
612 _ipmi=          ipmi
613 _ips=           ips
614 _ipw=           ipw
615 .if ${MK_SOURCELESS_UCODE} != "no"
616 _ipwfw=         ipwfw
617 .endif
618 _isci=          isci
619 _iwi=           iwi
620 .if ${MK_SOURCELESS_UCODE} != "no"
621 _iwifw=         iwifw
622 .endif
623 _iwn=           iwn
624 .if ${MK_SOURCELESS_UCODE} != "no"
625 _iwnfw=         iwnfw
626 .endif
627 _ix=            ix
628 _ixv=           ixv
629 _ixgb=          ixgb
630 _ixgbe=         ixgbe
631 _mly=           mly
632 _nfe=           nfe
633 _nvd=           nvd
634 .if ${MK_SOURCELESS_HOST} != "no"
635 _nve=           nve
636 .endif
637 _nvme=          nvme
638 _nvram=         nvram
639 _nxge=          nxge
640 _tpm=           tpm
641 _viawd=         viawd
642 _wpi=           wpi
643 .if ${MK_SOURCELESS_UCODE} != "no"
644 _wpifw=         wpifw
645 .endif
646 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
647 _padlock=       padlock
648 .endif
649 _s3=            s3
650 _twa=           twa
651 _vesa=          vesa
652 _virtio=        virtio
653 _x86bios=       x86bios
654 .elif ${MACHINE} == "pc98"
655 _canbepm=       canbepm
656 _canbus=        canbus
657 _ct=            ct
658 _pmc=           pmc
659 _snc=           snc
660 .endif
661 .endif
662
663 .if ${MACHINE_CPUARCH} == "amd64"
664 _aac=           aac
665 _aacraid=       aacraid
666 _aout=          aout
667 _acpi=          acpi
668 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
669 _aesni=         aesni
670 .endif
671 _agp=           agp
672 _an=            an
673 _amdsbwd=       amdsbwd
674 _amdtemp=       amdtemp
675 _arcmsr=        arcmsr
676 _asmc=          asmc
677 _bktr=          bktr
678 _bxe=           bxe
679 _cardbus=       cardbus
680 _cbb=           cbb
681 _cmx=           cmx
682 _ciss=          ciss
683 _coretemp=      coretemp
684 _cpuctl=        cpuctl
685 _cpufreq=       cpufreq
686 _dpms=          dpms
687 _drm=           drm
688 _drm2=          drm2
689 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
690 _dtrace=        dtrace
691 .endif
692 _ed=            ed
693 _et=            et
694 _em=            em
695 _exca=          exca
696 _ext2fs=        ext2fs
697 .if ${MK_SOURCELESS_HOST} != "no"
698 _hpt27xx=       hpt27xx
699 .endif
700 _hptiop=        hptiop
701 .if ${MK_SOURCELESS_HOST} != "no"
702 _hptmv=         hptmv
703 _hptnr=         hptnr
704 _hptrr=         hptrr
705 .endif
706 _hyperv=        hyperv
707 _i2c=           i2c
708 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
709 _ibcore=        ibcore
710 .endif
711 _ichwd=         ichwd
712 _ida=           ida
713 _if_ndis=       if_ndis
714 _igb=           igb
715 _iir=           iir
716 _io=            io
717 _ipmi=          ipmi
718 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
719 _ipoib=         ipoib
720 .endif
721 _ips=           ips
722 _ipw=           ipw
723 .if ${MK_SOURCELESS_UCODE} != "no"
724 _ipwfw=         ipwfw
725 .endif
726 _isci=          isci
727 _iwi=           iwi
728 .if ${MK_SOURCELESS_UCODE} != "no"
729 _iwifw=         iwifw
730 .endif
731 _iwn=           iwn
732 .if ${MK_SOURCELESS_UCODE} != "no"
733 _iwnfw=         iwnfw
734 .endif
735 _ix=            ix
736 _ixv=           ixv
737 _ixgb=          ixgb
738 _ixgbe=         ixgbe
739 _ixl=           ixl
740 _ixlv=          ixlv
741 _lindev=        lindev
742 _linprocfs=     linprocfs
743 _linsysfs=      linsysfs
744 _linux=         linux
745 _mly=           mly
746 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
747 _mlx4=          mlx4
748 _mlx4ib=        mlx4ib
749 _mlxen=         mlxen
750 _mthca=         mthca
751 .endif
752 _ndis=          ndis
753 _nfe=           nfe
754 _ntb=           ntb
755 _nvd=           nvd
756 .if ${MK_SOURCELESS_HOST} != "no"
757 _nve=           nve
758 .endif
759 _nvme=          nvme
760 _nvram=         nvram
761 _nxge=          nxge
762 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
763 _opensolaris=   opensolaris
764 .endif
765 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
766 _padlock=       padlock
767 .endif
768 _pccard=        pccard
769 _pms=           pms
770 _qlxge=         qlxge
771 _qlxgb=         qlxgb
772 _qlxgbe=        qlxgbe
773 _rdma=          rdma
774 _s3=            s3
775 _safe=          safe
776 _scsi_low=      scsi_low
777 _sfxge=         sfxge
778 _smbfs=         smbfs
779 _sound=         sound
780 _speaker=       speaker
781 _splash=        splash
782 _sppp=          sppp
783 _tpm=           tpm
784 _twa=           twa
785 _vesa=          vesa
786 _viawd=         viawd
787 _virtio=        virtio
788 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
789 _vmm=           vmm
790 .endif
791 _vxge=          vxge
792 _x86bios=       x86bios
793 _wbwd=          wbwd
794 _wi=            wi
795 _wpi=           wpi
796 .if ${MK_SOURCELESS_UCODE} != "no"
797 _wpifw=         wpifw
798 .endif
799 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
800 _zfs=           zfs
801 .endif
802 .endif
803
804 .if ${MACHINE_CPUARCH} == "arm"
805 _cfi=           cfi
806 _cpsw=          cpsw
807 .endif
808
809 .if ${MACHINE_CPUARCH} == "ia64"
810 _aac=           aac
811 _aacraid=       aacraid
812 _aic=           aic
813 _an=            an
814 _arcnet=        arcnet
815 _asr=           asr
816 _bktr=          bktr
817 _cardbus=       cardbus
818 _cbb=           cbb
819 _ciss=          ciss
820 _cm=            cm
821 _cmx=           cmx
822 _coff=          coff
823 _cpufreq=       cpufreq
824 _dpt=           dpt
825 _em=            em
826 _ep=            ep
827 _et=            et
828 _exca=          exca
829 _fe=            fe
830 _hptiop=        hptiop
831 _ida=           ida
832 _igb=           igb
833 _iir=           iir
834 _ips=           ips
835 _mly=           mly
836 _pccard=        pccard
837 _scsi_low=      scsi_low
838 _smbfs=         smbfs
839 _sound=         sound
840 _splash=        splash
841 _sppp=          sppp
842 _streams=       streams
843 _tpm=           tpm
844 _twa=           twa
845 _wi=            wi
846 _xe=            xe
847 .endif
848
849 .if ${MACHINE_CPUARCH} == "powerpc"
850 _agp=           agp
851 _an=            an
852 _bm=            bm
853 _cardbus=       cardbus
854 _cbb=           cbb
855 _cfi=           cfi
856 _cpufreq=       cpufreq
857 _drm=           drm
858 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
859 _dtrace=        dtrace
860 .endif
861 _exca=          exca
862 _nvram=         powermac_nvram
863 _pccard=        pccard
864 _smbfs=         smbfs
865 _sound=         sound
866 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
867 _opensolaris=   opensolaris
868 .endif
869 _wi=            wi
870 .endif
871
872 .if ${MACHINE_ARCH} == "powerpc64"
873 _drm2=          drm2
874 _i2c=           i2c
875 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
876 _zfs=           zfs
877 .endif
878 .endif
879
880 .if ${MACHINE_CPUARCH} == "sparc64"
881 _auxio=         auxio
882 _em=            em
883 _epic=          epic
884 _i2c=           i2c
885 _igb=           igb
886 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
887 _opensolaris=   opensolaris
888 .endif
889 _smbfs=         smbfs
890 _sound=         sound
891 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
892 _zfs=           zfs
893 .endif
894 .endif
895
896 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
897 SUBDIR=${MODULES_OVERRIDE}
898 .endif
899
900 SUBDIR+=${MODULES_EXTRA}
901
902 .for reject in ${WITHOUT_MODULES}
903 SUBDIR:= ${SUBDIR:N${reject}}
904 .endfor
905
906 # Calling kldxref(8) for each module is expensive.
907 .if !defined(NO_XREF)
908 .MAKEFLAGS+=    -DNO_XREF
909 afterinstall:
910         @if type kldxref >/dev/null 2>&1; then \
911                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
912                 kldxref ${DESTDIR}${KMODDIR}; \
913         fi
914 .endif
915
916 .include <bsd.subdir.mk>