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 ${_nve} \ 255 ${_nvme} \ 256 ${_nvram} \ 257 ${_nxge} \ 258 ${_opensolaris} \ 259 oce \ 260 ${_padlock} \ 261 patm \ 262 ${_pccard} \ 263 ${_pcfclock} \ 264 pcn \ 265 ${_pf} \ 266 ${_pflog} \ 267 ${_pfsync} \ 268 plip \ 269 ${_pmc} \ 270 ppbus \ 271 ppc \ 272 ppi \ 273 pps \ 274 procfs \ 275 pseudofs \ 276 ${_pst} \ 277 pty \ 278 puc \ 279 ${_qlxge} \ 280 ${_qlxgb} \ 281 ${_qlxgbe} \ 282 ral \ 283 ${_ralfw} \ 284 ${_random} \ 285 rc4 \ 286 ${_rdma} \ 287 re \ 288 reiserfs \ 289 rl \ 290 ${_s3} \ 291 ${_safe} \ 292 ${_sbni} \ 293 scc \ 294 scd \ 295 ${_scsi_low} \ 296 sdhci \ 297 sdhci_pci \ 298 sem \ 299 send \ 300 ${_sf} \ 301 ${_sfxge} \ 302 sge \ 303 siba_bwn \ 304 siftr \ 305 siis \ 306 sis \ 307 sk \ 308 ${_smbfs} \ 309 ${_sn} \ 310 ${_snc} \ 311 snp \ 312 ${_sound} \ 313 ${_speaker} \ 314 ${_splash} \ 315 ${_sppp} \ 316 ste \ 317 ${_stg} \ 318 stge \ 319 ${_streams} \ 320 ${_svr4} \ 321 ${_sym} \ 322 ${_syscons} \ 323 sysvipc \ 324 ${_ti} \ 325 tl \ 326 tmpfs \ 327 ${_toecore} \ 328 ${_tpm} \ 329 trm \ 330 ${_twa} \ 331 twe \ 332 tws \ 333 tx \ 334 ${_txp} \ 335 uart \ 336 ubsec \ 337 udf \ 338 udf_iconv \ 339 ufs \ 340 unionfs \ 341 usb \ 342 utopia \ 343 ${_vesa} \ 344 ${_virtio} \ 345 vge \ 346 ${_viawd} \ 347 vkbd \ 348 ${_vmm} \ 349 ${_vmware} \ 350 ${_vpo} \ 351 vr \ 352 vte \ 353 vx \ 354 ${_vxge} \ 355 wb \ 356 ${_wbwd} \ 357 ${_wi} \ 358 wlan \ 359 wlan_acl \ 360 wlan_amrr \ 361 wlan_ccmp \ 362 wlan_rssadapt \ 363 wlan_tkip \ 364 wlan_wep \ 365 wlan_xauth \ 366 ${_wpi} \ 367 ${_wpifw} \ 368 ${_x86bios} \ 369 ${_xe} \ 370 xl \ 371 ${_zfs} \ 372 zlib \ 373 374.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 375_filemon= filemon 376_vmware= vmware 377.endif 378 379.if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \ 380 ${MACHINE_CPUARCH} != "mips" 381_syscons= syscons 382_vpo= vpo 383.endif 384 385.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" 386# no BUS_SPACE_UNSPECIFIED 387# No barrier instruction support (specific to this driver) 388_sym= sym 389# intr_disable() is a macro, causes problems 390.if ${MK_SOURCELESS_UCODE} != "no" 391_cxgb= cxgb 392.endif 393.endif 394 395.if ${MK_SOURCELESS_UCODE} != "no" 396_cxgbe= cxgbe 397.endif 398 399.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 400.if exists(${.CURDIR}/../opencrypto) 401_crypto= crypto 402_cryptodev= cryptodev 403.endif 404.if exists(${.CURDIR}/../crypto) 405_random= random 406.endif 407.endif 408 409.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ 410 defined(ALL_MODULES) 411_carp= carp 412_toecore= toecore 413.endif 414 415.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 416_if_gre= if_gre 417.endif 418 419.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 420_ipfilter= ipfilter 421.endif 422 423.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 424_ipdivert= ipdivert 425_ipfw= ipfw 426.endif 427 428.if ${MK_NAND} != "no" || defined(ALL_MODULES) 429_nandfs= nandfs 430_nandsim= nandsim 431.endif 432 433.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 434_netgraph= netgraph 435.endif 436 437.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 438 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 439_pf= pf 440_pflog= pflog 441.if ${MK_INET_SUPPORT} != "no" 442_pfsync= pfsync 443.endif 444.endif 445 446.if ${MK_SOURCELESS_UCODE} != "no" 447_bce= bce 448_fatm= fatm 449_fxp= fxp 450_ispfw= ispfw 451_mwlfw= mwlfw 452_ralfw= ralfw 453_sf= sf 454_sn= sn 455_ti= ti 456_txp= txp 457.endif 458 459.if ${MACHINE_CPUARCH} == "i386" 460# XXX some of these can move to the general case when de-i386'ed 461# XXX some of these can move now, but are untested on other architectures. 462_3dfx= 3dfx 463_3dfx_linux= 3dfx_linux 464_agp= agp 465_aic= aic 466_an= an 467_aout= aout 468_apm= apm 469_arcnet= arcnet 470_bktr= bktr 471_bxe= bxe 472_cardbus= cardbus 473_cbb= cbb 474.if ${MK_SOURCELESS_UCODE} != "no" 475_ce= ce 476.endif 477_coff= coff 478.if ${MK_SOURCELESS_UCODE} != "no" 479_cp= cp 480.endif 481_cpuctl= cpuctl 482_cpufreq= cpufreq 483_cs= cs 484.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 485_cyclic= cyclic 486.endif 487_dpms= dpms 488_drm= drm 489_drm2= drm2 490.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 491_dtrace= dtrace 492.endif 493_ed= ed 494_elink= elink 495_em= em 496_ep= ep 497_et= et 498_exca= exca 499_ext2fs= ext2fs 500_fe= fe 501_glxiic= glxiic 502_glxsb= glxsb 503_i2c= i2c 504.if ${MK_OFED} != "no" || defined(ALL_MODULES) 505_ibcore= ibcore 506.endif 507_ibcs2= ibcs2 508_ie= ie 509_if_ndis= if_ndis 510_igb= igb 511_io= io 512.if ${MK_OFED} != "no" || defined(ALL_MODULES) 513_ipoib= ipoib 514.endif 515_lindev= lindev 516_linprocfs= linprocfs 517_linsysfs= linsysfs 518_linux= linux 519_mse= mse 520.if ${MK_OFED} != "no" || defined(ALL_MODULES) 521_mlx4= mlx4 522_mlx4ib= mlx4ib 523_mlxen= mlxen 524_mthca= mthca 525.endif 526_ncv= ncv 527_ndis= ndis 528_nsp= nsp 529.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 530_opensolaris= opensolaris 531.endif 532_pccard= pccard 533_pcfclock= pcfclock 534_pst= pst 535_rdma= rdma 536_safe= safe 537_sbni= sbni 538_scsi_low= scsi_low 539_smbfs= smbfs 540_sound= sound 541_speaker= speaker 542_splash= splash 543_sppp= sppp 544_stg= stg 545_streams= streams 546_svr4= svr4 547_vxge= vxge 548_wbwd= wbwd 549_wi= wi 550_xe= xe 551.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 552_zfs= zfs 553.endif 554.if ${MACHINE} == "i386" 555_aac= aac 556_aacraid= aacraid 557_acpi= acpi 558.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 559_aesni= aesni 560.endif 561_ahb= ahb 562_amdsbwd= amdsbwd 563_amdtemp= amdtemp 564_arcmsr= arcmsr 565_asmc= asmc 566_asr= asr 567_bios= bios 568_ciss= ciss 569_cm= cm 570_cmx= cmx 571_coretemp= coretemp 572.if ${MK_SOURCELESS_UCODE} != "no" 573_ctau= ctau 574.endif 575_dpt= dpt 576_ex= ex 577.if ${MK_SOURCELESS_HOST} != "no" 578_hpt27xx= hpt27xx 579.endif 580_hptiop= hptiop 581.if ${MK_SOURCELESS_HOST} != "no" 582_hptmv= hptmv 583_hptnr= hptnr 584_hptrr= hptrr 585.endif 586_ichwd= ichwd 587_ida= ida 588_iir= iir 589_ipmi= ipmi 590_ips= ips 591_ipw= ipw 592.if ${MK_SOURCELESS_UCODE} != "no" 593_ipwfw= ipwfw 594.endif 595_isci= isci 596_iwi= iwi 597.if ${MK_SOURCELESS_UCODE} != "no" 598_iwifw= iwifw 599.endif 600_iwn= iwn 601.if ${MK_SOURCELESS_UCODE} != "no" 602_iwnfw= iwnfw 603.endif 604_ixgb= ixgb 605_ixgbe= ixgbe 606_mly= mly 607_nfe= nfe 608_nvd= nvd 609.if ${MK_SOURCELESS_HOST} != "no" 610_nve= nve 611.endif 612_nvme= nvme 613_nvram= nvram 614_nxge= nxge 615_tpm= tpm 616_viawd= viawd 617_wpi= wpi 618.if ${MK_SOURCELESS_UCODE} != "no" 619_wpifw= wpifw 620.endif 621.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 622_padlock= padlock 623.endif 624_s3= s3 625_twa= twa 626_vesa= vesa 627_virtio= virtio 628_x86bios= x86bios 629.elif ${MACHINE} == "pc98" 630_canbepm= canbepm 631_canbus= canbus 632_ct= ct 633_pmc= pmc 634_snc= snc 635.endif 636.endif 637 638.if ${MACHINE_CPUARCH} == "amd64" 639_aac= aac 640_aacraid= aacraid 641_aout= aout 642_acpi= acpi 643.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 644_aesni= aesni 645.endif 646_agp= agp 647_an= an 648_amdsbwd= amdsbwd 649_amdtemp= amdtemp 650_arcmsr= arcmsr 651_asmc= asmc 652_bktr= bktr 653_bxe= bxe 654_cardbus= cardbus 655_cbb= cbb 656_cmx= cmx 657_ciss= ciss 658_coretemp= coretemp 659_cpuctl= cpuctl 660_cpufreq= cpufreq 661.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 662_cyclic= cyclic 663.endif 664_dpms= dpms 665_drm= drm 666_drm2= drm2 667.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 668_dtrace= dtrace 669.endif 670_ed= ed 671_et= et 672_em= em 673_exca= exca 674_ext2fs= ext2fs 675.if ${MK_SOURCELESS_HOST} != "no" 676_hpt27xx= hpt27xx 677.endif 678_hptiop= hptiop 679.if ${MK_SOURCELESS_HOST} != "no" 680_hptmv= hptmv 681_hptnr= hptnr 682_hptrr= hptrr 683.endif 684_hyperv= hyperv 685_i2c= i2c 686.if ${MK_OFED} != "no" || defined(ALL_MODULES) 687_ibcore= ibcore 688.endif 689_ichwd= ichwd 690_ida= ida 691_if_ndis= if_ndis 692_igb= igb 693_iir= iir 694_io= io 695_ipmi= ipmi 696.if ${MK_OFED} != "no" || defined(ALL_MODULES) 697_ipoib= ipoib 698.endif 699_ips= ips 700_ipw= ipw 701.if ${MK_SOURCELESS_UCODE} != "no" 702_ipwfw= ipwfw 703.endif 704_isci= isci 705_iwi= iwi 706.if ${MK_SOURCELESS_UCODE} != "no" 707_iwifw= iwifw 708.endif 709_iwn= iwn 710.if ${MK_SOURCELESS_UCODE} != "no" 711_iwnfw= iwnfw 712.endif 713_ixgb= ixgb 714_ixgbe= ixgbe 715_lindev= lindev 716_linprocfs= linprocfs 717_linsysfs= linsysfs 718_linux= linux 719_mly= mly 720.if ${MK_OFED} != "no" || defined(ALL_MODULES) 721_mlx4= mlx4 722_mlx4ib= mlx4ib 723_mlxen= mlxen 724_mthca= mthca 725.endif 726_ndis= ndis 727_nfe= nfe 728_ntb= ntb 729_nvd= nvd 730.if ${MK_SOURCELESS_HOST} != "no" 731_nve= nve 732.endif 733_nvme= nvme 734_nvram= nvram 735_nxge= nxge 736.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 737_opensolaris= opensolaris 738.endif 739.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 740_padlock= padlock 741.endif 742_pccard= pccard 743_qlxge= qlxge 744_qlxgb= qlxgb 745_qlxgbe= qlxgbe 746_rdma= rdma 747_s3= s3 748_safe= safe 749_scsi_low= scsi_low 750_sfxge= sfxge 751_smbfs= smbfs 752_sound= sound 753_speaker= speaker 754_splash= splash 755_sppp= sppp 756_tpm= tpm 757_twa= twa 758_vesa= vesa 759_viawd= viawd 760_virtio= virtio 761_vmm= vmm 762_vxge= vxge 763_x86bios= x86bios 764_wbwd= wbwd 765_wi= wi 766_wpi= wpi 767.if ${MK_SOURCELESS_UCODE} != "no" 768_wpifw= wpifw 769.endif 770.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 771_zfs= zfs 772.endif 773.endif 774 775.if ${MACHINE_CPUARCH} == "arm" 776_cfi= cfi 777_cpsw= cpsw 778.endif 779 780.if ${MACHINE_CPUARCH} == "ia64" 781_aac= aac 782_aacraid= aacraid 783_aic= aic 784_an= an 785_arcnet= arcnet 786_asr= asr 787_bktr= bktr 788_cardbus= cardbus 789_cbb= cbb 790_ciss= ciss 791_cm= cm 792_cmx= cmx 793_coff= coff 794_cpufreq= cpufreq 795_dpt= dpt 796_em= em 797_ep= ep 798_et= et 799_exca= exca 800_fe= fe 801_hptiop= hptiop 802_ida= ida 803_igb= igb 804_iir= iir 805_ips= ips 806_mly= mly 807_pccard= pccard 808_scsi_low= scsi_low 809_smbfs= smbfs 810_sound= sound 811_splash= splash 812_sppp= sppp 813_streams= streams 814_tpm= tpm 815_twa= twa 816_wi= wi 817_xe= xe 818.endif 819 820.if ${MACHINE_CPUARCH} == "powerpc" 821_agp= agp 822_an= an 823_bm= bm 824_cardbus= cardbus 825_cbb= cbb 826_cfi= cfi 827_cpufreq= cpufreq 828.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 829_cyclic= cyclic 830.endif 831_drm= drm 832.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 833_dtrace= dtrace 834.endif 835_exca= exca 836_nvram= powermac_nvram 837_pccard= pccard 838_smbfs= smbfs 839_sound= sound 840.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 841_opensolaris= opensolaris 842.endif 843_wi= wi 844.endif 845 846.if ${MACHINE_ARCH} == "powerpc64" 847.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 848_zfs= zfs 849.endif 850.endif 851 852.if ${MACHINE_CPUARCH} == "sparc64" 853_auxio= auxio 854_em= em 855_epic= epic 856_i2c= i2c 857_igb= igb 858.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 859_opensolaris= opensolaris 860.endif 861_smbfs= smbfs 862_sound= sound 863.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 864_zfs= zfs 865.endif 866.endif 867 868.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 869SUBDIR=${MODULES_OVERRIDE} 870.endif 871 872.for reject in ${WITHOUT_MODULES} 873SUBDIR:= ${SUBDIR:N${reject}} 874.endfor 875 876# Calling kldxref(8) for each module is expensive. 877.if !defined(NO_XREF) 878.MAKEFLAGS+= -DNO_XREF 879afterinstall: 880 @if type kldxref >/dev/null 2>&1; then \ 881 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 882 kldxref ${DESTDIR}${KMODDIR}; \ 883 fi 884.endif 885 886.include <bsd.subdir.mk> 887