]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - sys/modules/Makefile
MFC r260020:
[FreeBSD/stable/9.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         ${_aacraid} \
13         accf_data \
14         accf_dns \
15         accf_http \
16         ${_acpi} \
17         ae \
18         ${_aesni} \
19         age \
20         ${_agp} \
21         aha \
22         ${_ahb} \
23         ahci \
24         ${_aic} \
25         aic7xxx \
26         aio \
27         alc \
28         ale \
29         alq \
30         ${_amd} \
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         cas \
60         ${_cbb} \
61         cc \
62         cd9660 \
63         cd9660_iconv \
64         ${_ce} \
65         ${_ciss} \
66         ${_cm} \
67         ${_cmx} \
68         coda \
69         coda5 \
70         ${_coff} \
71         ${_coretemp} \
72         ${_cp} \
73         ${_cpuctl} \
74         ${_cpufreq} \
75         ${_crypto} \
76         ${_cryptodev} \
77         ${_cs} \
78         ${_ctau} \
79         ctl \
80         ${_cxgb} \
81         cxgbe \
82         ${_cyclic} \
83         dc \
84         dcons \
85         dcons_crom \
86         de \
87         ${_dpms} \
88         ${_dpt} \
89         ${_drm} \
90         ${_drm2} \
91         ${_dtrace} \
92         dummynet \
93         ${_ed} \
94         ${_elink} \
95         ${_em} \
96         en \
97         ${_ep} \
98         ${_epic} \
99         esp \
100         ${_et} \
101         ${_ex} \
102         ${_exca} \
103         ${_ext2fs} \
104         ${_fatm} \
105         fdc \
106         fdescfs \
107         ${_fe} \
108         ${_filemon} \
109         firewire \
110         firmware \
111         ${_fxp} \
112         gem \
113         geom \
114         ${_glxiic} \
115         ${_glxsb} \
116         hatm \
117         hifn \
118         hme \
119         ${_hpt27xx} \
120         ${_hptiop} \
121         ${_hptmv} \
122         ${_hptnr} \
123         ${_hptrr} \
124         hwpmc \
125         ${_i2c} \
126         ${_ibcs2} \
127         ${_ichwd} \
128         ${_ida} \
129         ${_ie} \
130         if_bridge \
131         ${_if_carp} \
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         ${_ncp} \
226         ${_ncv} \
227         ${_ndis} \
228         ${_netgraph} \
229         ${_nfe} \
230         nfs_common \
231         nfscl \
232         nfsclient \
233         nfscommon \
234         nfsd \
235         nfslock \
236         nfslockd \
237         nfsserver \
238         nfssvc \
239         nge \
240         nmdm \
241         ${_nsp} \
242         ntfs \
243         ntfs_iconv \
244         nullfs \
245         ${_nvd} \
246         ${_nve} \
247         ${_nvme} \
248         ${_nvram} \
249         ${_nwfs} \
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         portalfs \
264         ppbus \
265         ppc \
266         ppi \
267         pps \
268         procfs \
269         pseudofs \
270         ${_pst} \
271         pty  \
272         puc \
273         ${_qlxge} \
274         ${_qlxgb} \
275         ${_qlxgbe} \
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} == "i386" || ${MACHINE_CPUARCH} == "amd64"
368 _filemon=       filemon
369 .endif
370
371 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
372         ${MACHINE_CPUARCH} != "mips"
373 _syscons=       syscons
374 _vpo=           vpo
375 .endif
376
377 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
378 # no BUS_SPACE_UNSPECIFIED
379 # No barrier instruction support (specific to this driver)
380 _sym=           sym
381 # intr_disable() is a macro, causes problems
382 .if ${MK_SOURCELESS_UCODE} != "no"
383 _cxgb=          cxgb
384 .endif
385 .endif
386
387 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
388 .if exists(${.CURDIR}/../opencrypto)
389 _crypto=        crypto
390 _cryptodev=     cryptodev
391 .endif
392 .if exists(${.CURDIR}/../crypto)
393 _random=        random
394 .endif
395 .endif
396
397 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
398 _if_gre=        if_gre
399 .endif
400
401 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
402         defined(ALL_MODULES)
403 _if_carp=       if_carp
404 _toecore=       toecore
405 .endif
406
407 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
408 _ipfilter=      ipfilter
409 .endif
410
411 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
412 _ipfw=          ipfw
413 .endif
414
415 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
416 _netgraph=      netgraph
417 .endif
418
419 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
420         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
421 _pf=            pf
422 _pflog=         pflog
423 .if ${MK_INET_SUPPORT} != "no"
424 _pfsync=        pfsync
425 .endif
426 .endif
427
428 .if ${MK_SOURCELESS_UCODE} != "no"
429 _bce=           bce
430 _fatm=          fatm
431 _fxp=           fxp
432 _ispfw=         ispfw
433 _mwlfw=         mwlfw
434 _ralfw=         ralfw
435 _runfw=         runfw
436 _sf=            sf
437 _sn=            sn
438 _ti=            ti
439 _txp=           txp
440 .endif
441
442 .if ${MACHINE_CPUARCH} == "i386"
443 # XXX some of these can move to the general case when de-i386'ed
444 # XXX some of these can move now, but are untested on other architectures.
445 _3dfx=          3dfx
446 _3dfx_linux=    3dfx_linux
447 _agp=           agp
448 _aic=           aic
449 _amd=           amd
450 _an=            an
451 _aout=          aout
452 _apm=           apm
453 _arcnet=        arcnet
454 _bktr=          bktr
455 _bxe=           bxe
456 _cardbus=       cardbus
457 _cbb=           cbb
458 .if ${MK_SOURCELESS_UCODE} != "no"
459 _ce=            ce
460 .endif
461 _coff=          coff
462 .if ${MK_SOURCELESS_UCODE} != "no"
463 _cp=            cp
464 .endif
465 _cpuctl=        cpuctl
466 _cpufreq=       cpufreq
467 _cs=            cs
468 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
469 _cyclic=        cyclic
470 .endif
471 _dpms=          dpms
472 _drm=           drm
473 _drm2=          drm2
474 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
475 _dtrace=        dtrace
476 .endif
477 _ed=            ed
478 _elink=         elink
479 _em=            em
480 _ep=            ep
481 _et=            et
482 _exca=          exca
483 _ext2fs=        ext2fs
484 _fe=            fe
485 _glxiic=        glxiic
486 _glxsb=         glxsb
487 _i2c=           i2c
488 _ibcs2=         ibcs2
489 _ie=            ie
490 _if_ndis=       if_ndis
491 _igb=           igb
492 _io=            io
493 _lindev=        lindev
494 _linprocfs=     linprocfs
495 _linsysfs=      linsysfs
496 _linux=         linux
497 _mse=           mse
498 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
499 _mlx4=          mlx4
500 _mlx4ib=        mlx4ib
501 _mlxen=         mlxen
502 _mthca=         mthca
503 .endif
504 .if ${MK_NCP} != "no"
505 _ncp=           ncp
506 .endif
507 _ncv=           ncv
508 _ndis=          ndis
509 _nsp=           nsp
510 .if ${MK_NCP} != "no"
511 _nwfs=          nwfs
512 .endif
513 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
514 _opensolaris=   opensolaris
515 .endif
516 _pccard=        pccard
517 _pcfclock=      pcfclock
518 _pst=           pst
519 _rdma=          rdma
520 _safe=          safe
521 _sbni=          sbni
522 _scsi_low=      scsi_low
523 _smbfs=         smbfs
524 _sound=         sound
525 _speaker=       speaker
526 _splash=        splash
527 _sppp=          sppp
528 _stg=           stg
529 _streams=       streams
530 _svr4=          svr4
531 _vxge=          vxge
532 _wbwd=          wbwd
533 _wi=            wi
534 _xe=            xe
535 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
536 _zfs=           zfs
537 .endif
538 .if ${MACHINE} == "i386"
539 _aac=           aac
540 _aacraid=       aacraid
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 _hptnr=         hptnr
568 _hptrr=         hptrr
569 .endif
570 _ichwd=         ichwd
571 _ida=           ida
572 _iir=           iir
573 _ipmi=          ipmi
574 _ips=           ips
575 _ipw=           ipw
576 .if ${MK_SOURCELESS_UCODE} != "no"
577 _ipwfw=         ipwfw
578 .endif
579 _isci=          isci
580 _iwi=           iwi
581 .if ${MK_SOURCELESS_UCODE} != "no"
582 _iwifw=         iwifw
583 .endif
584 _iwn=           iwn
585 .if ${MK_SOURCELESS_UCODE} != "no"
586 _iwnfw=         iwnfw
587 .endif
588 _ixgb=          ixgb
589 _ixgbe=         ixgbe
590 _mly=           mly
591 _nfe=           nfe
592 _nvd=           nvd
593 .if ${MK_SOURCELESS_HOST} != "no"
594 _nve=           nve
595 .endif
596 _nvme=          nvme
597 _nvram=         nvram
598 _nxge=          nxge
599 _tpm=           tpm
600 _viawd=         viawd
601 _wpi=           wpi
602 .if ${MK_SOURCELESS_UCODE} != "no"
603 _wpifw=         wpifw
604 .endif
605 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
606 _padlock=       padlock
607 .endif
608 _s3=            s3
609 _twa=           twa
610 _vesa=          vesa
611 _virtio=        virtio
612 _x86bios=       x86bios
613 .elif ${MACHINE} == "pc98"
614 _canbepm=       canbepm
615 _canbus=        canbus
616 _pmc=           pmc
617 _snc=           snc
618 .endif
619 .endif
620
621 .if ${MACHINE_CPUARCH} == "amd64"
622 _aac=           aac
623 _aacraid=       aacraid
624 _aout=          aout
625 _acpi=          acpi
626 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
627 _aesni=         aesni
628 .endif
629 _agp=           agp
630 _an=            an
631 _amdsbwd=       amdsbwd
632 _amdtemp=       amdtemp
633 _arcmsr=        arcmsr
634 _asmc=          asmc
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 _hptnr=         hptnr
664 _hptrr=         hptrr
665 .endif
666 _i2c=           i2c
667 _ichwd=         ichwd
668 _ida=           ida
669 _if_ndis=       if_ndis
670 _igb=           igb
671 _iir=           iir
672 _io=            io
673 _ipmi=          ipmi
674 _ips=           ips
675 _ipw=           ipw
676 .if ${MK_SOURCELESS_UCODE} != "no"
677 _ipwfw=         ipwfw
678 .endif
679 _isci=          isci
680 _iwi=           iwi
681 .if ${MK_SOURCELESS_UCODE} != "no"
682 _iwifw=         iwifw
683 .endif
684 _iwn=           iwn
685 .if ${MK_SOURCELESS_UCODE} != "no"
686 _iwnfw=         iwnfw
687 .endif
688 _ixgb=          ixgb
689 _ixgbe=         ixgbe
690 _lindev=        lindev
691 _linprocfs=     linprocfs
692 _linsysfs=      linsysfs
693 _linux=         linux
694 _mly=           mly
695 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
696 _mlx4=          mlx4
697 _mlx4ib=        mlx4ib
698 _mlxen=         mlxen
699 _mthca=         mthca
700 .endif
701 _ndis=          ndis
702 _nfe=           nfe
703 _nvd=           nvd
704 .if ${MK_SOURCELESS_HOST} != "no"
705 _nve=           nve
706 .endif
707 _nvme=          nvme
708 _nvram=         nvram
709 _nxge=          nxge
710 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
711 _opensolaris=   opensolaris
712 .endif
713 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
714 _padlock=       padlock
715 .endif
716 _pccard=        pccard
717 _qlxge=         qlxge
718 _qlxgb=         qlxgb
719 _qlxgbe=        qlxgbe
720 _rdma=          rdma
721 _s3=            s3
722 _safe=          safe
723 _scsi_low=      scsi_low
724 _sfxge=         sfxge
725 _smbfs=         smbfs
726 _sound=         sound
727 _speaker=       speaker
728 _splash=        splash
729 _sppp=          sppp
730 _tpm=           tpm
731 _twa=           twa
732 _vesa=          vesa
733 _viawd=         viawd
734 _virtio=        virtio
735 _vxge=          vxge
736 _x86bios=       x86bios
737 _wbwd=          wbwd
738 _wi=            wi
739 _wpi=           wpi
740 .if ${MK_SOURCELESS_UCODE} != "no"
741 _wpifw=         wpifw
742 .endif
743 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
744 _zfs=           zfs
745 .endif
746 .endif
747
748 .if ${MACHINE_CPUARCH} == "ia64"
749 _aac=           aac
750 _aacraid=       aacraid
751 _aic=           aic
752 _an=            an
753 _arcnet=        arcnet
754 _asr=           asr
755 _bktr=          bktr
756 _cardbus=       cardbus
757 _cbb=           cbb
758 _ciss=          ciss
759 _cm=            cm
760 _cmx=           cmx
761 _coff=          coff
762 _cpufreq=       cpufreq
763 _dpt=           dpt
764 _em=            em
765 _ep=            ep
766 _et=            et
767 _exca=          exca
768 _fe=            fe
769 _hptiop=        hptiop
770 _ida=           ida
771 _igb=           igb
772 _iir=           iir
773 _ips=           ips
774 _mly=           mly
775 _pccard=        pccard
776 _scsi_low=      scsi_low
777 _smbfs=         smbfs
778 _sound=         sound
779 _splash=        splash
780 _sppp=          sppp
781 _streams=       streams
782 _tpm=           tpm
783 _twa=           twa
784 _wi=            wi
785 _xe=            xe
786 .endif
787
788 .if ${MACHINE_CPUARCH} == "powerpc"
789 _agp=           agp
790 _an=            an
791 _bm=            bm
792 _cpufreq=       cpufreq
793 _nvram=         powermac_nvram
794 _smbfs=         smbfs
795 _sound=         sound
796 .endif
797
798 .if ${MACHINE_ARCH} == "powerpc64"
799 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
800 _opensolaris=   opensolaris
801 .endif
802 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
803 _zfs=           zfs
804 .endif
805 .endif
806
807 .if ${MACHINE_CPUARCH} == "sparc64"
808 _auxio=         auxio
809 _em=            em
810 _epic=          epic
811 _i2c=           i2c
812 _igb=           igb
813 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
814 _opensolaris=   opensolaris
815 .endif
816 _smbfs=         smbfs
817 _sound=         sound
818 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
819 _zfs=           zfs
820 .endif
821 .endif
822
823 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
824 SUBDIR=${MODULES_OVERRIDE}
825 .endif
826
827 .for reject in ${WITHOUT_MODULES}
828 SUBDIR:= ${SUBDIR:N${reject}}
829 .endfor
830
831 # Calling kldxref(8) for each module is expensive.
832 .if !defined(NO_XREF)
833 .MAKEFLAGS+=    -DNO_XREF
834 afterinstall:
835         @if type kldxref >/dev/null 2>&1; then \
836                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
837                 kldxref ${DESTDIR}${KMODDIR}; \
838         fi
839 .endif
840
841 .include <bsd.subdir.mk>