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