1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5# Modules that include binary-only blobs of microcode should be selectable by 6# MK_SOURCELESS_UCODE option (see below). 7 8SUBDIR= \ 9 ${_3dfx} \ 10 ${_3dfx_linux} \ 11 ${_aac} \ 12 ${_aacraid} \ 13 accf_data \ 14 accf_dns \ 15 accf_http \ 16 acl_nfs4 \ 17 acl_posix1e \ 18 ${_acpi} \ 19 ae \ 20 ${_aesni} \ 21 age \ 22 ${_agp} \ 23 aha \ 24 ${_ahb} \ 25 ahci \ 26 ${_aic} \ 27 aic7xxx \ 28 aio \ 29 alc \ 30 ale \ 31 alq \ 32 ${_amdsbwd} \ 33 ${_amdtemp} \ 34 amr \ 35 ${_an} \ 36 ${_aout} \ 37 ${_apm} \ 38 ${_arcmsr} \ 39 ${_arcnet} \ 40 ${_asmc} \ 41 ${_asr} \ 42 ata \ 43 ath \ 44 ath_pci \ 45 ${_auxio} \ 46 ${_bce} \ 47 bfe \ 48 bge \ 49 ${_bxe} \ 50 ${_bios} \ 51 ${_bktr} \ 52 ${_bm} \ 53 bridgestp \ 54 bwi \ 55 bwn \ 56 cam \ 57 ${_canbepm} \ 58 ${_canbus} \ 59 ${_cardbus} \ 60 ${_carp} \ 61 cas \ 62 ${_cbb} \ 63 cc \ 64 cd9660 \ 65 cd9660_iconv \ 66 ${_ce} \ 67 ${_cfi} \ 68 ${_ciss} \ 69 ${_cm} \ 70 ${_cmx} \ 71 ${_coff} \ 72 ${_coretemp} \ 73 ${_cp} \ 74 ${_cpsw} \ 75 ${_cpuctl} \ 76 ${_cpufreq} \ 77 ${_crypto} \ 78 ${_cryptodev} \ 79 ${_cs} \ 80 ${_ct} \ 81 ${_ctau} \ 82 ctl \ 83 ${_cxgb} \ 84 ${_cxgbe} \ 85 ${_cyclic} \ 86 dc \ 87 dcons \ 88 dcons_crom \ 89 de \ 90 ${_dpms} \ 91 ${_dpt} \ 92 ${_drm} \ 93 ${_drm2} \ 94 ${_dtrace} \ 95 dummynet \ 96 ${_ed} \ 97 ${_elink} \ 98 ${_em} \ 99 en \ 100 ${_ep} \ 101 ${_epic} \ 102 esp \ 103 ${_et} \ 104 ${_ex} \ 105 ${_exca} \ 106 ${_ext2fs} \ 107 ${_fatm} \ 108 fdc \ 109 fdescfs \ 110 ${_fe} \ 111 ${_filemon} \ 112 firewire \ 113 firmware \ 114 fuse \ 115 ${_fxp} \ 116 gem \ 117 geom \ 118 ${_glxiic} \ 119 ${_glxsb} \ 120 hatm \ 121 hifn \ 122 hme \ 123 ${_hpt27xx} \ 124 ${_hptiop} \ 125 ${_hptmv} \ 126 ${_hptnr} \ 127 ${_hptrr} \ 128 hwpmc \ 129 ${_hyperv} \ 130 ${_i2c} \ 131 ${_ibcore} \ 132 ${_ibcs2} \ 133 ${_ichwd} \ 134 ${_ida} \ 135 ${_ie} \ 136 if_bridge \ 137 if_disc \ 138 if_edsc \ 139 if_ef \ 140 if_epair \ 141 if_faith \ 142 if_gif \ 143 ${_if_gre} \ 144 if_lagg \ 145 ${_if_ndis} \ 146 if_stf \ 147 if_tap \ 148 if_tun \ 149 if_vlan \ 150 ${_igb} \ 151 ${_iir} \ 152 ${_io} \ 153 ${_ipoib} \ 154 ${_ipdivert} \ 155 ${_ipfilter} \ 156 ${_ipfw} \ 157 ipfw_nat \ 158 ${_ipmi} \ 159 ip6_mroute_mod \ 160 ip_mroute_mod \ 161 ${_ips} \ 162 ${_ipw} \ 163 ${_ipwfw} \ 164 ${_isci} \ 165 iscsi \ 166 iscsi_initiator \ 167 isp \ 168 ${_ispfw} \ 169 ${_iwi} \ 170 ${_iwifw} \ 171 ${_iwn} \ 172 ${_iwnfw} \ 173 ${_ixgb} \ 174 ${_ixgbe} \ 175 jme \ 176 joy \ 177 kbdmux \ 178 kgssapi \ 179 kgssapi_krb5 \ 180 khelp \ 181 krpc \ 182 ksyms \ 183 le \ 184 lge \ 185 libalias \ 186 libiconv \ 187 libmbpool \ 188 libmchain \ 189 ${_lindev} \ 190 ${_linprocfs} \ 191 ${_linsysfs} \ 192 ${_linux} \ 193 lmc \ 194 lpt \ 195 mac_biba \ 196 mac_bsdextended \ 197 mac_ifoff \ 198 mac_lomac \ 199 mac_mls \ 200 mac_none \ 201 mac_partition \ 202 mac_portacl \ 203 mac_seeotheruids \ 204 mac_stub \ 205 mac_test \ 206 malo \ 207 mcd \ 208 md \ 209 mem \ 210 mfi \ 211 mii \ 212 mlx \ 213 ${_mlx4} \ 214 ${_mlx4ib} \ 215 ${_mlxen} \ 216 ${_mly} \ 217 mmc \ 218 mmcsd \ 219 mps \ 220 mpt \ 221 mqueue \ 222 msdosfs \ 223 msdosfs_iconv \ 224 ${_mse} \ 225 msk \ 226 ${_mthca} \ 227 mvs \ 228 mwl \ 229 ${_mwlfw} \ 230 mxge \ 231 my \ 232 ${_nandfs} \ 233 ${_nandsim} \ 234 ${_ncp} \ 235 ${_ncv} \ 236 ${_ndis} \ 237 ${_netgraph} \ 238 ${_nfe} \ 239 nfs_common \ 240 nfscl \ 241 nfsclient \ 242 nfscommon \ 243 nfsd \ 244 nfslock \ 245 nfslockd \ 246 nfsserver \ 247 nfssvc \ 248 nge \ 249 nmdm \ 250 ${_nsp} \ 251 nullfs \ 252 ${_ntb} \ 253 ${_nvd} \ 254 ${_nvme} \ 255 ${_nvram} \ 256 ${_nxge} \ 257 ${_opensolaris} \ 258 oce \ 259 ${_padlock} \ 260 patm \ 261 ${_pccard} \ 262 ${_pcfclock} \ 263 pcn \ 264 ${_pf} \ 265 ${_pflog} \ 266 ${_pfsync} \ 267 plip \ 268 ${_pmc} \ 269 ppbus \ 270 ppc \ 271 ppi \ 272 pps \ 273 procfs \ 274 pseudofs \ 275 ${_pst} \ 276 pty \ 277 puc \ 278 ${_qlxge} \ 279 ${_qlxgb} \ 280 ${_qlxgbe} \ 281 ral \ 282 ${_ralfw} \ 283 ${_random} \ 284 rc4 \ 285 ${_rdma} \ 286 re \ 287 reiserfs \ 288 rl \ 289 ${_s3} \ 290 ${_safe} \ 291 ${_sbni} \ 292 scc \ 293 scd \ 294 ${_scsi_low} \ 295 sdhci \ 296 sdhci_pci \ 297 sem \ 298 send \ 299 ${_sf} \ 300 ${_sfxge} \ 301 sge \ 302 siba_bwn \ 303 siftr \ 304 siis \ 305 sis \ 306 sk \ 307 ${_smbfs} \ 308 ${_sn} \ 309 ${_snc} \ 310 snp \ 311 ${_sound} \ 312 ${_speaker} \ 313 ${_splash} \ 314 ${_sppp} \ 315 ste \ 316 ${_stg} \ 317 stge \ 318 ${_streams} \ 319 ${_svr4} \ 320 ${_sym} \ 321 ${_syscons} \ 322 sysvipc \ 323 ${_ti} \ 324 tl \ 325 tmpfs \ 326 ${_toecore} \ 327 ${_tpm} \ 328 trm \ 329 ${_twa} \ 330 twe \ 331 tws \ 332 tx \ 333 ${_txp} \ 334 uart \ 335 ubsec \ 336 udf \ 337 udf_iconv \ 338 ufs \ 339 unionfs \ 340 usb \ 341 utopia \ 342 ${_vesa} \ 343 ${_virtio} \ 344 vge \ 345 ${_viawd} \ 346 vkbd \ 347 ${_vmm} \ 348 ${_vmware} \ 349 ${_vpo} \ 350 vr \ 351 vte \ 352 vx \ 353 ${_vxge} \ 354 wb \ 355 ${_wbwd} \ 356 ${_wi} \ 357 wlan \ 358 wlan_acl \ 359 wlan_amrr \ 360 wlan_ccmp \ 361 wlan_rssadapt \ 362 wlan_tkip \ 363 wlan_wep \ 364 wlan_xauth \ 365 ${_wpi} \ 366 ${_wpifw} \ 367 ${_x86bios} \ 368 ${_xe} \ 369 xl \ 370 ${_zfs} \ 371 zlib \ 372 373.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 374_filemon= filemon 375_vmware= vmware 376.endif 377 378.if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \ 379 ${MACHINE_CPUARCH} != "mips" 380_syscons= syscons 381_vpo= vpo 382.endif 383 384.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" 385# no BUS_SPACE_UNSPECIFIED 386# No barrier instruction support (specific to this driver) 387_sym= sym 388# intr_disable() is a macro, causes problems 389.if ${MK_SOURCELESS_UCODE} != "no" 390_cxgb= cxgb 391.endif 392.endif 393 394.if ${MK_SOURCELESS_UCODE} != "no" 395_cxgbe= cxgbe 396.endif 397 398.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 399.if exists(${.CURDIR}/../opencrypto) 400_crypto= crypto 401_cryptodev= cryptodev 402.endif 403.if exists(${.CURDIR}/../crypto) 404_random= random 405.endif 406.endif 407 408.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ 409 defined(ALL_MODULES) 410_carp= carp 411_toecore= toecore 412.endif 413 414.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 415_if_gre= if_gre 416.endif 417 418.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 419_ipfilter= ipfilter 420.endif 421 422.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 423_ipdivert= ipdivert 424_ipfw= ipfw 425.endif 426 427.if ${MK_NAND} != "no" || defined(ALL_MODULES) 428_nandfs= nandfs 429_nandsim= nandsim 430.endif 431 432.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 433_netgraph= netgraph 434.endif 435 436.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 437 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 438_pf= pf 439_pflog= pflog 440.if ${MK_INET_SUPPORT} != "no" 441_pfsync= pfsync 442.endif 443.endif 444 445.if ${MK_SOURCELESS_UCODE} != "no" 446_bce= bce 447_fatm= fatm 448_fxp= fxp 449_ispfw= ispfw 450_mwlfw= mwlfw 451_ralfw= ralfw 452_sf= sf 453_sn= sn 454_ti= ti 455_txp= txp 456.endif 457 458.if ${MACHINE_CPUARCH} == "i386" 459# XXX some of these can move to the general case when de-i386'ed 460# XXX some of these can move now, but are untested on other architectures. 461_3dfx= 3dfx 462_3dfx_linux= 3dfx_linux 463_agp= agp 464_aic= aic 465_an= an 466_aout= aout 467_apm= apm 468_arcnet= arcnet 469_bktr= bktr 470_bxe= bxe 471_cardbus= cardbus 472_cbb= cbb 473.if ${MK_SOURCELESS_UCODE} != "no" 474_ce= ce 475.endif 476_coff= coff 477.if ${MK_SOURCELESS_UCODE} != "no" 478_cp= cp 479.endif 480_cpuctl= cpuctl 481_cpufreq= cpufreq 482_cs= cs 483.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 484_cyclic= cyclic 485.endif 486_dpms= dpms 487_drm= drm 488_drm2= drm2 489.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 490_dtrace= dtrace 491.endif 492_ed= ed 493_elink= elink 494_em= em 495_ep= ep 496_et= et 497_exca= exca 498_ext2fs= ext2fs 499_fe= fe 500_glxiic= glxiic 501_glxsb= glxsb 502_i2c= i2c 503.if ${MK_OFED} != "no" || defined(ALL_MODULES) 504_ibcore= ibcore 505.endif 506_ibcs2= ibcs2 507_ie= ie 508_if_ndis= if_ndis 509_igb= igb 510_io= io 511.if ${MK_OFED} != "no" || defined(ALL_MODULES) 512_ipoib= ipoib 513.endif 514_lindev= lindev 515_linprocfs= linprocfs 516_linsysfs= linsysfs 517_linux= linux 518_mse= mse 519.if ${MK_OFED} != "no" || defined(ALL_MODULES) 520_mlx4= mlx4 521_mlx4ib= mlx4ib 522_mlxen= mlxen 523_mthca= mthca 524.endif 525_ncv= ncv 526_ndis= ndis 527_nsp= nsp 528.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 529_opensolaris= opensolaris 530.endif 531_pccard= pccard 532_pcfclock= pcfclock 533_pst= pst 534.if ${MK_OFED} != "no" || defined(ALL_MODULES) 535_rdma= rdma 536.endif 537_safe= safe 538_sbni= sbni 539_scsi_low= scsi_low 540_smbfs= smbfs 541_sound= sound 542_speaker= speaker 543_splash= splash 544_sppp= sppp 545_stg= stg 546_streams= streams 547_svr4= svr4 548_vxge= vxge 549_wbwd= wbwd 550_wi= wi 551_xe= xe 552.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 553_zfs= zfs 554.endif 555.if ${MACHINE} == "i386" 556_aac= aac 557_aacraid= aacraid 558_acpi= acpi 559.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 560_aesni= aesni 561.endif 562_ahb= ahb 563_amdsbwd= amdsbwd 564_amdtemp= amdtemp 565_arcmsr= arcmsr 566_asmc= asmc 567_asr= asr 568_bios= bios 569_ciss= ciss 570_cm= cm 571_cmx= cmx 572_coretemp= coretemp 573.if ${MK_SOURCELESS_UCODE} != "no" 574_ctau= ctau 575.endif 576_dpt= dpt 577_ex= ex 578.if ${MK_SOURCELESS_HOST} != "no" 579_hpt27xx= hpt27xx 580.endif 581_hptiop= hptiop 582.if ${MK_SOURCELESS_HOST} != "no" 583_hptmv= hptmv 584_hptnr= hptnr 585_hptrr= hptrr 586.endif 587_hyperv= hyperv 588_ichwd= ichwd 589_ida= ida 590_iir= iir 591_ipmi= ipmi 592_ips= ips 593_ipw= ipw 594.if ${MK_SOURCELESS_UCODE} != "no" 595_ipwfw= ipwfw 596.endif 597_isci= isci 598_iwi= iwi 599.if ${MK_SOURCELESS_UCODE} != "no" 600_iwifw= iwifw 601.endif 602_iwn= iwn 603.if ${MK_SOURCELESS_UCODE} != "no" 604_iwnfw= iwnfw 605.endif 606_ixgb= ixgb 607_ixgbe= ixgbe 608_mly= mly 609_nfe= nfe 610_nvd= nvd 611_nvme= nvme 612_nvram= nvram 613_nxge= nxge 614_tpm= tpm 615_viawd= viawd 616_wpi= wpi 617.if ${MK_SOURCELESS_UCODE} != "no" 618_wpifw= wpifw 619.endif 620.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 621_padlock= padlock 622.endif 623_s3= s3 624_twa= twa 625_vesa= vesa 626_virtio= virtio 627_x86bios= x86bios 628.elif ${MACHINE} == "pc98" 629_canbepm= canbepm 630_canbus= canbus 631_ct= ct 632_pmc= pmc 633_snc= snc 634.endif 635.endif 636 637.if ${MACHINE_CPUARCH} == "amd64" 638_aac= aac 639_aacraid= aacraid 640_aout= aout 641_acpi= acpi 642.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 643_aesni= aesni 644.endif 645_agp= agp 646_an= an 647_amdsbwd= amdsbwd 648_amdtemp= amdtemp 649_arcmsr= arcmsr 650_asmc= asmc 651_bktr= bktr 652_bxe= bxe 653_cardbus= cardbus 654_cbb= cbb 655_cmx= cmx 656_ciss= ciss 657_coretemp= coretemp 658_cpuctl= cpuctl 659_cpufreq= cpufreq 660.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 661_cyclic= cyclic 662.endif 663_dpms= dpms 664_drm= drm 665_drm2= drm2 666.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 667_dtrace= dtrace 668.endif 669_ed= ed 670_et= et 671_em= em 672_exca= exca 673_ext2fs= ext2fs 674.if ${MK_SOURCELESS_HOST} != "no" 675_hpt27xx= hpt27xx 676.endif 677_hptiop= hptiop 678.if ${MK_SOURCELESS_HOST} != "no" 679_hptmv= hptmv 680_hptnr= hptnr 681_hptrr= hptrr 682.endif 683_hyperv= hyperv 684_i2c= i2c 685.if ${MK_OFED} != "no" || defined(ALL_MODULES) 686_ibcore= ibcore 687.endif 688_ichwd= ichwd 689_ida= ida 690_if_ndis= if_ndis 691_igb= igb 692_iir= iir 693_io= io 694_ipmi= ipmi 695.if ${MK_OFED} != "no" || defined(ALL_MODULES) 696_ipoib= ipoib 697.endif 698_ips= ips 699_ipw= ipw 700.if ${MK_SOURCELESS_UCODE} != "no" 701_ipwfw= ipwfw 702.endif 703_isci= isci 704_iwi= iwi 705.if ${MK_SOURCELESS_UCODE} != "no" 706_iwifw= iwifw 707.endif 708_iwn= iwn 709.if ${MK_SOURCELESS_UCODE} != "no" 710_iwnfw= iwnfw 711.endif 712_ixgb= ixgb 713_ixgbe= ixgbe 714_lindev= lindev 715_linprocfs= linprocfs 716_linsysfs= linsysfs 717_linux= linux 718_mly= mly 719.if ${MK_OFED} != "no" || defined(ALL_MODULES) 720_mlx4= mlx4 721_mlx4ib= mlx4ib 722_mlxen= mlxen 723_mthca= mthca 724.endif 725_ndis= ndis 726_nfe= nfe 727_ntb= ntb 728_nvd= nvd 729_nvme= nvme 730_nvram= nvram 731_nxge= nxge 732.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 733_opensolaris= opensolaris 734.endif 735.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 736_padlock= padlock 737.endif 738_pccard= pccard 739_qlxge= qlxge 740_qlxgb= qlxgb 741_qlxgbe= qlxgbe 742.if ${MK_OFED} != "no" || defined(ALL_MODULES) 743_rdma= rdma 744.endif 745_s3= s3 746_safe= safe 747_scsi_low= scsi_low 748_sfxge= sfxge 749_smbfs= smbfs 750_sound= sound 751_speaker= speaker 752_splash= splash 753_sppp= sppp 754_tpm= tpm 755_twa= twa 756_vesa= vesa 757_viawd= viawd 758_virtio= virtio 759_vmm= vmm 760_vxge= vxge 761_x86bios= x86bios 762_wbwd= wbwd 763_wi= wi 764_wpi= wpi 765.if ${MK_SOURCELESS_UCODE} != "no" 766_wpifw= wpifw 767.endif 768.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 769_zfs= zfs 770.endif 771.endif 772 773.if ${MACHINE_CPUARCH} == "arm" 774_cfi= cfi 775_cpsw= cpsw 776.endif 777 778.if ${MACHINE_CPUARCH} == "ia64" 779_aac= aac 780_aacraid= aacraid 781_aic= aic 782_an= an 783_arcnet= arcnet 784_asr= asr 785_bktr= bktr 786_cardbus= cardbus 787_cbb= cbb 788_ciss= ciss 789_cm= cm 790_cmx= cmx 791_coff= coff 792_cpufreq= cpufreq 793_dpt= dpt 794_em= em 795_ep= ep 796_et= et 797_exca= exca 798_fe= fe 799_hptiop= hptiop 800_ida= ida 801_igb= igb 802_iir= iir 803_ips= ips 804_mly= mly 805_pccard= pccard 806_scsi_low= scsi_low 807_smbfs= smbfs 808_sound= sound 809_splash= splash 810_sppp= sppp 811_streams= streams 812_tpm= tpm 813_twa= twa 814_wi= wi 815_xe= xe 816.endif 817 818.if ${MACHINE_CPUARCH} == "powerpc" 819_agp= agp 820_an= an 821_bm= bm 822_cardbus= cardbus 823_cbb= cbb 824_cfi= cfi 825_cpufreq= cpufreq 826.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 827_cyclic= cyclic 828.endif 829_drm= drm 830.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 831_dtrace= dtrace 832.endif 833_exca= exca 834_nvram= powermac_nvram 835_pccard= pccard 836_smbfs= smbfs 837_sound= sound 838.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 839_opensolaris= opensolaris 840.endif 841_wi= wi 842.endif 843 844.if ${MACHINE_ARCH} == "powerpc64" 845.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 846_zfs= zfs 847.endif 848.endif 849 850.if ${MACHINE_CPUARCH} == "sparc64" 851_auxio= auxio 852_em= em 853_epic= epic 854_i2c= i2c 855_igb= igb 856.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 857_opensolaris= opensolaris 858.endif 859_smbfs= smbfs 860_sound= sound 861.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 862_zfs= zfs 863.endif 864.endif 865 866.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 867SUBDIR=${MODULES_OVERRIDE} 868.endif 869 870.for reject in ${WITHOUT_MODULES} 871SUBDIR:= ${SUBDIR:N${reject}} 872.endfor 873 874# Calling kldxref(8) for each module is expensive. 875.if !defined(NO_XREF) 876.MAKEFLAGS+= -DNO_XREF 877afterinstall: 878 @if type kldxref >/dev/null 2>&1; then \ 879 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 880 kldxref ${DESTDIR}${KMODDIR}; \ 881 fi 882.endif 883 884.include <bsd.subdir.mk> 885