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