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