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