]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - sys/modules/Makefile
MFC the mpr(4) driver for LSI's 12Gb SAS cards.
[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         mpr \
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         ${_ncp} \
227         ${_ncv} \
228         ${_ndis} \
229         ${_netgraph} \
230         ${_nfe} \
231         nfs_common \
232         nfscl \
233         nfsclient \
234         nfscommon \
235         nfsd \
236         nfslock \
237         nfslockd \
238         nfsserver \
239         nfssvc \
240         nge \
241         nmdm \
242         ${_nsp} \
243         ntfs \
244         ntfs_iconv \
245         nullfs \
246         ${_nvd} \
247         ${_nve} \
248         ${_nvme} \
249         ${_nvram} \
250         ${_nwfs} \
251         ${_nxge} \
252         ${_opensolaris} \
253         oce \
254         ${_padlock} \
255         patm \
256         ${_pccard} \
257         ${_pcfclock} \
258         pcn \
259         ${_pf} \
260         ${_pflog} \
261         ${_pfsync} \
262         plip \
263         ${_pmc} \
264         portalfs \
265         ppbus \
266         ppc \
267         ppi \
268         pps \
269         procfs \
270         pseudofs \
271         ${_pst} \
272         pty  \
273         puc \
274         ${_qlxge} \
275         ${_qlxgb} \
276         ${_qlxgbe} \
277         ral \
278         ${_ralfw} \
279         ${_random} \
280         rc4 \
281         ${_rdma} \
282         re \
283         reiserfs \
284         rl \
285         ${_runfw} \
286         ${_s3} \
287         ${_safe} \
288         ${_sbni} \
289         scc \
290         scd \
291         ${_scsi_low} \
292         sdhci \
293         sem \
294         send \
295         ${_sf} \
296         ${_sfxge} \
297         sge \
298         siba_bwn \
299         siftr \
300         siis \
301         sis \
302         sk \
303         ${_smbfs} \
304         ${_sn} \
305         ${_snc} \
306         snp \
307         ${_sound} \
308         ${_speaker} \
309         ${_splash} \
310         ${_sppp} \
311         ste \
312         ${_stg} \
313         stge \
314         ${_streams} \
315         ${_svr4} \
316         ${_sym} \
317         ${_syscons} \
318         sysvipc \
319         ${_ti} \
320         tl \
321         tmpfs \
322         ${_toecore} \
323         ${_tpm} \
324         trm \
325         ${_twa} \
326         twe \
327         tws \
328         tx \
329         ${_txp} \
330         uart \
331         ubsec \
332         udf \
333         udf_iconv \
334         ufs \
335         unionfs \
336         usb \
337         utopia \
338         ${_vesa} \
339         ${_virtio} \
340         vge \
341         ${_viawd} \
342         vkbd \
343         ${_vpo} \
344         vr \
345         vte \
346         vx \
347         ${_vxge} \
348         wb \
349         ${_wbwd} \
350         ${_wi} \
351         wlan \
352         wlan_acl \
353         wlan_amrr \
354         wlan_ccmp \
355         wlan_rssadapt \
356         wlan_tkip \
357         wlan_wep \
358         wlan_xauth \
359         ${_wpi} \
360         ${_wpifw} \
361         ${_x86bios} \
362         ${_xe} \
363         xfs \
364         xl \
365         ${_zfs} \
366         zlib \
367
368 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
369 _filemon=       filemon
370 .endif
371
372 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
373         ${MACHINE_CPUARCH} != "mips"
374 _syscons=       syscons
375 _vpo=           vpo
376 .endif
377
378 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
379 # no BUS_SPACE_UNSPECIFIED
380 # No barrier instruction support (specific to this driver)
381 _sym=           sym
382 # intr_disable() is a macro, causes problems
383 .if ${MK_SOURCELESS_UCODE} != "no"
384 _cxgb=          cxgb
385 .endif
386 .endif
387
388 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
389 .if exists(${.CURDIR}/../opencrypto)
390 _crypto=        crypto
391 _cryptodev=     cryptodev
392 .endif
393 .if exists(${.CURDIR}/../crypto)
394 _random=        random
395 .endif
396 .endif
397
398 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
399 _if_gre=        if_gre
400 .endif
401
402 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
403         defined(ALL_MODULES)
404 _if_carp=       if_carp
405 _toecore=       toecore
406 .endif
407
408 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
409 _ipfilter=      ipfilter
410 .endif
411
412 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
413 _ipfw=          ipfw
414 .endif
415
416 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
417 _netgraph=      netgraph
418 .endif
419
420 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
421         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
422 _pf=            pf
423 _pflog=         pflog
424 .if ${MK_INET_SUPPORT} != "no"
425 _pfsync=        pfsync
426 .endif
427 .endif
428
429 .if ${MK_SOURCELESS_UCODE} != "no"
430 _bce=           bce
431 _fatm=          fatm
432 _fxp=           fxp
433 _ispfw=         ispfw
434 _mwlfw=         mwlfw
435 _ralfw=         ralfw
436 _runfw=         runfw
437 _sf=            sf
438 _sn=            sn
439 _ti=            ti
440 _txp=           txp
441 .endif
442
443 .if ${MACHINE_CPUARCH} == "i386"
444 # XXX some of these can move to the general case when de-i386'ed
445 # XXX some of these can move now, but are untested on other architectures.
446 _3dfx=          3dfx
447 _3dfx_linux=    3dfx_linux
448 _agp=           agp
449 _aic=           aic
450 _amd=           amd
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 _aacraid=       aacraid
542 _acpi=          acpi
543 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
544 _aesni=         aesni
545 .endif
546 _ahb=           ahb
547 _amdsbwd=       amdsbwd
548 _amdtemp=       amdtemp
549 _arcmsr=        arcmsr
550 _asmc=          asmc
551 _asr=           asr
552 _bios=          bios
553 _ciss=          ciss
554 _cm=            cm
555 _cmx=           cmx
556 _coretemp=      coretemp
557 .if ${MK_SOURCELESS_UCODE} != "no"
558 _ctau=          ctau
559 .endif
560 _dpt=           dpt
561 _ex=            ex
562 .if ${MK_SOURCELESS_HOST} != "no"
563 _hpt27xx=       hpt27xx
564 .endif
565 _hptiop=        hptiop
566 .if ${MK_SOURCELESS_HOST} != "no"
567 _hptmv=         hptmv
568 _hptnr=         hptnr
569 _hptrr=         hptrr
570 .endif
571 _ichwd=         ichwd
572 _ida=           ida
573 _iir=           iir
574 _ipmi=          ipmi
575 _ips=           ips
576 _ipw=           ipw
577 .if ${MK_SOURCELESS_UCODE} != "no"
578 _ipwfw=         ipwfw
579 .endif
580 _isci=          isci
581 _iwi=           iwi
582 .if ${MK_SOURCELESS_UCODE} != "no"
583 _iwifw=         iwifw
584 .endif
585 _iwn=           iwn
586 .if ${MK_SOURCELESS_UCODE} != "no"
587 _iwnfw=         iwnfw
588 .endif
589 _ixgb=          ixgb
590 _ixgbe=         ixgbe
591 _mly=           mly
592 _nfe=           nfe
593 _nvd=           nvd
594 .if ${MK_SOURCELESS_HOST} != "no"
595 _nve=           nve
596 .endif
597 _nvme=          nvme
598 _nvram=         nvram
599 _nxge=          nxge
600 _tpm=           tpm
601 _viawd=         viawd
602 _wpi=           wpi
603 .if ${MK_SOURCELESS_UCODE} != "no"
604 _wpifw=         wpifw
605 .endif
606 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
607 _padlock=       padlock
608 .endif
609 _s3=            s3
610 _twa=           twa
611 _vesa=          vesa
612 _virtio=        virtio
613 _x86bios=       x86bios
614 .elif ${MACHINE} == "pc98"
615 _canbepm=       canbepm
616 _canbus=        canbus
617 _pmc=           pmc
618 _snc=           snc
619 .endif
620 .endif
621
622 .if ${MACHINE_CPUARCH} == "amd64"
623 _aac=           aac
624 _aacraid=       aacraid
625 _aout=          aout
626 _acpi=          acpi
627 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
628 _aesni=         aesni
629 .endif
630 _agp=           agp
631 _an=            an
632 _amdsbwd=       amdsbwd
633 _amdtemp=       amdtemp
634 _arcmsr=        arcmsr
635 _asmc=          asmc
636 _bxe=           bxe
637 _cardbus=       cardbus
638 _cbb=           cbb
639 _cmx=           cmx
640 _ciss=          ciss
641 _coretemp=      coretemp
642 _cpuctl=        cpuctl
643 _cpufreq=       cpufreq
644 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
645 _cyclic=        cyclic
646 .endif
647 _dpms=          dpms
648 _drm=           drm
649 _drm2=          drm2
650 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
651 _dtrace=        dtrace
652 .endif
653 _ed=            ed
654 _et=            et
655 _em=            em
656 _exca=          exca
657 _ext2fs=        ext2fs
658 .if ${MK_SOURCELESS_HOST} != "no"
659 _hpt27xx=       hpt27xx
660 .endif
661 _hptiop=        hptiop
662 .if ${MK_SOURCELESS_HOST} != "no"
663 _hptmv=         hptmv
664 _hptnr=         hptnr
665 _hptrr=         hptrr
666 .endif
667 _i2c=           i2c
668 _ichwd=         ichwd
669 _ida=           ida
670 _if_ndis=       if_ndis
671 _igb=           igb
672 _iir=           iir
673 _io=            io
674 _ipmi=          ipmi
675 _ips=           ips
676 _ipw=           ipw
677 .if ${MK_SOURCELESS_UCODE} != "no"
678 _ipwfw=         ipwfw
679 .endif
680 _isci=          isci
681 _iwi=           iwi
682 .if ${MK_SOURCELESS_UCODE} != "no"
683 _iwifw=         iwifw
684 .endif
685 _iwn=           iwn
686 .if ${MK_SOURCELESS_UCODE} != "no"
687 _iwnfw=         iwnfw
688 .endif
689 _ixgb=          ixgb
690 _ixgbe=         ixgbe
691 _lindev=        lindev
692 _linprocfs=     linprocfs
693 _linsysfs=      linsysfs
694 _linux=         linux
695 _mly=           mly
696 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
697 _mlx4=          mlx4
698 _mlx4ib=        mlx4ib
699 _mlxen=         mlxen
700 _mthca=         mthca
701 .endif
702 _ndis=          ndis
703 _nfe=           nfe
704 _nvd=           nvd
705 .if ${MK_SOURCELESS_HOST} != "no"
706 _nve=           nve
707 .endif
708 _nvme=          nvme
709 _nvram=         nvram
710 _nxge=          nxge
711 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
712 _opensolaris=   opensolaris
713 .endif
714 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
715 _padlock=       padlock
716 .endif
717 _pccard=        pccard
718 _qlxge=         qlxge
719 _qlxgb=         qlxgb
720 _qlxgbe=        qlxgbe
721 _rdma=          rdma
722 _s3=            s3
723 _safe=          safe
724 _scsi_low=      scsi_low
725 _sfxge=         sfxge
726 _smbfs=         smbfs
727 _sound=         sound
728 _speaker=       speaker
729 _splash=        splash
730 _sppp=          sppp
731 _tpm=           tpm
732 _twa=           twa
733 _vesa=          vesa
734 _viawd=         viawd
735 _virtio=        virtio
736 _vxge=          vxge
737 _x86bios=       x86bios
738 _wbwd=          wbwd
739 _wi=            wi
740 _wpi=           wpi
741 .if ${MK_SOURCELESS_UCODE} != "no"
742 _wpifw=         wpifw
743 .endif
744 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
745 _zfs=           zfs
746 .endif
747 .endif
748
749 .if ${MACHINE_CPUARCH} == "ia64"
750 _aac=           aac
751 _aacraid=       aacraid
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 _cpufreq=       cpufreq
794 _nvram=         powermac_nvram
795 _smbfs=         smbfs
796 _sound=         sound
797 .endif
798
799 .if ${MACHINE_ARCH} == "powerpc64"
800 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
801 _opensolaris=   opensolaris
802 .endif
803 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
804 _zfs=           zfs
805 .endif
806 .endif
807
808 .if ${MACHINE_CPUARCH} == "sparc64"
809 _auxio=         auxio
810 _em=            em
811 _epic=          epic
812 _i2c=           i2c
813 _igb=           igb
814 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
815 _opensolaris=   opensolaris
816 .endif
817 _smbfs=         smbfs
818 _sound=         sound
819 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
820 _zfs=           zfs
821 .endif
822 .endif
823
824 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
825 SUBDIR=${MODULES_OVERRIDE}
826 .endif
827
828 .for reject in ${WITHOUT_MODULES}
829 SUBDIR:= ${SUBDIR:N${reject}}
830 .endfor
831
832 # Calling kldxref(8) for each module is expensive.
833 .if !defined(NO_XREF)
834 .MAKEFLAGS+=    -DNO_XREF
835 afterinstall:
836         @if type kldxref >/dev/null 2>&1; then \
837                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
838                 kldxref ${DESTDIR}${KMODDIR}; \
839         fi
840 .endif
841
842 .include <bsd.subdir.mk>