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