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