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 ${_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 ${_pfsync} \ 310 plip \ 311 ${_pms} \ 312 ppbus \ 313 ppc \ 314 ppi \ 315 pps \ 316 procfs \ 317 proto \ 318 pseudofs \ 319 ${_pst} \ 320 pty \ 321 puc \ 322 pwm \ 323 ${_qat} \ 324 ${_qatfw} \ 325 ${_qat_c2xxx} \ 326 ${_qat_c2xxxfw} \ 327 ${_qlxge} \ 328 ${_qlxgb} \ 329 ${_qlxgbe} \ 330 ${_qlnx} \ 331 ral \ 332 ${_ralfw} \ 333 ${_random_fortuna} \ 334 ${_random_other} \ 335 rc4 \ 336 ${_rdma} \ 337 ${_rdrand_rng} \ 338 re \ 339 rl \ 340 ${_rockchip} \ 341 rtsx \ 342 ${_rtw88} \ 343 ${_rtw88fw} \ 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 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_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