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