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