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 ${_coretemp} \ 95 ${_cp} \ 96 ${_cpsw} \ 97 ${_cpuctl} \ 98 ${_cpufreq} \ 99 ${_crypto} \ 100 ${_cryptodev} \ 101 ctl \ 102 ${_cxgb} \ 103 ${_cxgbe} \ 104 dc \ 105 dcons \ 106 dcons_crom \ 107 ${_dpdk_lpm4} \ 108 ${_dpdk_lpm6} \ 109 ${_dpms} \ 110 dummynet \ 111 ${_dwwdt} \ 112 ${_efirt} \ 113 ${_em} \ 114 ${_ena} \ 115 esp \ 116 ${_et} \ 117 evdev \ 118 ${_exca} \ 119 ext2fs \ 120 fdc \ 121 fdescfs \ 122 ${_ffec} \ 123 ${_fib_dxr} \ 124 filemon \ 125 firewire \ 126 firmware \ 127 ${_ftwd} \ 128 fusefs \ 129 ${_fxp} \ 130 gem \ 131 geom \ 132 ${_glxiic} \ 133 ${_glxsb} \ 134 gpio \ 135 hid \ 136 hifn \ 137 ${_hpt27xx} \ 138 ${_hptiop} \ 139 ${_hptmv} \ 140 ${_hptnr} \ 141 ${_hptrr} \ 142 hwpmc \ 143 ${_hwpmc_mips24k} \ 144 ${_hwpmc_mips74k} \ 145 ${_hyperv} \ 146 i2c \ 147 ${_iavf} \ 148 ${_ibcore} \ 149 ${_ichwd} \ 150 ${_ice} \ 151 ${_ice_ddp} \ 152 ${_ida} \ 153 if_bridge \ 154 if_disc \ 155 if_edsc \ 156 ${_if_enc} \ 157 if_epair \ 158 ${_if_gif} \ 159 ${_if_gre} \ 160 ${_if_me} \ 161 if_infiniband \ 162 if_lagg \ 163 ${_if_stf} \ 164 if_tuntap \ 165 if_vlan \ 166 if_vxlan \ 167 iflib \ 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 md \ 232 mdio \ 233 mem \ 234 mfi \ 235 mii \ 236 mlx \ 237 mlxfw \ 238 ${_mlx4} \ 239 ${_mlx4ib} \ 240 ${_mlx4en} \ 241 ${_mlx5} \ 242 ${_mlx5en} \ 243 ${_mlx5ib} \ 244 ${_mly} \ 245 mmc \ 246 mmcsd \ 247 ${_mpr} \ 248 ${_mps} \ 249 mpt \ 250 mqueue \ 251 mrsas \ 252 msdosfs \ 253 msdosfs_iconv \ 254 msk \ 255 ${_mthca} \ 256 mvs \ 257 mwl \ 258 ${_mwlfw} \ 259 mxge \ 260 my \ 261 ${_nctgpio} \ 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_fdt} \ 334 sdhci_pci \ 335 sdio \ 336 sem \ 337 send \ 338 ${_sfxge} \ 339 sge \ 340 ${_sgx} \ 341 ${_sgx_linux} \ 342 siftr \ 343 siis \ 344 sis \ 345 sk \ 346 ${_smartpqi} \ 347 smbfs \ 348 snp \ 349 sound \ 350 ${_speaker} \ 351 spi \ 352 ${_splash} \ 353 ${_sppp} \ 354 ste \ 355 stge \ 356 ${_sume} \ 357 ${_superio} \ 358 ${_sym} \ 359 ${_syscons} \ 360 sysvipc \ 361 tcp \ 362 ${_ti} \ 363 tmpfs \ 364 ${_toecore} \ 365 ${_tpm} \ 366 ${_twa} \ 367 twe \ 368 tws \ 369 uart \ 370 udf \ 371 udf_iconv \ 372 ufs \ 373 uinput \ 374 unionfs \ 375 usb \ 376 ${_vesa} \ 377 virtio \ 378 vge \ 379 ${_viawd} \ 380 videomode \ 381 vkbd \ 382 ${_vmd} \ 383 ${_vmm} \ 384 ${_vmware} \ 385 vr \ 386 vte \ 387 ${_wbwd} \ 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.endif 425.endif 426 427.if ${MK_CUSE} != "no" || defined(ALL_MODULES) 428SUBDIR+= cuse 429.endif 430 431.if ${MK_EFI} != "no" 432.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" 433_efirt= efirt 434.endif 435.endif 436 437.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ 438 defined(ALL_MODULES) 439_carp= carp 440_toecore= toecore 441_if_enc= if_enc 442_if_gif= if_gif 443_if_gre= if_gre 444_ipfw_pmod= ipfw_pmod 445.if ${KERN_OPTS:MIPSEC_SUPPORT} && !${KERN_OPTS:MIPSEC} 446_ipsec= ipsec 447.endif 448.if ${KERN_OPTS:MSCTP_SUPPORT} || ${KERN_OPTS:MSCTP} 449_sctp= sctp 450.endif 451.endif 452 453.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ 454 defined(ALL_MODULES) 455_if_stf= if_stf 456.endif 457 458.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 459_if_me= if_me 460_ipdivert= ipdivert 461_ipfw= ipfw 462.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) 463_ipfw_nat64= ipfw_nat64 464.endif 465.endif 466 467.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) 468_ipfw_nptv6= ipfw_nptv6 469.endif 470 471.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 472_ipfilter= ipfilter 473.endif 474 475.if ${MK_INET_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO} 476_dpdk_lpm4= dpdk_lpm4 477_fib_dxr= fib_dxr 478.endif 479 480.if ${MK_INET6_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO} 481_dpdk_lpm6= dpdk_lpm6 482.endif 483 484.if ${MK_ISCSI} != "no" || defined(ALL_MODULES) 485SUBDIR+= cfiscsi 486SUBDIR+= iscsi 487SUBDIR+= iscsi_initiator 488.endif 489 490.if !empty(OPT_FDT) 491SUBDIR+= fdt 492.endif 493 494# Linuxulator 495.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 496 ${MACHINE_CPUARCH} == "i386" 497SUBDIR+= linprocfs 498SUBDIR+= linsysfs 499.endif 500.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 501SUBDIR+= linux 502.endif 503.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" 504SUBDIR+= linux64 505SUBDIR+= linux_common 506.endif 507 508.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 509 ${MACHINE_CPUARCH} == "i386" 510_ena= ena 511.if ${MK_OFED} != "no" || defined(ALL_MODULES) 512_ibcore= ibcore 513_ipoib= ipoib 514_iser= iser 515.endif 516_ipmi= ipmi 517_mlx4= mlx4 518_mlx5= mlx5 519.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ 520 defined(ALL_MODULES) 521_mlx4en= mlx4en 522_mlx5en= mlx5en 523.endif 524.if ${MK_OFED} != "no" || defined(ALL_MODULES) 525_mthca= mthca 526_mlx4ib= mlx4ib 527_mlx5ib= mlx5ib 528.endif 529_ossl= ossl 530_vmware= vmware 531.endif 532 533.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 534_netgraph= netgraph 535.endif 536 537.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 538 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 539_pf= pf 540_pflog= pflog 541.if ${MK_INET_SUPPORT} != "no" 542_pfsync= pfsync 543.endif 544.endif 545 546.if ${MK_SOURCELESS_UCODE} != "no" 547_bce= bce 548_fxp= fxp 549_ispfw= ispfw 550_ti= ti 551 552.if ${MACHINE_CPUARCH} != "mips" 553_mwlfw= mwlfw 554_otusfw= otusfw 555_ralfw= ralfw 556_rtwnfw= rtwnfw 557.endif 558.endif 559 560.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \ 561 ${MACHINE_CPUARCH} != "mips" && \ 562 ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \ 563 ${MACHINE_CPUARCH} != "riscv" 564_cxgbe= cxgbe 565.endif 566 567.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64" 568_ice= ice 569.if ${MK_SOURCELESS_UCODE} != "no" 570_ice_ddp= ice_ddp 571.endif 572.endif 573 574# These rely on 64bit atomics 575.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \ 576 ${MACHINE_CPUARCH} != "mips" 577_mps= mps 578_mpr= mpr 579.endif 580 581.if ${MK_TESTS} != "no" || defined(ALL_MODULES) 582SUBDIR+= tests 583.endif 584 585.if ${MK_ZFS} != "no" || (defined(ALL_MODULES) && ${MACHINE_CPUARCH} != "powerpc") 586SUBDIR+= zfs 587.endif 588 589.if (${MACHINE_CPUARCH} == "mips" && ${MACHINE_ARCH:Mmips64} == "") 590_hwpmc_mips24k= hwpmc_mips24k 591_hwpmc_mips74k= hwpmc_mips74k 592.endif 593 594.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \ 595 ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "powerpc" && \ 596 ${MACHINE_CPUARCH} != "riscv" 597_syscons= syscons 598.endif 599 600.if ${MACHINE_CPUARCH} != "mips" 601# no BUS_SPACE_UNSPECIFIED 602# No barrier instruction support (specific to this driver) 603_sym= sym 604# intr_disable() is a macro, causes problems 605.if ${MK_SOURCELESS_UCODE} != "no" 606_cxgb= cxgb 607.endif 608.endif 609 610.if ${MACHINE_CPUARCH} == "aarch64" 611_allwinner= allwinner 612_armv8crypto= armv8crypto 613_dwwdt= dwwdt 614_em= em 615_rockchip= rockchip 616.endif 617 618.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" 619_sdhci_fdt= sdhci_fdt 620.endif 621 622.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 623_agp= agp 624_an= an 625_aout= aout 626_bios= bios 627.if ${MK_SOURCELESS_UCODE} != "no" 628_bxe= bxe 629.endif 630_cardbus= cardbus 631_cbb= cbb 632_cpuctl= cpuctl 633_cpufreq= cpufreq 634_dpms= dpms 635_em= em 636_et= et 637_ftwd= ftwd 638_exca= exca 639_io= io 640_itwd= itwd 641_ix= ix 642_ixv= ixv 643.if ${MK_SOURCELESS_UCODE} != "no" 644_lio= lio 645.endif 646_nctgpio= nctgpio 647_ntb= ntb 648_ocs_fc= ocs_fc 649_pccard= pccard 650_qat= qat 651_qatfw= qatfw 652.if ${MK_OFED} != "no" || defined(ALL_MODULES) 653_rdma= rdma 654.endif 655_safe= safe 656_speaker= speaker 657_splash= splash 658_sppp= sppp 659_wbwd= wbwd 660 661_aac= aac 662_aacraid= aacraid 663_acpi= acpi 664.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 665_aesni= aesni 666.endif 667_amd_ecc_inject=amd_ecc_inject 668_amdsbwd= amdsbwd 669_amdsmn= amdsmn 670_amdtemp= amdtemp 671_arcmsr= arcmsr 672_asmc= asmc 673.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 674_blake2= blake2 675.endif 676_bytgpio= bytgpio 677_chvgpio= chvgpio 678_ciss= ciss 679_chromebook_platform= chromebook_platform 680_coretemp= coretemp 681.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) 682_hpt27xx= hpt27xx 683.endif 684_hptiop= hptiop 685.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) 686_hptmv= hptmv 687_hptnr= hptnr 688_hptrr= hptrr 689.endif 690_hyperv= hyperv 691_ichwd= ichwd 692_ida= ida 693_iir= iir 694_intelspi= intelspi 695_ips= ips 696_isci= isci 697_ipw= ipw 698_iwi= iwi 699_iwm= iwm 700_iwn= iwn 701.if ${MK_SOURCELESS_UCODE} != "no" 702_ipwfw= ipwfw 703_iwifw= iwifw 704_iwmfw= iwmfw 705_iwnfw= iwnfw 706.endif 707_mly= mly 708_nfe= nfe 709_nvd= nvd 710_nvme= nvme 711_nvram= nvram 712.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 713_padlock= padlock 714_padlock_rng= padlock_rng 715_rdrand_rng= rdrand_rng 716.endif 717_pchtherm = pchtherm 718_s3= s3 719_sdhci_acpi= sdhci_acpi 720_superio= superio 721_tpm= tpm 722_twa= twa 723_vesa= vesa 724_viawd= viawd 725_wpi= wpi 726.if ${MK_SOURCELESS_UCODE} != "no" 727_wpifw= wpifw 728.endif 729_x86bios= x86bios 730.endif 731 732.if ${MACHINE_CPUARCH} == "amd64" 733_amdgpio= amdgpio 734_ccp= ccp 735_iavf= iavf 736_ioat= ioat 737_ixl= ixl 738_nvdimm= nvdimm 739_pms= pms 740_qlxge= qlxge 741_qlxgb= qlxgb 742_sume= sume 743_vmd= vmd 744.if ${MK_SOURCELESS_UCODE} != "no" 745_qlxgbe= qlxgbe 746_qlnx= qlnx 747.endif 748_sfxge= sfxge 749_sgx= sgx 750_sgx_linux= sgx_linux 751_smartpqi= smartpqi 752 753.if ${MK_BHYVE} != "no" || defined(ALL_MODULES) 754.if ${KERN_OPTS:MSMP} 755_vmm= vmm 756.endif 757.endif 758.endif 759 760.if ${MACHINE_CPUARCH} == "i386" 761# XXX some of these can move to the general case when de-i386'ed 762# XXX some of these can move now, but are untested on other architectures. 763_3dfx= 3dfx 764_3dfx_linux= 3dfx_linux 765.if ${MK_SOURCELESS_HOST} != "no" 766_ce= ce 767.endif 768.if ${MK_SOURCELESS_HOST} != "no" 769_cp= cp 770.endif 771_glxiic= glxiic 772_glxsb= glxsb 773_pcfclock= pcfclock 774_pst= pst 775_sbni= sbni 776.endif 777 778.if ${MACHINE_ARCH} == "armv7" 779_cfi= cfi 780_cpsw= cpsw 781.endif 782 783.if ${MACHINE_CPUARCH} == "powerpc" 784_aacraid= aacraid 785_agp= agp 786_an= an 787_cardbus= cardbus 788_cbb= cbb 789_cfi= cfi 790_cpufreq= cpufreq 791_exca= exca 792_ffec= ffec 793_nvd= nvd 794_nvme= nvme 795_pccard= pccard 796.endif 797 798.if ${MACHINE_ARCH:Mpowerpc64*} != "" 799_ipmi= ipmi 800_ixl= ixl 801_nvram= opal_nvram 802.endif 803.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe" 804# Don't build powermac_nvram for powerpcspe, it's never supported. 805_nvram+= powermac_nvram 806.endif 807 808.if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 809 ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "i386") 810_cloudabi32= cloudabi32 811.endif 812.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" 813_cloudabi64= cloudabi64 814.endif 815 816.endif 817 818.if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64" 819_bcm283x_clkman= bcm283x_clkman 820_bcm283x_pwm= bcm283x_pwm 821.endif 822 823.if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000) 824# LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11: 825# https://bugs.llvm.org/show_bug.cgi?id=44351 826_malo= malo 827.endif 828 829SUBDIR+=${MODULES_EXTRA} 830 831.for reject in ${WITHOUT_MODULES} 832SUBDIR:= ${SUBDIR:N${reject}} 833.endfor 834 835# Calling kldxref(8) for each module is expensive. 836.if !defined(NO_XREF) 837.MAKEFLAGS+= -DNO_XREF 838afterinstall: .PHONY 839 @if type kldxref >/dev/null 2>&1; then \ 840 ${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 841 ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 842 fi 843.endif 844 845SUBDIR:= ${SUBDIR:u:O} 846 847.include <bsd.subdir.mk> 848