]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/Makefile
Delete the "blackhole" driver - it is not needed anymore.
[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         ${_coff} \
71         ${_coretemp} \
72         ${_cp} \
73         ${_cpsw} \
74         ${_cpuctl} \
75         ${_cpufreq} \
76         ${_crypto} \
77         ${_cryptodev} \
78         ${_cs} \
79         ${_ct} \
80         ${_ctau} \
81         ${_cxgb} \
82         cxgbe \
83         ${_cyclic} \
84         dc \
85         dcons \
86         dcons_crom \
87         de \
88         ${_dpms} \
89         ${_dpt} \
90         ${_drm} \
91         ${_drm2} \
92         ${_dtrace} \
93         dummynet \
94         ${_ed} \
95         ${_elink} \
96         ${_em} \
97         en \
98         ${_ep} \
99         ${_epic} \
100         esp \
101         ${_et} \
102         ${_ex} \
103         ${_exca} \
104         ${_ext2fs} \
105         ${_fatm} \
106         fdc \
107         fdescfs \
108         ${_fe} \
109         ${_filemon} \
110         firewire \
111         firmware \
112         fuse \
113         ${_fxp} \
114         gem \
115         geom \
116         ${_glxiic} \
117         ${_glxsb} \
118         hatm \
119         hifn \
120         hme \
121         ${_hpt27xx} \
122         ${_hptiop} \
123         ${_hptmv} \
124         ${_hptrr} \
125         hwpmc \
126         ${_i2c} \
127         ${_ibcs2} \
128         ${_ichwd} \
129         ${_ida} \
130         ${_ie} \
131         if_bridge \
132         if_disc \
133         if_edsc \
134         if_ef \
135         if_epair \
136         if_faith \
137         if_gif \
138         ${_if_gre} \
139         if_lagg \
140         ${_if_ndis} \
141         if_stf \
142         if_tap \
143         if_tun \
144         if_vlan \
145         ${_igb} \
146         ${_iir} \
147         ${_io} \
148         ${_ipdivert} \
149         ${_ipfilter} \
150         ${_ipfw} \
151         ipfw_nat \
152         ${_ipmi} \
153         ip6_mroute_mod \
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         nullfs \
245         ${_nvd} \
246         ${_nve} \
247         ${_nvme} \
248         ${_nvram} \
249         ${_nxge} \
250         ${_opensolaris} \
251         oce \
252         ${_padlock} \
253         patm \
254         ${_pccard} \
255         ${_pcfclock} \
256         pcn \
257         ${_pf} \
258         ${_pflog} \
259         ${_pfsync} \
260         plip \
261         ${_pmc} \
262         ppbus \
263         ppc \
264         ppi \
265         pps \
266         procfs \
267         pseudofs \
268         ${_pst} \
269         pty  \
270         puc \
271         ${_qlxgb} \
272         ral \
273         ${_ralfw} \
274         ${_random} \
275         rc4 \
276         ${_rdma} \
277         re \
278         reiserfs \
279         rl \
280         ${_runfw} \
281         ${_s3} \
282         ${_safe} \
283         ${_sbni} \
284         scc \
285         scd \
286         ${_scsi_low} \
287         sdhci \
288         sdhci_pci \
289         sem \
290         send \
291         ${_sf} \
292         ${_sfxge} \
293         sge \
294         siba_bwn \
295         siftr \
296         siis \
297         sis \
298         sk \
299         ${_sn} \
300         ${_snc} \
301         snp \
302         ${_sound} \
303         ${_speaker} \
304         ${_splash} \
305         ${_sppp} \
306         ste \
307         ${_stg} \
308         stge \
309         ${_streams} \
310         ${_svr4} \
311         ${_sym} \
312         ${_syscons} \
313         sysvipc \
314         ${_ti} \
315         tl \
316         tmpfs \
317         ${_toecore} \
318         ${_tpm} \
319         trm \
320         ${_twa} \
321         twe \
322         tws \
323         tx \
324         ${_txp} \
325         uart \
326         ubsec \
327         udf \
328         udf_iconv \
329         ufs \
330         unionfs \
331         usb \
332         utopia \
333         ${_vesa} \
334         ${_virtio} \
335         vge \
336         ${_viawd} \
337         vkbd \
338         ${_vmm} \
339         ${_vpo} \
340         vr \
341         vte \
342         vx \
343         ${_vxge} \
344         wb \
345         ${_wbwd} \
346         ${_wi} \
347         wlan \
348         wlan_acl \
349         wlan_amrr \
350         wlan_ccmp \
351         wlan_rssadapt \
352         wlan_tkip \
353         wlan_wep \
354         wlan_xauth \
355         ${_wpi} \
356         ${_wpifw} \
357         ${_x86bios} \
358         ${_xe} \
359         xl \
360         ${_zfs} \
361         zlib \
362
363 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
364 _filemon=       filemon
365 .endif
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 _ncv=           ncv
506 _ndis=          ndis
507 _nsp=           nsp
508 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
509 _opensolaris=   opensolaris
510 .endif
511 _pccard=        pccard
512 _pcfclock=      pcfclock
513 _pst=           pst
514 _rdma=          rdma
515 _safe=          safe
516 _sbni=          sbni
517 _scsi_low=      scsi_low
518 _sound=         sound
519 _speaker=       speaker
520 _splash=        splash
521 _sppp=          sppp
522 _stg=           stg
523 _streams=       streams
524 _svr4=          svr4
525 _vxge=          vxge
526 _wbwd=          wbwd
527 _wi=            wi
528 _xe=            xe
529 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
530 _zfs=           zfs
531 .endif
532 .if ${MACHINE} == "i386"
533 _aac=           aac
534 _acpi=          acpi
535 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
536 _aesni=         aesni
537 .endif
538 _ahb=           ahb
539 _amdsbwd=       amdsbwd
540 _amdtemp=       amdtemp
541 _arcmsr=        arcmsr
542 _asmc=          asmc
543 _asr=           asr
544 _bios=          bios
545 _ciss=          ciss
546 _cm=            cm
547 _cmx=           cmx
548 _coretemp=      coretemp
549 .if ${MK_SOURCELESS_UCODE} != "no"
550 _ctau=          ctau
551 .endif
552 _dpt=           dpt
553 _ex=            ex
554 .if ${MK_SOURCELESS_HOST} != "no"
555 _hpt27xx=       hpt27xx
556 .endif
557 _hptiop=        hptiop
558 .if ${MK_SOURCELESS_HOST} != "no"
559 _hptmv=         hptmv
560 _hptrr=         hptrr
561 .endif
562 _ichwd=         ichwd
563 _ida=           ida
564 _iir=           iir
565 _ipmi=          ipmi
566 _ips=           ips
567 _ipw=           ipw
568 .if ${MK_SOURCELESS_UCODE} != "no"
569 _ipwfw=         ipwfw
570 .endif
571 _isci=          isci
572 _iwi=           iwi
573 .if ${MK_SOURCELESS_UCODE} != "no"
574 _iwifw=         iwifw
575 .endif
576 _iwn=           iwn
577 .if ${MK_SOURCELESS_UCODE} != "no"
578 _iwnfw=         iwnfw
579 .endif
580 _ixgb=          ixgb
581 _ixgbe=         ixgbe
582 _mly=           mly
583 _nfe=           nfe
584 _nvd=           nvd
585 .if ${MK_SOURCELESS_HOST} != "no"
586 _nve=           nve
587 .endif
588 _nvme=          nvme
589 _nvram=         nvram
590 _nxge=          nxge
591 _tpm=           tpm
592 _viawd=         viawd
593 _wpi=           wpi
594 .if ${MK_SOURCELESS_UCODE} != "no"
595 _wpifw=         wpifw
596 .endif
597 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
598 _padlock=       padlock
599 .endif
600 _s3=            s3
601 _twa=           twa
602 _vesa=          vesa
603 _virtio=        virtio
604 _x86bios=       x86bios
605 .elif ${MACHINE} == "pc98"
606 _canbepm=       canbepm
607 _canbus=        canbus
608 _ct=            ct
609 _pmc=           pmc
610 _snc=           snc
611 .endif
612 .endif
613
614 .if ${MACHINE_CPUARCH} == "amd64"
615 _aac=           aac
616 _aout=          aout
617 _acpi=          acpi
618 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
619 _aesni=         aesni
620 .endif
621 _agp=           agp
622 _an=            an
623 _amdsbwd=       amdsbwd
624 _amdtemp=       amdtemp
625 _arcmsr=        arcmsr
626 _asmc=          asmc
627 _bktr=          bktr
628 _bxe=           bxe
629 _cardbus=       cardbus
630 _cbb=           cbb
631 _cmx=           cmx
632 _ciss=          ciss
633 _coretemp=      coretemp
634 _cpuctl=        cpuctl
635 _cpufreq=       cpufreq
636 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
637 _cyclic=        cyclic
638 .endif
639 _dpms=          dpms
640 _drm=           drm
641 _drm2=          drm2
642 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
643 _dtrace=        dtrace
644 .endif
645 _ed=            ed
646 _et=            et
647 _em=            em
648 _exca=          exca
649 _ext2fs=        ext2fs
650 .if ${MK_SOURCELESS_HOST} != "no"
651 _hpt27xx=       hpt27xx
652 .endif
653 _hptiop=        hptiop
654 .if ${MK_SOURCELESS_HOST} != "no"
655 _hptmv=         hptmv
656 _hptrr=         hptrr
657 .endif
658 _i2c=           i2c
659 _ichwd=         ichwd
660 _ida=           ida
661 _if_ndis=       if_ndis
662 _igb=           igb
663 _iir=           iir
664 _io=            io
665 _ipmi=          ipmi
666 _ips=           ips
667 _ipw=           ipw
668 .if ${MK_SOURCELESS_UCODE} != "no"
669 _ipwfw=         ipwfw
670 .endif
671 _isci=          isci
672 _iwi=           iwi
673 .if ${MK_SOURCELESS_UCODE} != "no"
674 _iwifw=         iwifw
675 .endif
676 _iwn=           iwn
677 .if ${MK_SOURCELESS_UCODE} != "no"
678 _iwnfw=         iwnfw
679 .endif
680 _ixgb=          ixgb
681 _ixgbe=         ixgbe
682 _lindev=        lindev
683 _linprocfs=     linprocfs
684 _linsysfs=      linsysfs
685 _linux=         linux
686 _mly=           mly
687 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
688 _mlx4=          mlx4
689 _mlx4ib=        mlx4ib
690 _mlxen=         mlxen
691 _mthca=         mthca
692 .endif
693 _ndis=          ndis
694 _nfe=           nfe
695 _nvd=           nvd
696 .if ${MK_SOURCELESS_HOST} != "no"
697 _nve=           nve
698 .endif
699 _nvme=          nvme
700 _nvram=         nvram
701 _nxge=          nxge
702 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
703 _opensolaris=   opensolaris
704 .endif
705 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
706 _padlock=       padlock
707 .endif
708 _pccard=        pccard
709 _qlxgb=         qlxgb
710 _rdma=          rdma
711 _s3=            s3
712 _safe=          safe
713 _scsi_low=      scsi_low
714 _sfxge=         sfxge
715 _sound=         sound
716 _speaker=       speaker
717 _splash=        splash
718 _sppp=          sppp
719 _tpm=           tpm
720 _twa=           twa
721 _vesa=          vesa
722 _viawd=         viawd
723 _virtio=        virtio
724 _vmm=           vmm
725 _vxge=          vxge
726 _x86bios=       x86bios
727 _wbwd=          wbwd
728 _wi=            wi
729 _wpi=           wpi
730 .if ${MK_SOURCELESS_UCODE} != "no"
731 _wpifw=         wpifw
732 .endif
733 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
734 _zfs=           zfs
735 .endif
736 .endif
737
738 .if ${MACHINE_CPUARCH} == "arm"
739 _cfi=           cfi
740 _cpsw=          cpsw
741 .endif
742
743 .if ${MACHINE_CPUARCH} == "ia64"
744 _aac=           aac
745 _aic=           aic
746 _an=            an
747 _arcnet=        arcnet
748 _asr=           asr
749 _bktr=          bktr
750 _cardbus=       cardbus
751 _cbb=           cbb
752 _ciss=          ciss
753 _cm=            cm
754 _cmx=           cmx
755 _coff=          coff
756 _cpufreq=       cpufreq
757 _dpt=           dpt
758 _em=            em
759 _ep=            ep
760 _et=            et
761 _exca=          exca
762 _fe=            fe
763 _hptiop=        hptiop
764 _ida=           ida
765 _igb=           igb
766 _iir=           iir
767 _ips=           ips
768 _mly=           mly
769 _pccard=        pccard
770 _scsi_low=      scsi_low
771 _sound=         sound
772 _splash=        splash
773 _sppp=          sppp
774 _streams=       streams
775 _tpm=           tpm
776 _twa=           twa
777 _wi=            wi
778 _xe=            xe
779 .endif
780
781 .if ${MACHINE_CPUARCH} == "powerpc"
782 _agp=           agp
783 _an=            an
784 _bm=            bm
785 _cardbus=       cardbus
786 _cbb=           cbb
787 _cfi=           cfi
788 _cpufreq=       cpufreq
789 _drm=           drm
790 _exca=          exca
791 _nvram=         powermac_nvram
792 _pccard=        pccard
793 _sound=         sound
794 _cyclic=        cyclic
795 _dtrace=        dtrace
796 _opensolaris=   opensolaris
797 .endif
798
799 .if ${MACHINE_ARCH} == "powerpc64"
800 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
801 _cyclic=        cyclic
802 _dtrace=        dtrace
803 _opensolaris=   opensolaris
804 .endif
805 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
806 _zfs=           zfs
807 .endif
808 .endif
809
810 .if ${MACHINE_CPUARCH} == "sparc64"
811 _auxio=         auxio
812 _em=            em
813 _epic=          epic
814 _i2c=           i2c
815 _igb=           igb
816 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
817 _opensolaris=   opensolaris
818 .endif
819 _sound=         sound
820 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
821 _zfs=           zfs
822 .endif
823 .endif
824
825 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
826 SUBDIR=${MODULES_OVERRIDE}
827 .endif
828
829 .for reject in ${WITHOUT_MODULES}
830 SUBDIR:= ${SUBDIR:N${reject}}
831 .endfor
832
833 # Calling kldxref(8) for each module is expensive.
834 .if !defined(NO_XREF)
835 .MAKEFLAGS+=    -DNO_XREF
836 afterinstall:
837         @if type kldxref >/dev/null 2>&1; then \
838                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
839                 kldxref ${DESTDIR}${KMODDIR}; \
840         fi
841 .endif
842
843 .include <bsd.subdir.mk>