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