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