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 ${_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 ${_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_wlan \ 222 ${_lio} \ 223 lpt \ 224 ${_mac_biba} \ 225 ${_mac_bsdextended} \ 226 ${_mac_ddb} \ 227 ${_mac_ifoff} \ 228 ${_mac_ipacl} \ 229 ${_mac_lomac} \ 230 ${_mac_mls} \ 231 ${_mac_none} \ 232 ${_mac_ntpd} \ 233 ${_mac_partition} \ 234 ${_mac_pimd} \ 235 ${_mac_portacl} \ 236 ${_mac_priority} \ 237 ${_mac_seeotheruids} \ 238 ${_mac_stub} \ 239 ${_mac_test} \ 240 ${_mac_veriexec} \ 241 ${_mac_veriexec_sha1} \ 242 ${_mac_veriexec_sha256} \ 243 ${_mac_veriexec_sha384} \ 244 ${_mac_veriexec_sha512} \ 245 ${_malo} \ 246 ${_mana} \ 247 md \ 248 mdio \ 249 ${_mgb} \ 250 mem \ 251 mfi \ 252 mii \ 253 mlx \ 254 mlxfw \ 255 ${_mlx4} \ 256 ${_mlx4ib} \ 257 ${_mlx4en} \ 258 ${_mlx5} \ 259 ${_mlx5en} \ 260 ${_mlx5ib} \ 261 mmc \ 262 mmcsd \ 263 ${_mpi3mr} \ 264 ${_mpr} \ 265 ${_mps} \ 266 mpt \ 267 mqueue \ 268 mrsas \ 269 msdosfs \ 270 msdosfs_iconv \ 271 msk \ 272 ${_mthca} \ 273 mvs \ 274 mwl \ 275 ${_mwlfw} \ 276 mxge \ 277 my \ 278 ${_nctgpio} \ 279 ${_ncthwm} \ 280 ${_neta} \ 281 netlink \ 282 ${_netgraph} \ 283 ${_nfe} \ 284 nfscl \ 285 nfscommon \ 286 nfsd \ 287 nfslockd \ 288 nfssvc \ 289 nlsysevent \ 290 nge \ 291 nmdm \ 292 nullfs \ 293 ${_ntb} \ 294 ${_nvd} \ 295 ${_nvdimm} \ 296 ${_nvme} \ 297 ${_nvram} \ 298 oce \ 299 ${_ocs_fc} \ 300 ${_ossl} \ 301 otus \ 302 ${_otusfw} \ 303 ow \ 304 ${_padlock} \ 305 ${_padlock_rng} \ 306 ${_pchtherm} \ 307 ${_pcfclock} \ 308 ${_pf} \ 309 ${_pflog} \ 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 ${_rtw88fw} \ 345 rtwn \ 346 rtwn_pci \ 347 rtwn_usb \ 348 ${_rtwnfw} \ 349 ${_s3} \ 350 ${_safe} \ 351 safexcel \ 352 ${_sbni} \ 353 scc \ 354 ${_sctp} \ 355 sdhci \ 356 ${_sdhci_acpi} \ 357 ${_sdhci_fdt} \ 358 sdhci_pci \ 359 sdio \ 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_ossl= ossl 570_rtw88= rtw88 571.if ${MK_SOURCELESS_UCODE} != "no" 572_rtw88fw= rtw88fw 573.endif 574_vmware= vmware 575.endif 576 577# MAC framework 578.if ${KERN_OPTS:MMAC} || defined(ALL_MODULES) 579_mac_biba= mac_biba 580_mac_bsdextended= mac_bsdextended 581.if ${KERN_OPTS:MDDB} || defined(ALL_MODULES) 582_mac_ddb= mac_ddb 583.endif 584_mac_ifoff= mac_ifoff 585_mac_ipacl= mac_ipacl 586_mac_lomac= mac_lomac 587_mac_mls= mac_mls 588_mac_none= mac_none 589_mac_ntpd= mac_ntpd 590_mac_partition= mac_partition 591_mac_pimd= mac_pimd 592_mac_portacl= mac_portacl 593_mac_priority= mac_priority 594_mac_seeotheruids= mac_seeotheruids 595_mac_stub= mac_stub 596_mac_test= mac_test 597.if ${MK_VERIEXEC} != "no" || defined(ALL_MODULES) 598_mac_veriexec= mac_veriexec 599_mac_veriexec_sha1= mac_veriexec_sha1 600_mac_veriexec_sha256= mac_veriexec_sha256 601_mac_veriexec_sha384= mac_veriexec_sha384 602_mac_veriexec_sha512= mac_veriexec_sha512 603.endif 604.endif 605 606.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 607_netgraph= netgraph 608.endif 609 610.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 611 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 612_pf= pf 613_pflog= pflog 614.if ${MK_INET_SUPPORT} != "no" 615_pfsync= pfsync 616.endif 617.endif 618 619.if ${MK_SOURCELESS_UCODE} != "no" 620_bce= bce 621_fxp= fxp 622_ispfw= ispfw 623_ti= ti 624_mwlfw= mwlfw 625_otusfw= otusfw 626_ralfw= ralfw 627_rtwnfw= rtwnfw 628.endif 629 630.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \ 631 ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \ 632 ${MACHINE_CPUARCH} != "riscv" 633_cxgbe= cxgbe 634.endif 635 636# This has only been tested on amd64 and arm64 637.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64" 638_mpi3mr=mpi3mr 639.endif 640 641.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64" || ${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_em= em 683_hyperv= hyperv 684 685.if !empty(OPT_FDT) 686_allwinner= allwinner 687_dwwdt= dwwdt 688_enetc= enetc 689_felix= felix 690_rockchip= rockchip 691.endif 692.endif 693 694.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" 695.if !empty(OPT_FDT) 696_sdhci_fdt= sdhci_fdt 697.endif 698_e6000sw= e6000sw 699_neta= neta 700.endif 701 702.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 703_agp= agp 704.if ${MACHINE_CPUARCH} == "i386" || !empty(COMPAT_FREEBSD32_ENABLED) 705_aout= aout 706.endif 707_bios= bios 708.if ${MK_SOURCELESS_UCODE} != "no" 709_bxe= bxe 710.endif 711_cardbus= cardbus 712_cbb= cbb 713_cpuctl= cpuctl 714_cpufreq= cpufreq 715_dpms= dpms 716_em= em 717_et= et 718_ftgpio= ftgpio 719_ftwd= ftwd 720_exca= exca 721_igc= igc 722_io= io 723_itwd= itwd 724_ix= ix 725_ixv= ixv 726.if ${MK_SOURCELESS_UCODE} != "no" 727_lio= lio 728.endif 729_mana= mana 730_mgb= mgb 731_nctgpio= nctgpio 732_ncthwm= ncthwm 733_ntb= ntb 734_ocs_fc= ocs_fc 735_p2sb= p2sb 736_qat_c2xxx= qat_c2xxx 737_qat_c2xxxfw= qat_c2xxxfw 738_safe= safe 739_speaker= speaker 740_splash= splash 741_syscons= syscons 742_wbwd= wbwd 743_wdatwd= wdatwd 744 745_aac= aac 746_aacraid= aacraid 747_acpi= acpi 748.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 749_aesni= aesni 750.endif 751_amd_ecc_inject=amd_ecc_inject 752_amdsbwd= amdsbwd 753_amdsmn= amdsmn 754_amdtemp= amdtemp 755_arcmsr= arcmsr 756_asmc= asmc 757.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 758_blake2= blake2 759.endif 760_bytgpio= bytgpio 761_chvgpio= chvgpio 762_ciss= ciss 763_chromebook_platform= chromebook_platform 764_coretemp= coretemp 765.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) 766_hpt27xx= hpt27xx 767.endif 768_hptiop= hptiop 769.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) 770_hptmv= hptmv 771_hptnr= hptnr 772_hptrr= hptrr 773.endif 774_hyperv= hyperv 775_ichwd= ichwd 776_ida= ida 777_intelspi= intelspi 778_ips= ips 779_isci= isci 780_ipw= ipw 781_iwi= iwi 782_iwm= iwm 783_iwn= iwn 784.if ${MK_SOURCELESS_UCODE} != "no" 785_ipwfw= ipwfw 786_iwifw= iwifw 787_iwmfw= iwmfw 788_iwnfw= iwnfw 789.endif 790_nfe= nfe 791_nvd= nvd 792_nvme= nvme 793_nvram= nvram 794.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 795_padlock= padlock 796_padlock_rng= padlock_rng 797_rdrand_rng= rdrand_rng 798.endif 799_pchtherm = pchtherm 800_s3= s3 801_sdhci_acpi= sdhci_acpi 802_superio= superio 803_tpm= tpm 804_vesa= vesa 805_viawd= viawd 806_vmd= vmd 807_wpi= wpi 808.if ${MK_SOURCELESS_UCODE} != "no" 809_wpifw= wpifw 810.endif 811_x86bios= x86bios 812.endif 813 814.if ${MACHINE_CPUARCH} == "amd64" 815_amdgpio= amdgpio 816_ccp= ccp 817_enic= enic 818_iavf= iavf 819_ioat= ioat 820_ixl= ixl 821_nvdimm= nvdimm 822_pms= pms 823_qat= qat 824.if ${MK_SOURCELESS_UCODE} != "no" 825_qatfw= qatfw 826.endif 827_qlxge= qlxge 828_qlxgb= qlxgb 829_sume= sume 830.if ${MK_SOURCELESS_UCODE} != "no" 831_qlxgbe= qlxgbe 832_qlnx= qlnx 833.endif 834_sfxge= sfxge 835_sgx= sgx 836_sgx_linux= sgx_linux 837_smartpqi= smartpqi 838_p2sb= p2sb 839 840.if ${MK_BHYVE} != "no" || defined(ALL_MODULES) 841.if ${KERN_OPTS:MSMP} 842_vmm= vmm 843.endif 844.endif 845.endif 846 847.if ${MACHINE_CPUARCH} == "i386" 848# XXX some of these can move to the general case when de-i386'ed 849# XXX some of these can move now, but are untested on other architectures. 850_3dfx= 3dfx 851_3dfx_linux= 3dfx_linux 852_glxiic= glxiic 853_glxsb= glxsb 854_pcfclock= pcfclock 855_pst= pst 856_sbni= sbni 857.endif 858 859.if ${MACHINE_ARCH} == "armv7" 860_cfi= cfi 861_cpsw= cpsw 862.endif 863 864.if ${MACHINE_CPUARCH} == "powerpc" 865_aacraid= aacraid 866_agp= agp 867_an= an 868_cardbus= cardbus 869_cbb= cbb 870_cfi= cfi 871_cpufreq= cpufreq 872_exca= exca 873_ffec= ffec 874_nvd= nvd 875_nvme= nvme 876.endif 877 878.if ${MACHINE_ARCH:Mpowerpc64*} != "" 879_ixl= ixl 880_nvram= opal_nvram 881.endif 882 883.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe" 884# Don't build powermac_nvram for powerpcspe, it's never supported. 885_nvram+= powermac_nvram 886.endif 887 888.if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "aarch64" 889_bcm283x_clkman= bcm283x_clkman 890_bcm283x_pwm= bcm283x_pwm 891.endif 892 893.if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000) 894# LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11: 895# https://bugs.llvm.org/show_bug.cgi?id=44351 896_malo= malo 897.endif 898 899SUBDIR+=${MODULES_EXTRA} 900 901.for reject in ${WITHOUT_MODULES} 902SUBDIR:= ${SUBDIR:N${reject}} 903.endfor 904 905.endif # MODULES_OVERRIDE -- Keep last 906 907# Calling kldxref(8) for each module is expensive. 908.if !defined(NO_XREF) 909.MAKEFLAGS+= -DNO_XREF 910afterinstall: .PHONY 911 @if type kldxref >/dev/null 2>&1; then \ 912 ${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 913 ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 914 fi 915.endif 916 917SUBDIR:= ${SUBDIR:u:O} 918 919.include <bsd.subdir.mk> 920