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