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# MAC framework 545.if ${KERN_OPTS:MMAC} || defined(ALL_MODULES) 546_mac_biba= mac_biba 547_mac_bsdextended= mac_bsdextended 548_mac_ifoff= mac_ifoff 549_mac_lomac= mac_lomac 550_mac_mls= mac_mls 551_mac_none= mac_none 552_mac_ntpd= mac_ntpd 553_mac_partition= mac_partition 554_mac_pimd= mac_pimd 555_mac_portacl= mac_portacl 556_mac_priority= mac_priority 557_mac_seeotheruids= mac_seeotheruids 558_mac_stub= mac_stub 559_mac_test= mac_test 560.endif 561 562.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 563_netgraph= netgraph 564.endif 565 566.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 567 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 568_pf= pf 569_pflog= pflog 570.if ${MK_INET_SUPPORT} != "no" 571_pfsync= pfsync 572.endif 573.endif 574 575.if ${MK_SOURCELESS_UCODE} != "no" 576_bce= bce 577_fxp= fxp 578_ispfw= ispfw 579_ti= ti 580_mwlfw= mwlfw 581_otusfw= otusfw 582_ralfw= ralfw 583_rtwnfw= rtwnfw 584.endif 585 586.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \ 587 ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \ 588 ${MACHINE_CPUARCH} != "riscv" 589_cxgbe= cxgbe 590.endif 591 592.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64" || ${MACHINE_ARCH:Mpowerpc64*} 593_ice= ice 594.if ${MK_SOURCELESS_UCODE} != "no" 595_ice_ddp= ice_ddp 596.endif 597.if ${MK_OFED} != "no" || defined(ALL_MODULES) 598.if ${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no" 599_irdma= irdma 600.endif 601.endif 602.endif 603 604.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \ 605 ${MACHINE_CPUARCH} == "riscv" 606_if_cgem= if_cgem 607.endif 608 609# These rely on 64bit atomics 610.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" 611_mps= mps 612_mpr= mpr 613.endif 614 615.if ${MK_TESTS} != "no" || defined(ALL_MODULES) 616SUBDIR+= tests 617.endif 618 619.if ${MK_ZFS} != "no" || (defined(ALL_MODULES) && ${MACHINE_CPUARCH} != "powerpc") 620SUBDIR+= zfs 621.endif 622 623.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \ 624 ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "riscv" 625_syscons= syscons 626.endif 627 628.if ${MK_SOURCELESS_UCODE} != "no" 629_cxgb= cxgb 630.endif 631 632.if ${MACHINE_CPUARCH} == "aarch64" 633_allwinner= allwinner 634_armv8crypto= armv8crypto 635_dwwdt= dwwdt 636_em= em 637_enetc= enetc 638_felix= felix 639_rockchip= rockchip 640.endif 641 642.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" 643_sdhci_fdt= sdhci_fdt 644_e6000sw= e6000sw 645_neta= neta 646.endif 647 648.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 649_agp= agp 650.if ${MACHINE_CPUARCH} == "i386" || !empty(COMPAT_FREEBSD32_ENABLED) 651_aout= aout 652.endif 653_bios= bios 654.if ${MK_SOURCELESS_UCODE} != "no" 655_bxe= bxe 656.endif 657_cardbus= cardbus 658_cbb= cbb 659_cpuctl= cpuctl 660_cpufreq= cpufreq 661_dpms= dpms 662_em= em 663_et= et 664_ftwd= ftwd 665_exca= exca 666_igc= igc 667_io= io 668_itwd= itwd 669_ix= ix 670_ixv= ixv 671.if ${MK_SOURCELESS_UCODE} != "no" 672_lio= lio 673.endif 674_mana= mana 675_mgb= mgb 676_nctgpio= nctgpio 677_ntb= ntb 678_ocs_fc= ocs_fc 679_qat= qat 680_qatfw= qatfw 681.if ${MK_OFED} != "no" || defined(ALL_MODULES) 682_rdma= rdma 683.endif 684_safe= safe 685_speaker= speaker 686_splash= splash 687_p2sb= p2sb 688_wbwd= wbwd 689 690_aac= aac 691_aacraid= aacraid 692_acpi= acpi 693.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 694_aesni= aesni 695.endif 696_amd_ecc_inject=amd_ecc_inject 697_amdsbwd= amdsbwd 698_amdsmn= amdsmn 699_amdtemp= amdtemp 700_arcmsr= arcmsr 701_asmc= asmc 702.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 703_blake2= blake2 704.endif 705_bytgpio= bytgpio 706_chvgpio= chvgpio 707_ciss= ciss 708_chromebook_platform= chromebook_platform 709_coretemp= coretemp 710.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) 711_hpt27xx= hpt27xx 712.endif 713_hptiop= hptiop 714.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) 715_hptmv= hptmv 716_hptnr= hptnr 717_hptrr= hptrr 718.endif 719_hyperv= hyperv 720_ichwd= ichwd 721_ida= ida 722_intelspi= intelspi 723_ips= ips 724_isci= isci 725_ipw= ipw 726_iwi= iwi 727_iwm= iwm 728_iwn= iwn 729.if ${MK_SOURCELESS_UCODE} != "no" 730_ipwfw= ipwfw 731_iwifw= iwifw 732_iwmfw= iwmfw 733_iwnfw= iwnfw 734.endif 735_nfe= nfe 736_nvd= nvd 737_nvme= nvme 738_nvram= nvram 739.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 740_padlock= padlock 741_padlock_rng= padlock_rng 742_rdrand_rng= rdrand_rng 743.endif 744_pchtherm = pchtherm 745_s3= s3 746_sdhci_acpi= sdhci_acpi 747_superio= superio 748_tpm= tpm 749_vesa= vesa 750_viawd= viawd 751_vmd= vmd 752_wpi= wpi 753.if ${MK_SOURCELESS_UCODE} != "no" 754_wpifw= wpifw 755.endif 756_x86bios= x86bios 757.endif 758 759.if ${MACHINE_CPUARCH} == "amd64" 760_amdgpio= amdgpio 761_ccp= ccp 762_iavf= iavf 763_ioat= ioat 764_ixl= ixl 765_nvdimm= nvdimm 766_pms= pms 767_qlxge= qlxge 768_qlxgb= qlxgb 769_sume= sume 770.if ${MK_SOURCELESS_UCODE} != "no" 771_qlxgbe= qlxgbe 772_qlnx= qlnx 773.endif 774_sfxge= sfxge 775_sgx= sgx 776_sgx_linux= sgx_linux 777_smartpqi= smartpqi 778_p2sb= p2sb 779 780.if ${MK_BHYVE} != "no" || defined(ALL_MODULES) 781.if ${KERN_OPTS:MSMP} 782_vmm= vmm 783.endif 784.endif 785.endif 786 787.if ${MACHINE_CPUARCH} == "i386" 788# XXX some of these can move to the general case when de-i386'ed 789# XXX some of these can move now, but are untested on other architectures. 790_3dfx= 3dfx 791_3dfx_linux= 3dfx_linux 792.if ${MK_SOURCELESS_HOST} != "no" 793_ce= ce 794.endif 795.if ${MK_SOURCELESS_HOST} != "no" 796_cp= cp 797.endif 798_glxiic= glxiic 799_glxsb= glxsb 800_pcfclock= pcfclock 801_pst= pst 802_sbni= sbni 803.endif 804 805.if ${MACHINE_ARCH} == "armv7" 806_cfi= cfi 807_cpsw= cpsw 808.endif 809 810.if ${MACHINE_CPUARCH} == "powerpc" 811_aacraid= aacraid 812_agp= agp 813_an= an 814_cardbus= cardbus 815_cbb= cbb 816_cfi= cfi 817_cpufreq= cpufreq 818_exca= exca 819_ffec= ffec 820_nvd= nvd 821_nvme= nvme 822.endif 823 824.if ${MACHINE_ARCH:Mpowerpc64*} != "" 825_ipmi= ipmi 826_ixl= ixl 827_nvram= opal_nvram 828.endif 829.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe" 830# Don't build powermac_nvram for powerpcspe, it's never supported. 831_nvram+= powermac_nvram 832.endif 833 834.endif 835 836.if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64" 837_bcm283x_clkman= bcm283x_clkman 838_bcm283x_pwm= bcm283x_pwm 839.endif 840 841.if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000) 842# LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11: 843# https://bugs.llvm.org/show_bug.cgi?id=44351 844_malo= malo 845.endif 846 847SUBDIR+=${MODULES_EXTRA} 848 849.for reject in ${WITHOUT_MODULES} 850SUBDIR:= ${SUBDIR:N${reject}} 851.endfor 852 853# Calling kldxref(8) for each module is expensive. 854.if !defined(NO_XREF) 855.MAKEFLAGS+= -DNO_XREF 856afterinstall: .PHONY 857 @if type kldxref >/dev/null 2>&1; then \ 858 ${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 859 ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 860 fi 861.endif 862 863SUBDIR:= ${SUBDIR:u:O} 864 865.include <bsd.subdir.mk> 866