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