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