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