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