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