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