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