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