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