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