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