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