]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - sys/modules/Makefile
MFC r252867:
[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         ${_cxgb} \
80         cxgbe \
81         ${_cyclic} \
82         dc \
83         dcons \
84         dcons_crom \
85         de \
86         ${_dpms} \
87         ${_dpt} \
88         ${_drm} \
89         ${_drm2} \
90         ${_dtrace} \
91         dummynet \
92         ${_ed} \
93         ${_elink} \
94         ${_em} \
95         en \
96         ${_ep} \
97         ${_epic} \
98         esp \
99         ${_et} \
100         ${_ex} \
101         ${_exca} \
102         ${_ext2fs} \
103         ${_fatm} \
104         fdc \
105         fdescfs \
106         ${_fe} \
107         ${_filemon} \
108         firewire \
109         firmware \
110         ${_fxp} \
111         gem \
112         geom \
113         ${_glxiic} \
114         ${_glxsb} \
115         hatm \
116         hifn \
117         hme \
118         ${_hpt27xx} \
119         ${_hptiop} \
120         ${_hptmv} \
121         ${_hptnr} \
122         ${_hptrr} \
123         hwpmc \
124         ${_i2c} \
125         ${_ibcs2} \
126         ${_ichwd} \
127         ${_ida} \
128         ${_ie} \
129         if_bridge \
130         ${_if_carp} \
131         if_disc \
132         if_edsc \
133         if_ef \
134         if_epair \
135         if_faith \
136         if_gif \
137         ${_if_gre} \
138         if_lagg \
139         ${_if_ndis} \
140         if_stf \
141         if_tap \
142         if_tun \
143         if_vlan \
144         ${_igb} \
145         ${_iir} \
146         ${_io} \
147         ipdivert \
148         ${_ipfilter} \
149         ${_ipfw} \
150         ipfw_nat \
151         ${_ipmi} \
152         ip6_mroute_mod \
153         ip_mroute_mod \
154         ${_ips} \
155         ${_ipw} \
156         ${_ipwfw} \
157         ${_isci} \
158         iscsi \
159         isp \
160         ${_ispfw} \
161         ${_iwi} \
162         ${_iwifw} \
163         ${_iwn} \
164         ${_iwnfw} \
165         ${_ixgb} \
166         ${_ixgbe} \
167         jme \
168         joy \
169         kbdmux \
170         kgssapi \
171         kgssapi_krb5 \
172         khelp \
173         krpc \
174         ksyms \
175         le \
176         lge \
177         libalias \
178         libiconv \
179         libmbpool \
180         libmchain \
181         ${_lindev} \
182         ${_linprocfs} \
183         ${_linsysfs} \
184         ${_linux} \
185         lmc \
186         lpt \
187         mac_biba \
188         mac_bsdextended \
189         mac_ifoff \
190         mac_lomac \
191         mac_mls \
192         mac_none \
193         mac_partition \
194         mac_portacl \
195         mac_seeotheruids \
196         mac_stub \
197         mac_test \
198         malo \
199         mcd \
200         md \
201         mem \
202         mfi \
203         mii \
204         mlx \
205         ${_mlx4} \
206         ${_mlx4ib} \
207         ${_mlxen} \
208         ${_mly} \
209         mmc \
210         mmcsd \
211         mps \
212         mpt \
213         mqueue \
214         msdosfs \
215         msdosfs_iconv \
216         ${_mse} \
217         msk \
218         ${_mthca} \
219         mvs \
220         mwl \
221         ${_mwlfw} \
222         mxge \
223         my \
224         ${_ncp} \
225         ${_ncv} \
226         ${_ndis} \
227         ${_netgraph} \
228         ${_nfe} \
229         nfs_common \
230         nfscl \
231         nfsclient \
232         nfscommon \
233         nfsd \
234         nfslock \
235         nfslockd \
236         nfsserver \
237         nfssvc \
238         nge \
239         nmdm \
240         ${_nsp} \
241         ntfs \
242         ntfs_iconv \
243         nullfs \
244         ${_nvd} \
245         ${_nve} \
246         ${_nvme} \
247         ${_nvram} \
248         ${_nwfs} \
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         portalfs \
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         sem \
290         send \
291         ${_sf} \
292         ${_sfxge} \
293         sge \
294         siba_bwn \
295         siftr \
296         siis \
297         sis \
298         sk \
299         ${_smbfs} \
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         ${_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         xfs \
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" || defined(ALL_MODULES)
395 _if_gre=        if_gre
396 .endif
397
398 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
399         defined(ALL_MODULES)
400 _if_carp=       if_carp
401 _toecore=       toecore
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 _ipfw=          ipfw
410 .endif
411
412 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
413 _netgraph=      netgraph
414 .endif
415
416 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
417         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
418 _pf=            pf
419 _pflog=         pflog
420 .if ${MK_INET_SUPPORT} != "no"
421 _pfsync=        pfsync
422 .endif
423 .endif
424
425 .if ${MK_SOURCELESS_UCODE} != "no"
426 _bce=           bce
427 _fatm=          fatm
428 _fxp=           fxp
429 _ispfw=         ispfw
430 _mwlfw=         mwlfw
431 _ralfw=         ralfw
432 _runfw=         runfw
433 _sf=            sf
434 _sn=            sn
435 _ti=            ti
436 _txp=           txp
437 .endif
438
439 .if ${MACHINE_CPUARCH} == "i386"
440 # XXX some of these can move to the general case when de-i386'ed
441 # XXX some of these can move now, but are untested on other architectures.
442 _3dfx=          3dfx
443 _3dfx_linux=    3dfx_linux
444 _agp=           agp
445 _aic=           aic
446 _amd=           amd
447 _an=            an
448 _aout=          aout
449 _apm=           apm
450 _arcnet=        arcnet
451 _bktr=          bktr
452 _bxe=           bxe
453 _cardbus=       cardbus
454 _cbb=           cbb
455 .if ${MK_SOURCELESS_UCODE} != "no"
456 _ce=            ce
457 .endif
458 _coff=          coff
459 .if ${MK_SOURCELESS_UCODE} != "no"
460 _cp=            cp
461 .endif
462 _cpuctl=        cpuctl
463 _cpufreq=       cpufreq
464 _cs=            cs
465 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
466 _cyclic=        cyclic
467 .endif
468 _dpms=          dpms
469 _drm=           drm
470 _drm2=          drm2
471 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
472 _dtrace=        dtrace
473 .endif
474 _ed=            ed
475 _elink=         elink
476 _em=            em
477 _ep=            ep
478 _et=            et
479 _exca=          exca
480 _ext2fs=        ext2fs
481 _fe=            fe
482 _glxiic=        glxiic
483 _glxsb=         glxsb
484 _i2c=           i2c
485 _ibcs2=         ibcs2
486 _ie=            ie
487 _if_ndis=       if_ndis
488 _igb=           igb
489 _io=            io
490 _lindev=        lindev
491 _linprocfs=     linprocfs
492 _linsysfs=      linsysfs
493 _linux=         linux
494 _mse=           mse
495 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
496 _mlx4=          mlx4
497 _mlx4ib=        mlx4ib
498 _mlxen=         mlxen
499 _mthca=         mthca
500 .endif
501 .if ${MK_NCP} != "no"
502 _ncp=           ncp
503 .endif
504 _ncv=           ncv
505 _ndis=          ndis
506 _nsp=           nsp
507 .if ${MK_NCP} != "no"
508 _nwfs=          nwfs
509 .endif
510 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
511 _opensolaris=   opensolaris
512 .endif
513 _pccard=        pccard
514 _pcfclock=      pcfclock
515 _pst=           pst
516 _rdma=          rdma
517 _safe=          safe
518 _sbni=          sbni
519 _scsi_low=      scsi_low
520 _smbfs=         smbfs
521 _sound=         sound
522 _speaker=       speaker
523 _splash=        splash
524 _sppp=          sppp
525 _stg=           stg
526 _streams=       streams
527 _svr4=          svr4
528 _vxge=          vxge
529 _wbwd=          wbwd
530 _wi=            wi
531 _xe=            xe
532 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
533 _zfs=           zfs
534 .endif
535 .if ${MACHINE} == "i386"
536 _aac=           aac
537 _aacraid=       aacraid
538 _acpi=          acpi
539 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
540 _aesni=         aesni
541 .endif
542 _ahb=           ahb
543 _amdsbwd=       amdsbwd
544 _amdtemp=       amdtemp
545 _arcmsr=        arcmsr
546 _asmc=          asmc
547 _asr=           asr
548 _bios=          bios
549 _ciss=          ciss
550 _cm=            cm
551 _cmx=           cmx
552 _coretemp=      coretemp
553 .if ${MK_SOURCELESS_UCODE} != "no"
554 _ctau=          ctau
555 .endif
556 _dpt=           dpt
557 _ex=            ex
558 .if ${MK_SOURCELESS_HOST} != "no"
559 _hpt27xx=       hpt27xx
560 .endif
561 _hptiop=        hptiop
562 .if ${MK_SOURCELESS_HOST} != "no"
563 _hptmv=         hptmv
564 _hptnr=         hptnr
565 _hptrr=         hptrr
566 .endif
567 _ichwd=         ichwd
568 _ida=           ida
569 _iir=           iir
570 _ipmi=          ipmi
571 _ips=           ips
572 _ipw=           ipw
573 .if ${MK_SOURCELESS_UCODE} != "no"
574 _ipwfw=         ipwfw
575 .endif
576 _isci=          isci
577 _iwi=           iwi
578 .if ${MK_SOURCELESS_UCODE} != "no"
579 _iwifw=         iwifw
580 .endif
581 _iwn=           iwn
582 .if ${MK_SOURCELESS_UCODE} != "no"
583 _iwnfw=         iwnfw
584 .endif
585 _ixgb=          ixgb
586 _ixgbe=         ixgbe
587 _mly=           mly
588 _nfe=           nfe
589 _nvd=           nvd
590 .if ${MK_SOURCELESS_HOST} != "no"
591 _nve=           nve
592 .endif
593 _nvme=          nvme
594 _nvram=         nvram
595 _nxge=          nxge
596 _tpm=           tpm
597 _viawd=         viawd
598 _wpi=           wpi
599 .if ${MK_SOURCELESS_UCODE} != "no"
600 _wpifw=         wpifw
601 .endif
602 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
603 _padlock=       padlock
604 .endif
605 _s3=            s3
606 _twa=           twa
607 _vesa=          vesa
608 _virtio=        virtio
609 _x86bios=       x86bios
610 .elif ${MACHINE} == "pc98"
611 _canbepm=       canbepm
612 _canbus=        canbus
613 _pmc=           pmc
614 _snc=           snc
615 .endif
616 .endif
617
618 .if ${MACHINE_CPUARCH} == "amd64"
619 _aac=           aac
620 _aacraid=       aacraid
621 _aout=          aout
622 _acpi=          acpi
623 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
624 _aesni=         aesni
625 .endif
626 _agp=           agp
627 _an=            an
628 _amdsbwd=       amdsbwd
629 _amdtemp=       amdtemp
630 _arcmsr=        arcmsr
631 _asmc=          asmc
632 _bxe=           bxe
633 _cardbus=       cardbus
634 _cbb=           cbb
635 _cmx=           cmx
636 _ciss=          ciss
637 _coretemp=      coretemp
638 _cpuctl=        cpuctl
639 _cpufreq=       cpufreq
640 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
641 _cyclic=        cyclic
642 .endif
643 _dpms=          dpms
644 _drm=           drm
645 _drm2=          drm2
646 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
647 _dtrace=        dtrace
648 .endif
649 _ed=            ed
650 _et=            et
651 _em=            em
652 _exca=          exca
653 _ext2fs=        ext2fs
654 .if ${MK_SOURCELESS_HOST} != "no"
655 _hpt27xx=       hpt27xx
656 .endif
657 _hptiop=        hptiop
658 .if ${MK_SOURCELESS_HOST} != "no"
659 _hptmv=         hptmv
660 _hptnr=         hptnr
661 _hptrr=         hptrr
662 .endif
663 _i2c=           i2c
664 _ichwd=         ichwd
665 _ida=           ida
666 _if_ndis=       if_ndis
667 _igb=           igb
668 _iir=           iir
669 _io=            io
670 _ipmi=          ipmi
671 _ips=           ips
672 _ipw=           ipw
673 .if ${MK_SOURCELESS_UCODE} != "no"
674 _ipwfw=         ipwfw
675 .endif
676 _isci=          isci
677 _iwi=           iwi
678 .if ${MK_SOURCELESS_UCODE} != "no"
679 _iwifw=         iwifw
680 .endif
681 _iwn=           iwn
682 .if ${MK_SOURCELESS_UCODE} != "no"
683 _iwnfw=         iwnfw
684 .endif
685 _ixgb=          ixgb
686 _ixgbe=         ixgbe
687 _lindev=        lindev
688 _linprocfs=     linprocfs
689 _linsysfs=      linsysfs
690 _linux=         linux
691 _mly=           mly
692 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
693 _mlx4=          mlx4
694 _mlx4ib=        mlx4ib
695 _mlxen=         mlxen
696 _mthca=         mthca
697 .endif
698 _ndis=          ndis
699 _nfe=           nfe
700 _nvd=           nvd
701 .if ${MK_SOURCELESS_HOST} != "no"
702 _nve=           nve
703 .endif
704 _nvme=          nvme
705 _nvram=         nvram
706 _nxge=          nxge
707 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
708 _opensolaris=   opensolaris
709 .endif
710 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
711 _padlock=       padlock
712 .endif
713 _pccard=        pccard
714 _qlxgb=         qlxgb
715 _rdma=          rdma    
716 _s3=            s3
717 _safe=          safe
718 _scsi_low=      scsi_low
719 _sfxge=         sfxge
720 _smbfs=         smbfs
721 _sound=         sound
722 _speaker=       speaker
723 _splash=        splash
724 _sppp=          sppp
725 _tpm=           tpm
726 _twa=           twa
727 _vesa=          vesa
728 _viawd=         viawd
729 _virtio=        virtio
730 _vxge=          vxge
731 _x86bios=       x86bios
732 _wbwd=          wbwd
733 _wi=            wi
734 _wpi=           wpi
735 .if ${MK_SOURCELESS_UCODE} != "no"
736 _wpifw=         wpifw
737 .endif
738 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
739 _zfs=           zfs
740 .endif
741 .endif
742
743 .if ${MACHINE_CPUARCH} == "ia64"
744 _aac=           aac
745 _aacraid=       aacraid
746 _aic=           aic
747 _an=            an
748 _arcnet=        arcnet
749 _asr=           asr
750 _bktr=          bktr
751 _cardbus=       cardbus
752 _cbb=           cbb
753 _ciss=          ciss
754 _cm=            cm
755 _cmx=           cmx
756 _coff=          coff
757 _cpufreq=       cpufreq
758 _dpt=           dpt
759 _em=            em
760 _ep=            ep
761 _et=            et
762 _exca=          exca
763 _fe=            fe
764 _hptiop=        hptiop
765 _ida=           ida
766 _igb=           igb
767 _iir=           iir
768 _ips=           ips
769 _mly=           mly
770 _pccard=        pccard
771 _scsi_low=      scsi_low
772 _smbfs=         smbfs
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 _cpufreq=       cpufreq
788 _nvram=         powermac_nvram
789 _smbfs=         smbfs
790 _sound=         sound
791 .endif
792
793 .if ${MACHINE_ARCH} == "powerpc64"
794 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
795 _opensolaris=   opensolaris
796 .endif
797 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
798 _zfs=           zfs
799 .endif
800 .endif
801
802 .if ${MACHINE_CPUARCH} == "sparc64"
803 _auxio=         auxio
804 _em=            em
805 _epic=          epic
806 _i2c=           i2c
807 _igb=           igb
808 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
809 _opensolaris=   opensolaris
810 .endif
811 _smbfs=         smbfs
812 _sound=         sound
813 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
814 _zfs=           zfs
815 .endif
816 .endif
817
818 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
819 SUBDIR=${MODULES_OVERRIDE}
820 .endif
821
822 .for reject in ${WITHOUT_MODULES}
823 SUBDIR:= ${SUBDIR:N${reject}}
824 .endfor
825
826 # Calling kldxref(8) for each module is expensive.
827 .if !defined(NO_XREF)
828 .MAKEFLAGS+=    -DNO_XREF
829 afterinstall:
830         @if type kldxref >/dev/null 2>&1; then \
831                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
832                 kldxref ${DESTDIR}${KMODDIR}; \
833         fi
834 .endif
835
836 .include <bsd.subdir.mk>