1# $FreeBSD$ 2 3SYSDIR?=${SRCTOP}/sys 4.include "${SYSDIR}/conf/kern.opts.mk" 5 6SUBDIR_PARALLEL= 7 8# Modules that include binary-only blobs of microcode should be selectable by 9# MK_SOURCELESS_UCODE option (see below). 10 11.include "${SYSDIR}/conf/config.mk" 12 13.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 14SUBDIR=${MODULES_OVERRIDE} 15.else 16SUBDIR= \ 17 ${_3dfx} \ 18 ${_3dfx_linux} \ 19 ${_aac} \ 20 ${_aacraid} \ 21 accf_data \ 22 accf_dns \ 23 accf_http \ 24 acl_nfs4 \ 25 acl_posix1e \ 26 ${_acpi} \ 27 ae \ 28 ${_aesni} \ 29 age \ 30 ${_agp} \ 31 ahci \ 32 aic7xxx \ 33 alc \ 34 ale \ 35 alq \ 36 ${_amd_ecc_inject} \ 37 ${_amdgpio} \ 38 ${_amdsbwd} \ 39 ${_amdsmn} \ 40 ${_amdtemp} \ 41 ${_aout} \ 42 ${_arcmsr} \ 43 ${_allwinner} \ 44 ${_armv8crypto} \ 45 ${_asmc} \ 46 ata \ 47 ath \ 48 ath_dfs \ 49 ath_hal \ 50 ath_hal_ar5210 \ 51 ath_hal_ar5211 \ 52 ath_hal_ar5212 \ 53 ath_hal_ar5416 \ 54 ath_hal_ar9300 \ 55 ath_main \ 56 ath_rate \ 57 ath_pci \ 58 ${_autofs} \ 59 axgbe \ 60 backlight \ 61 ${_bce} \ 62 ${_bcm283x_clkman} \ 63 ${_bcm283x_pwm} \ 64 bfe \ 65 bge \ 66 bhnd \ 67 ${_bxe} \ 68 ${_bios} \ 69 ${_blake2} \ 70 ${_bnxt} \ 71 bridgestp \ 72 bwi \ 73 bwn \ 74 ${_bytgpio} \ 75 ${_chvgpio} \ 76 cam \ 77 ${_cardbus} \ 78 ${_carp} \ 79 cas \ 80 ${_cbb} \ 81 cc \ 82 ${_ccp} \ 83 cd9660 \ 84 cd9660_iconv \ 85 ${_cfi} \ 86 ${_chromebook_platform} \ 87 ${_ciss} \ 88 ${_coretemp} \ 89 ${_cpsw} \ 90 ${_cpuctl} \ 91 ${_cpufreq} \ 92 ${_crypto} \ 93 ${_cryptodev} \ 94 ctl \ 95 ${_cxgb} \ 96 ${_cxgbe} \ 97 dc \ 98 dcons \ 99 dcons_crom \ 100 ${_dpaa2} \ 101 ${_dpdk_lpm4} \ 102 ${_dpdk_lpm6} \ 103 ${_dpms} \ 104 dummynet \ 105 ${_dwwdt} \ 106 ${_e6000sw} \ 107 ${_efirt} \ 108 ${_em} \ 109 ${_ena} \ 110 ${_enic} \ 111 ${_enetc} \ 112 ${_et} \ 113 evdev \ 114 ${_exca} \ 115 ext2fs \ 116 fdc \ 117 fdescfs \ 118 ${_felix} \ 119 ${_ffec} \ 120 ${_fib_dxr} \ 121 filemon \ 122 firewire \ 123 firmware \ 124 flash \ 125 ${_ftgpio} \ 126 ${_ftwd} \ 127 fusefs \ 128 ${_fxp} \ 129 gem \ 130 geom \ 131 ${_glxiic} \ 132 ${_glxsb} \ 133 gpio \ 134 hid \ 135 hifn \ 136 ${_hpt27xx} \ 137 ${_hptiop} \ 138 ${_hptmv} \ 139 ${_hptnr} \ 140 ${_hptrr} \ 141 hwpmc \ 142 ${_hyperv} \ 143 i2c \ 144 ${_iavf} \ 145 ${_ibcore} \ 146 ${_ichwd} \ 147 ${_ice} \ 148 ${_ice_ddp} \ 149 ${_irdma} \ 150 ${_ida} \ 151 if_bridge \ 152 ${_if_cgem} \ 153 if_disc \ 154 if_edsc \ 155 ${_if_enc} \ 156 if_epair \ 157 ${_if_gif} \ 158 ${_if_gre} \ 159 ${_if_me} \ 160 if_infiniband \ 161 if_lagg \ 162 if_ovpn \ 163 ${_if_stf} \ 164 if_tuntap \ 165 if_vlan \ 166 if_vxlan \ 167 ${_if_wg} \ 168 iflib \ 169 ${_igc} \ 170 imgact_binmisc \ 171 ${_intelspi} \ 172 ${_io} \ 173 ${_ioat} \ 174 ${_ipoib} \ 175 ipdivert \ 176 ${_ipfilter} \ 177 ${_ipfw} \ 178 ipfw_nat \ 179 ${_ipfw_nat64} \ 180 ${_ipfw_nptv6} \ 181 ${_ipfw_pmod} \ 182 ${_ipmi} \ 183 ip6_mroute_mod \ 184 ip_mroute_mod \ 185 ${_ips} \ 186 ${_ipsec} \ 187 ${_ipw} \ 188 ${_ipwfw} \ 189 ${_isci} \ 190 ${_iser} \ 191 isp \ 192 ${_ispfw} \ 193 ${_itwd} \ 194 ${_iwi} \ 195 ${_iwifw} \ 196 ${_iwlwifi} \ 197 ${_iwlwififw} \ 198 ${_iwm} \ 199 ${_iwmfw} \ 200 ${_iwn} \ 201 ${_iwnfw} \ 202 ${_ix} \ 203 ${_ixv} \ 204 ${_ixl} \ 205 jme \ 206 kbdmux \ 207 kgssapi \ 208 kgssapi_krb5 \ 209 khelp \ 210 krpc \ 211 ksyms \ 212 le \ 213 lge \ 214 libalias \ 215 libiconv \ 216 libmchain \ 217 lindebugfs \ 218 linuxkpi \ 219 linuxkpi_wlan \ 220 ${_lio} \ 221 lpt \ 222 ${_mac_biba} \ 223 ${_mac_bsdextended} \ 224 ${_mac_ddb} \ 225 ${_mac_ifoff} \ 226 ${_mac_lomac} \ 227 ${_mac_mls} \ 228 ${_mac_none} \ 229 ${_mac_ntpd} \ 230 ${_mac_partition} \ 231 ${_mac_pimd} \ 232 ${_mac_portacl} \ 233 ${_mac_priority} \ 234 ${_mac_seeotheruids} \ 235 ${_mac_stub} \ 236 ${_mac_test} \ 237 ${_malo} \ 238 ${_mana} \ 239 md \ 240 mdio \ 241 ${_mgb} \ 242 mem \ 243 mfi \ 244 mii \ 245 mlx \ 246 mlxfw \ 247 ${_mlx4} \ 248 ${_mlx4ib} \ 249 ${_mlx4en} \ 250 ${_mlx5} \ 251 ${_mlx5en} \ 252 ${_mlx5ib} \ 253 mmc \ 254 mmcsd \ 255 ${_mpr} \ 256 ${_mps} \ 257 mpt \ 258 mqueue \ 259 mrsas \ 260 msdosfs \ 261 msdosfs_iconv \ 262 msk \ 263 ${_mthca} \ 264 mvs \ 265 mwl \ 266 ${_mwlfw} \ 267 mxge \ 268 my \ 269 ${_nctgpio} \ 270 ${_neta} \ 271 netlink \ 272 ${_netgraph} \ 273 ${_nfe} \ 274 nfscl \ 275 nfscommon \ 276 nfsd \ 277 nfslockd \ 278 nfssvc \ 279 nge \ 280 nmdm \ 281 nullfs \ 282 ${_ntb} \ 283 ${_nvd} \ 284 ${_nvdimm} \ 285 ${_nvme} \ 286 ${_nvram} \ 287 oce \ 288 ${_ocs_fc} \ 289 ${_ossl} \ 290 otus \ 291 ${_otusfw} \ 292 ow \ 293 ${_padlock} \ 294 ${_padlock_rng} \ 295 ${_pchtherm} \ 296 ${_pcfclock} \ 297 ${_pf} \ 298 ${_pflog} \ 299 ${_pfsync} \ 300 plip \ 301 ${_pms} \ 302 ppbus \ 303 ppc \ 304 ppi \ 305 pps \ 306 procfs \ 307 proto \ 308 pseudofs \ 309 ${_pst} \ 310 pty \ 311 puc \ 312 pwm \ 313 ${_qat} \ 314 ${_qatfw} \ 315 ${_qat_c2xxx} \ 316 ${_qat_c2xxxfw} \ 317 ${_qlxge} \ 318 ${_qlxgb} \ 319 ${_qlxgbe} \ 320 ${_qlnx} \ 321 ral \ 322 ${_ralfw} \ 323 ${_random_fortuna} \ 324 ${_random_other} \ 325 rc4 \ 326 ${_rdma} \ 327 ${_rdrand_rng} \ 328 re \ 329 rl \ 330 ${_rockchip} \ 331 rtsx \ 332 ${_rtw88} \ 333 ${_rtw88fw} \ 334 rtwn \ 335 rtwn_pci \ 336 rtwn_usb \ 337 ${_rtwnfw} \ 338 ${_s3} \ 339 ${_safe} \ 340 safexcel \ 341 ${_sbni} \ 342 scc \ 343 ${_sctp} \ 344 sdhci \ 345 ${_sdhci_acpi} \ 346 ${_sdhci_fdt} \ 347 sdhci_pci \ 348 sdio \ 349 sem \ 350 send \ 351 ${_sfxge} \ 352 sge \ 353 ${_sgx} \ 354 ${_sgx_linux} \ 355 siftr \ 356 siis \ 357 sis \ 358 sk \ 359 ${_smartpqi} \ 360 smbfs \ 361 snp \ 362 sound \ 363 ${_speaker} \ 364 spi \ 365 ${_splash} \ 366 ste \ 367 stge \ 368 ${_sume} \ 369 ${_superio} \ 370 ${_p2sb} \ 371 sym \ 372 ${_syscons} \ 373 sysvipc \ 374 tarfs \ 375 tcp \ 376 ${_ti} \ 377 tmpfs \ 378 ${_toecore} \ 379 ${_tpm} \ 380 twe \ 381 tws \ 382 uart \ 383 udf \ 384 udf_iconv \ 385 ufs \ 386 uinput \ 387 unionfs \ 388 usb \ 389 ${_vesa} \ 390 virtio \ 391 vge \ 392 ${_viawd} \ 393 videomode \ 394 vkbd \ 395 ${_vmd} \ 396 ${_vmm} \ 397 ${_vmware} \ 398 vr \ 399 vte \ 400 ${_wbwd} \ 401 ${_wdatwd} \ 402 wlan \ 403 wlan_acl \ 404 wlan_amrr \ 405 wlan_ccmp \ 406 wlan_rssadapt \ 407 wlan_tkip \ 408 wlan_wep \ 409 wlan_xauth \ 410 ${_wpi} \ 411 ${_wpifw} \ 412 ${_x86bios} \ 413 xdr \ 414 xl \ 415 xz \ 416 zlib 417 418.if ${MK_AUTOFS} != "no" || defined(ALL_MODULES) 419_autofs= autofs 420.endif 421 422.if ${MK_DTRACE} != "no" || defined(ALL_MODULES) 423.if ${KERN_OPTS:MKDTRACE_HOOKS} 424SUBDIR+= dtrace 425.endif 426SUBDIR+= opensolaris 427.endif 428 429# Requires bus_space_read_8 430.if ${MACHINE_ARCH} != "i386" 431_bnxt= bnxt 432.endif 433 434.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 435.if exists(${SRCTOP}/sys/opencrypto) 436_crypto= crypto 437_cryptodev= cryptodev 438_random_fortuna=random_fortuna 439_random_other= random_other 440.endif 441.endif 442 443.if ${MK_CUSE} != "no" || defined(ALL_MODULES) 444SUBDIR+= cuse 445.endif 446 447.if ${MK_EFI} != "no" 448.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" 449_efirt= efirt 450.endif 451.endif 452 453.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ 454 defined(ALL_MODULES) 455_carp= carp 456_toecore= toecore 457_if_enc= if_enc 458_if_gif= if_gif 459_if_gre= if_gre 460.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 461_if_wg= if_wg 462.endif 463_ipfw_pmod= ipfw_pmod 464.if ${KERN_OPTS:MIPSEC_SUPPORT} && !${KERN_OPTS:MIPSEC} 465_ipsec= ipsec 466.endif 467.if ${KERN_OPTS:MSCTP_SUPPORT} || ${KERN_OPTS:MSCTP} 468_sctp= sctp 469.endif 470.endif 471 472.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ 473 defined(ALL_MODULES) 474_if_stf= if_stf 475.endif 476 477.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 478_if_me= if_me 479_ipfw= ipfw 480.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) 481_ipfw_nat64= ipfw_nat64 482.endif 483.endif 484 485.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) 486_ipfw_nptv6= ipfw_nptv6 487.endif 488 489.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 490_ipfilter= ipfilter 491.endif 492 493.if ${MK_INET_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO} 494_dpdk_lpm4= dpdk_lpm4 495_fib_dxr= fib_dxr 496.endif 497 498.if ${MK_INET6_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO} 499_dpdk_lpm6= dpdk_lpm6 500.endif 501 502.if ${MK_ISCSI} != "no" || defined(ALL_MODULES) 503SUBDIR+= cfiscsi 504SUBDIR+= iscsi 505.endif 506 507.if !empty(OPT_FDT) 508SUBDIR+= fdt 509.endif 510 511# Linuxulator 512.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 513 ${MACHINE_CPUARCH} == "i386" 514SUBDIR+= linprocfs 515SUBDIR+= linsysfs 516.endif 517.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 518SUBDIR+= linux 519.endif 520.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" 521SUBDIR+= linux64 522SUBDIR+= linux_common 523.endif 524 525.if ${MACHINE_CPUARCH} != "arm" 526.if ${MK_OFED} != "no" || defined(ALL_MODULES) 527_ibcore= ibcore 528_ipoib= ipoib 529_iser= iser 530_mthca= mthca 531_rdma= rdma 532.endif 533.endif 534 535.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 536 ${MACHINE_CPUARCH} == "i386" || ${MACHINE_ARCH:Mpowerpc64*} != "" 537_ipmi= ipmi 538_mlx4= mlx4 539_mlx5= mlx5 540.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ 541 defined(ALL_MODULES) 542_mlx4en= mlx4en 543_mlx5en= mlx5en 544.endif 545.if ${MK_OFED} != "no" || defined(ALL_MODULES) 546_mlx4ib= mlx4ib 547_mlx5ib= mlx5ib 548.endif 549.endif 550 551.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 552 ${MACHINE_CPUARCH} == "i386" 553_ena= ena 554_iwlwifi= iwlwifi 555.if ${MK_SOURCELESS_UCODE} != "no" 556_iwlwififw= iwlwififw 557.endif 558_ossl= ossl 559_rtw88= rtw88 560.if ${MK_SOURCELESS_UCODE} != "no" 561_rtw88fw= rtw88fw 562.endif 563_vmware= vmware 564.endif 565 566# MAC framework 567.if ${KERN_OPTS:MMAC} || defined(ALL_MODULES) 568_mac_biba= mac_biba 569_mac_bsdextended= mac_bsdextended 570.if ${KERN_OPTS:MDDB} || defined(ALL_MODULES) 571_mac_ddb= mac_ddb 572.endif 573_mac_ifoff= mac_ifoff 574_mac_lomac= mac_lomac 575_mac_mls= mac_mls 576_mac_none= mac_none 577_mac_ntpd= mac_ntpd 578_mac_partition= mac_partition 579_mac_pimd= mac_pimd 580_mac_portacl= mac_portacl 581_mac_priority= mac_priority 582_mac_seeotheruids= mac_seeotheruids 583_mac_stub= mac_stub 584_mac_test= mac_test 585.endif 586 587.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 588_netgraph= netgraph 589.endif 590 591.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 592 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 593_pf= pf 594_pflog= pflog 595.if ${MK_INET_SUPPORT} != "no" 596_pfsync= pfsync 597.endif 598.endif 599 600.if ${MK_SOURCELESS_UCODE} != "no" 601_bce= bce 602_fxp= fxp 603_ispfw= ispfw 604_ti= ti 605_mwlfw= mwlfw 606_otusfw= otusfw 607_ralfw= ralfw 608_rtwnfw= rtwnfw 609.endif 610 611.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \ 612 ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \ 613 ${MACHINE_CPUARCH} != "riscv" 614_cxgbe= cxgbe 615.endif 616 617.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64" || ${MACHINE_ARCH:Mpowerpc64*} 618_ice= ice 619.if ${MK_SOURCELESS_UCODE} != "no" 620_ice_ddp= ice_ddp 621.endif 622.if ${MK_OFED} != "no" || defined(ALL_MODULES) 623.if ${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no" 624_irdma= irdma 625.endif 626.endif 627.endif 628 629.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ 630 ${MACHINE_CPUARCH} == "riscv" 631.if !empty(OPT_FDT) 632_if_cgem= if_cgem 633.endif 634.endif 635 636# These rely on 64bit atomics 637.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" 638_mps= mps 639_mpr= mpr 640.endif 641 642.if ${MK_TESTS} != "no" || defined(ALL_MODULES) 643SUBDIR+= tests 644.endif 645 646.if ${MK_ZFS} != "no" || (defined(ALL_MODULES) && ${MACHINE_CPUARCH} != "powerpc") 647SUBDIR+= zfs 648.endif 649 650.if ${MK_SOURCELESS_UCODE} != "no" 651_cxgb= cxgb 652.endif 653 654.if ${MACHINE_CPUARCH} == "aarch64" 655_armv8crypto= armv8crypto 656_dpaa2= dpaa2 657_em= em 658_hyperv= hyperv 659 660.if !empty(OPT_FDT) 661_allwinner= allwinner 662_dwwdt= dwwdt 663_enetc= enetc 664_felix= felix 665_rockchip= rockchip 666.endif 667.endif 668 669.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" 670.if !empty(OPT_FDT) 671_sdhci_fdt= sdhci_fdt 672.endif 673_e6000sw= e6000sw 674_neta= neta 675.endif 676 677.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 678_agp= agp 679.if ${MACHINE_CPUARCH} == "i386" || !empty(COMPAT_FREEBSD32_ENABLED) 680_aout= aout 681.endif 682_bios= bios 683.if ${MK_SOURCELESS_UCODE} != "no" 684_bxe= bxe 685.endif 686_cardbus= cardbus 687_cbb= cbb 688_cpuctl= cpuctl 689_cpufreq= cpufreq 690_dpms= dpms 691_em= em 692_et= et 693_ftgpio= ftgpio 694_ftwd= ftwd 695_exca= exca 696_igc= igc 697_io= io 698_itwd= itwd 699_ix= ix 700_ixv= ixv 701.if ${MK_SOURCELESS_UCODE} != "no" 702_lio= lio 703.endif 704_mana= mana 705_mgb= mgb 706_nctgpio= nctgpio 707_ntb= ntb 708_ocs_fc= ocs_fc 709_p2sb= p2sb 710_qat= qat 711_qatfw= qatfw 712_qat_c2xxx= qat_c2xxx 713_qat_c2xxxfw= qat_c2xxxfw 714_safe= safe 715_speaker= speaker 716_splash= splash 717_syscons= syscons 718_wbwd= wbwd 719_wdatwd= wdatwd 720 721_aac= aac 722_aacraid= aacraid 723_acpi= acpi 724.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 725_aesni= aesni 726.endif 727_amd_ecc_inject=amd_ecc_inject 728_amdsbwd= amdsbwd 729_amdsmn= amdsmn 730_amdtemp= amdtemp 731_arcmsr= arcmsr 732_asmc= asmc 733.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 734_blake2= blake2 735.endif 736_bytgpio= bytgpio 737_chvgpio= chvgpio 738_ciss= ciss 739_chromebook_platform= chromebook_platform 740_coretemp= coretemp 741.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) 742_hpt27xx= hpt27xx 743.endif 744_hptiop= hptiop 745.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) 746_hptmv= hptmv 747_hptnr= hptnr 748_hptrr= hptrr 749.endif 750_hyperv= hyperv 751_ichwd= ichwd 752_ida= ida 753_intelspi= intelspi 754_ips= ips 755_isci= isci 756_ipw= ipw 757_iwi= iwi 758_iwm= iwm 759_iwn= iwn 760.if ${MK_SOURCELESS_UCODE} != "no" 761_ipwfw= ipwfw 762_iwifw= iwifw 763_iwmfw= iwmfw 764_iwnfw= iwnfw 765.endif 766_nfe= nfe 767_nvd= nvd 768_nvme= nvme 769_nvram= nvram 770.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 771_padlock= padlock 772_padlock_rng= padlock_rng 773_rdrand_rng= rdrand_rng 774.endif 775_pchtherm = pchtherm 776_s3= s3 777_sdhci_acpi= sdhci_acpi 778_superio= superio 779_tpm= tpm 780_vesa= vesa 781_viawd= viawd 782_vmd= vmd 783_wpi= wpi 784.if ${MK_SOURCELESS_UCODE} != "no" 785_wpifw= wpifw 786.endif 787_x86bios= x86bios 788.endif 789 790.if ${MACHINE_CPUARCH} == "amd64" 791_amdgpio= amdgpio 792_ccp= ccp 793_enic= enic 794_iavf= iavf 795_ioat= ioat 796_ixl= ixl 797_nvdimm= nvdimm 798_pms= pms 799_qlxge= qlxge 800_qlxgb= qlxgb 801_sume= sume 802.if ${MK_SOURCELESS_UCODE} != "no" 803_qlxgbe= qlxgbe 804_qlnx= qlnx 805.endif 806_sfxge= sfxge 807_sgx= sgx 808_sgx_linux= sgx_linux 809_smartpqi= smartpqi 810_p2sb= p2sb 811 812.if ${MK_BHYVE} != "no" || defined(ALL_MODULES) 813.if ${KERN_OPTS:MSMP} 814_vmm= vmm 815.endif 816.endif 817.endif 818 819.if ${MACHINE_CPUARCH} == "i386" 820# XXX some of these can move to the general case when de-i386'ed 821# XXX some of these can move now, but are untested on other architectures. 822_3dfx= 3dfx 823_3dfx_linux= 3dfx_linux 824_glxiic= glxiic 825_glxsb= glxsb 826_pcfclock= pcfclock 827_pst= pst 828_sbni= sbni 829.endif 830 831.if ${MACHINE_ARCH} == "armv7" 832_cfi= cfi 833_cpsw= cpsw 834.endif 835 836.if ${MACHINE_CPUARCH} == "powerpc" 837_aacraid= aacraid 838_agp= agp 839_an= an 840_cardbus= cardbus 841_cbb= cbb 842_cfi= cfi 843_cpufreq= cpufreq 844_exca= exca 845_ffec= ffec 846_nvd= nvd 847_nvme= nvme 848.endif 849 850.if ${MACHINE_ARCH:Mpowerpc64*} != "" 851_ixl= ixl 852_nvram= opal_nvram 853.endif 854 855.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe" 856# Don't build powermac_nvram for powerpcspe, it's never supported. 857_nvram+= powermac_nvram 858.endif 859 860.if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "aarch64" 861_bcm283x_clkman= bcm283x_clkman 862_bcm283x_pwm= bcm283x_pwm 863.endif 864 865.if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000) 866# LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11: 867# https://bugs.llvm.org/show_bug.cgi?id=44351 868_malo= malo 869.endif 870 871SUBDIR+=${MODULES_EXTRA} 872 873.for reject in ${WITHOUT_MODULES} 874SUBDIR:= ${SUBDIR:N${reject}} 875.endfor 876 877.endif # MODULES_OVERRIDE -- Keep last 878 879# Calling kldxref(8) for each module is expensive. 880.if !defined(NO_XREF) 881.MAKEFLAGS+= -DNO_XREF 882afterinstall: .PHONY 883 @if type kldxref >/dev/null 2>&1; then \ 884 ${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 885 ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 886 fi 887.endif 888 889SUBDIR:= ${SUBDIR:u:O} 890 891.include <bsd.subdir.mk> 892