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