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