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