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