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