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