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