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