]> CyberLeo.Net >> Repos - FreeBSD/releng/9.3.git/blob - sys/modules/Makefile
Anticipate when we will announce 9.3-RELEASE.
[FreeBSD/releng/9.3.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         mrsas \
217         msdosfs \
218         msdosfs_iconv \
219         ${_mse} \
220         msk \
221         ${_mthca} \
222         mvs \
223         mwl \
224         ${_mwlfw} \
225         mxge \
226         my \
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         ntfs \
245         ntfs_iconv \
246         nullfs \
247         ${_nvd} \
248         ${_nve} \
249         ${_nvme} \
250         ${_nvram} \
251         ${_nwfs} \
252         ${_nxge} \
253         ${_opensolaris} \
254         oce \
255         ${_padlock} \
256         patm \
257         ${_pccard} \
258         ${_pcfclock} \
259         pcn \
260         ${_pf} \
261         ${_pflog} \
262         ${_pfsync} \
263         plip \
264         ${_pmc} \
265         portalfs \
266         ppbus \
267         ppc \
268         ppi \
269         pps \
270         procfs \
271         pseudofs \
272         ${_pst} \
273         pty  \
274         puc \
275         ${_qlxge} \
276         ${_qlxgb} \
277         ${_qlxgbe} \
278         ral \
279         ${_ralfw} \
280         ${_random} \
281         rc4 \
282         ${_rdma} \
283         re \
284         reiserfs \
285         rl \
286         ${_runfw} \
287         ${_s3} \
288         ${_safe} \
289         ${_sbni} \
290         scc \
291         scd \
292         ${_scsi_low} \
293         sdhci \
294         sem \
295         send \
296         ${_sf} \
297         ${_sfxge} \
298         sge \
299         siba_bwn \
300         siftr \
301         siis \
302         sis \
303         sk \
304         ${_smbfs} \
305         ${_sn} \
306         ${_snc} \
307         snp \
308         ${_sound} \
309         ${_speaker} \
310         ${_splash} \
311         ${_sppp} \
312         ste \
313         ${_stg} \
314         stge \
315         ${_streams} \
316         ${_svr4} \
317         ${_sym} \
318         ${_syscons} \
319         sysvipc \
320         ${_ti} \
321         tl \
322         tmpfs \
323         ${_toecore} \
324         ${_tpm} \
325         trm \
326         ${_twa} \
327         twe \
328         tws \
329         tx \
330         ${_txp} \
331         uart \
332         ubsec \
333         udf \
334         udf_iconv \
335         ufs \
336         unionfs \
337         usb \
338         utopia \
339         ${_vesa} \
340         ${_virtio} \
341         vge \
342         ${_viawd} \
343         vkbd \
344         ${_vpo} \
345         vr \
346         vte \
347         vx \
348         ${_vxge} \
349         wb \
350         ${_wbwd} \
351         ${_wi} \
352         wlan \
353         wlan_acl \
354         wlan_amrr \
355         wlan_ccmp \
356         wlan_rssadapt \
357         wlan_tkip \
358         wlan_wep \
359         wlan_xauth \
360         ${_wpi} \
361         ${_wpifw} \
362         ${_x86bios} \
363         ${_xe} \
364         ${_xenhvm} \
365         xfs \
366         xl \
367         ${_zfs} \
368         zlib \
369
370 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
371 _filemon=       filemon
372 _xenhvm=        xenhvm
373 .endif
374
375 .if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \
376         ${MACHINE_CPUARCH} != "mips"
377 _syscons=       syscons
378 _vpo=           vpo
379 .endif
380
381 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
382 # no BUS_SPACE_UNSPECIFIED
383 # No barrier instruction support (specific to this driver)
384 _sym=           sym
385 # intr_disable() is a macro, causes problems
386 .if ${MK_SOURCELESS_UCODE} != "no"
387 _cxgb=          cxgb
388 .endif
389 .endif
390
391 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
392 .if exists(${.CURDIR}/../opencrypto)
393 _crypto=        crypto
394 _cryptodev=     cryptodev
395 .endif
396 .if exists(${.CURDIR}/../crypto)
397 _random=        random
398 .endif
399 .endif
400
401 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
402 _if_gre=        if_gre
403 .endif
404
405 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
406         defined(ALL_MODULES)
407 _if_carp=       if_carp
408 _toecore=       toecore
409 .endif
410
411 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
412 _ipfilter=      ipfilter
413 .endif
414
415 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
416 _ipfw=          ipfw
417 .endif
418
419 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
420 _netgraph=      netgraph
421 .endif
422
423 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
424         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
425 _pf=            pf
426 _pflog=         pflog
427 .if ${MK_INET_SUPPORT} != "no"
428 _pfsync=        pfsync
429 .endif
430 .endif
431
432 .if ${MK_SOURCELESS_UCODE} != "no"
433 _bce=           bce
434 _fatm=          fatm
435 _fxp=           fxp
436 _ispfw=         ispfw
437 _mwlfw=         mwlfw
438 _ralfw=         ralfw
439 _runfw=         runfw
440 _sf=            sf
441 _sn=            sn
442 _ti=            ti
443 _txp=           txp
444 .endif
445
446 .if ${MACHINE_CPUARCH} == "i386"
447 # XXX some of these can move to the general case when de-i386'ed
448 # XXX some of these can move now, but are untested on other architectures.
449 _3dfx=          3dfx
450 _3dfx_linux=    3dfx_linux
451 _agp=           agp
452 _aic=           aic
453 _amd=           amd
454 _an=            an
455 _aout=          aout
456 _apm=           apm
457 _arcnet=        arcnet
458 _bktr=          bktr
459 _bxe=           bxe
460 _cardbus=       cardbus
461 _cbb=           cbb
462 .if ${MK_SOURCELESS_UCODE} != "no"
463 _ce=            ce
464 .endif
465 _coff=          coff
466 .if ${MK_SOURCELESS_UCODE} != "no"
467 _cp=            cp
468 .endif
469 _cpuctl=        cpuctl
470 _cpufreq=       cpufreq
471 _cs=            cs
472 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
473 _cyclic=        cyclic
474 .endif
475 _dpms=          dpms
476 _drm=           drm
477 _drm2=          drm2
478 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
479 _dtrace=        dtrace
480 .endif
481 _ed=            ed
482 _elink=         elink
483 _em=            em
484 _ep=            ep
485 _et=            et
486 _exca=          exca
487 _ext2fs=        ext2fs
488 _fe=            fe
489 _glxiic=        glxiic
490 _glxsb=         glxsb
491 _i2c=           i2c
492 _ibcs2=         ibcs2
493 _ie=            ie
494 _if_ndis=       if_ndis
495 _igb=           igb
496 _io=            io
497 _lindev=        lindev
498 _linprocfs=     linprocfs
499 _linsysfs=      linsysfs
500 _linux=         linux
501 _mse=           mse
502 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
503 _mlx4=          mlx4
504 _mlx4ib=        mlx4ib
505 _mlxen=         mlxen
506 _mthca=         mthca
507 .endif
508 .if ${MK_NCP} != "no"
509 _ncp=           ncp
510 .endif
511 _ncv=           ncv
512 _ndis=          ndis
513 _nsp=           nsp
514 .if ${MK_NCP} != "no"
515 _nwfs=          nwfs
516 .endif
517 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
518 _opensolaris=   opensolaris
519 .endif
520 _pccard=        pccard
521 _pcfclock=      pcfclock
522 _pst=           pst
523 _rdma=          rdma
524 _safe=          safe
525 _sbni=          sbni
526 _scsi_low=      scsi_low
527 _smbfs=         smbfs
528 _sound=         sound
529 _speaker=       speaker
530 _splash=        splash
531 _sppp=          sppp
532 _stg=           stg
533 _streams=       streams
534 _svr4=          svr4
535 _vxge=          vxge
536 _wbwd=          wbwd
537 _wi=            wi
538 _xe=            xe
539 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
540 _zfs=           zfs
541 .endif
542 .if ${MACHINE} == "i386"
543 _aac=           aac
544 _aacraid=       aacraid
545 _acpi=          acpi
546 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
547 _aesni=         aesni
548 .endif
549 _ahb=           ahb
550 _amdsbwd=       amdsbwd
551 _amdtemp=       amdtemp
552 _arcmsr=        arcmsr
553 _asmc=          asmc
554 _asr=           asr
555 _bios=          bios
556 _ciss=          ciss
557 _cm=            cm
558 _cmx=           cmx
559 _coretemp=      coretemp
560 .if ${MK_SOURCELESS_UCODE} != "no"
561 _ctau=          ctau
562 .endif
563 _dpt=           dpt
564 _ex=            ex
565 .if ${MK_SOURCELESS_HOST} != "no"
566 _hpt27xx=       hpt27xx
567 .endif
568 _hptiop=        hptiop
569 .if ${MK_SOURCELESS_HOST} != "no"
570 _hptmv=         hptmv
571 _hptnr=         hptnr
572 _hptrr=         hptrr
573 .endif
574 _ichwd=         ichwd
575 _ida=           ida
576 _iir=           iir
577 _ipmi=          ipmi
578 _ips=           ips
579 _ipw=           ipw
580 .if ${MK_SOURCELESS_UCODE} != "no"
581 _ipwfw=         ipwfw
582 .endif
583 _isci=          isci
584 _iwi=           iwi
585 .if ${MK_SOURCELESS_UCODE} != "no"
586 _iwifw=         iwifw
587 .endif
588 _iwn=           iwn
589 .if ${MK_SOURCELESS_UCODE} != "no"
590 _iwnfw=         iwnfw
591 .endif
592 _ixgb=          ixgb
593 _ixgbe=         ixgbe
594 _mly=           mly
595 _nfe=           nfe
596 _nvd=           nvd
597 .if ${MK_SOURCELESS_HOST} != "no"
598 _nve=           nve
599 .endif
600 _nvme=          nvme
601 _nvram=         nvram
602 _nxge=          nxge
603 _tpm=           tpm
604 _viawd=         viawd
605 _wpi=           wpi
606 .if ${MK_SOURCELESS_UCODE} != "no"
607 _wpifw=         wpifw
608 .endif
609 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
610 _padlock=       padlock
611 .endif
612 _s3=            s3
613 _twa=           twa
614 _vesa=          vesa
615 _virtio=        virtio
616 _x86bios=       x86bios
617 .elif ${MACHINE} == "pc98"
618 _canbepm=       canbepm
619 _canbus=        canbus
620 _pmc=           pmc
621 _snc=           snc
622 .endif
623 .endif
624
625 .if ${MACHINE_CPUARCH} == "amd64"
626 _aac=           aac
627 _aacraid=       aacraid
628 _aout=          aout
629 _acpi=          acpi
630 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
631 _aesni=         aesni
632 .endif
633 _agp=           agp
634 _an=            an
635 _amdsbwd=       amdsbwd
636 _amdtemp=       amdtemp
637 _arcmsr=        arcmsr
638 _asmc=          asmc
639 _bxe=           bxe
640 _cardbus=       cardbus
641 _cbb=           cbb
642 _cmx=           cmx
643 _ciss=          ciss
644 _coretemp=      coretemp
645 _cpuctl=        cpuctl
646 _cpufreq=       cpufreq
647 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
648 _cyclic=        cyclic
649 .endif
650 _dpms=          dpms
651 _drm=           drm
652 _drm2=          drm2
653 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
654 _dtrace=        dtrace
655 .endif
656 _ed=            ed
657 _et=            et
658 _em=            em
659 _exca=          exca
660 _ext2fs=        ext2fs
661 .if ${MK_SOURCELESS_HOST} != "no"
662 _hpt27xx=       hpt27xx
663 .endif
664 _hptiop=        hptiop
665 .if ${MK_SOURCELESS_HOST} != "no"
666 _hptmv=         hptmv
667 _hptnr=         hptnr
668 _hptrr=         hptrr
669 .endif
670 _i2c=           i2c
671 _ichwd=         ichwd
672 _ida=           ida
673 _if_ndis=       if_ndis
674 _igb=           igb
675 _iir=           iir
676 _io=            io
677 _ipmi=          ipmi
678 _ips=           ips
679 _ipw=           ipw
680 .if ${MK_SOURCELESS_UCODE} != "no"
681 _ipwfw=         ipwfw
682 .endif
683 _isci=          isci
684 _iwi=           iwi
685 .if ${MK_SOURCELESS_UCODE} != "no"
686 _iwifw=         iwifw
687 .endif
688 _iwn=           iwn
689 .if ${MK_SOURCELESS_UCODE} != "no"
690 _iwnfw=         iwnfw
691 .endif
692 _ixgb=          ixgb
693 _ixgbe=         ixgbe
694 _lindev=        lindev
695 _linprocfs=     linprocfs
696 _linsysfs=      linsysfs
697 _linux=         linux
698 _mly=           mly
699 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
700 _mlx4=          mlx4
701 _mlx4ib=        mlx4ib
702 _mlxen=         mlxen
703 _mthca=         mthca
704 .endif
705 _ndis=          ndis
706 _nfe=           nfe
707 _nvd=           nvd
708 .if ${MK_SOURCELESS_HOST} != "no"
709 _nve=           nve
710 .endif
711 _nvme=          nvme
712 _nvram=         nvram
713 _nxge=          nxge
714 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
715 _opensolaris=   opensolaris
716 .endif
717 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
718 _padlock=       padlock
719 .endif
720 _pccard=        pccard
721 _qlxge=         qlxge
722 _qlxgb=         qlxgb
723 _qlxgbe=        qlxgbe
724 _rdma=          rdma
725 _s3=            s3
726 _safe=          safe
727 _scsi_low=      scsi_low
728 _sfxge=         sfxge
729 _smbfs=         smbfs
730 _sound=         sound
731 _speaker=       speaker
732 _splash=        splash
733 _sppp=          sppp
734 _tpm=           tpm
735 _twa=           twa
736 _vesa=          vesa
737 _viawd=         viawd
738 _virtio=        virtio
739 _vxge=          vxge
740 _x86bios=       x86bios
741 _wbwd=          wbwd
742 _wi=            wi
743 _wpi=           wpi
744 .if ${MK_SOURCELESS_UCODE} != "no"
745 _wpifw=         wpifw
746 .endif
747 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
748 _zfs=           zfs
749 .endif
750 .endif
751
752 .if ${MACHINE_CPUARCH} == "ia64"
753 _aac=           aac
754 _aacraid=       aacraid
755 _aic=           aic
756 _an=            an
757 _arcnet=        arcnet
758 _asr=           asr
759 _bktr=          bktr
760 _cardbus=       cardbus
761 _cbb=           cbb
762 _ciss=          ciss
763 _cm=            cm
764 _cmx=           cmx
765 _coff=          coff
766 _cpufreq=       cpufreq
767 _dpt=           dpt
768 _em=            em
769 _ep=            ep
770 _et=            et
771 _exca=          exca
772 _fe=            fe
773 _hptiop=        hptiop
774 _ida=           ida
775 _igb=           igb
776 _iir=           iir
777 _ips=           ips
778 _mly=           mly
779 _pccard=        pccard
780 _scsi_low=      scsi_low
781 _smbfs=         smbfs
782 _sound=         sound
783 _splash=        splash
784 _sppp=          sppp
785 _streams=       streams
786 _tpm=           tpm
787 _twa=           twa
788 _wi=            wi
789 _xe=            xe
790 .endif
791
792 .if ${MACHINE_CPUARCH} == "powerpc"
793 _agp=           agp
794 _an=            an
795 _bm=            bm
796 _cpufreq=       cpufreq
797 _nvram=         powermac_nvram
798 _smbfs=         smbfs
799 _sound=         sound
800 .endif
801
802 .if ${MACHINE_ARCH} == "powerpc64"
803 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
804 _opensolaris=   opensolaris
805 .endif
806 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
807 _zfs=           zfs
808 .endif
809 .endif
810
811 .if ${MACHINE_CPUARCH} == "sparc64"
812 _auxio=         auxio
813 _em=            em
814 _epic=          epic
815 _i2c=           i2c
816 _igb=           igb
817 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
818 _opensolaris=   opensolaris
819 .endif
820 _smbfs=         smbfs
821 _sound=         sound
822 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
823 _zfs=           zfs
824 .endif
825 .endif
826
827 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
828 SUBDIR=${MODULES_OVERRIDE}
829 .endif
830
831 .for reject in ${WITHOUT_MODULES}
832 SUBDIR:= ${SUBDIR:N${reject}}
833 .endfor
834
835 # Calling kldxref(8) for each module is expensive.
836 .if !defined(NO_XREF)
837 .MAKEFLAGS+=    -DNO_XREF
838 afterinstall:
839         @if type kldxref >/dev/null 2>&1; then \
840                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
841                 kldxref ${DESTDIR}${KMODDIR}; \
842         fi
843 .endif
844
845 .include <bsd.subdir.mk>