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_epair \ 140 if_faith \ 141 if_gif \ 142 ${_if_gre} \ 143 if_lagg \ 144 ${_if_ndis} \ 145 if_stf \ 146 if_tap \ 147 if_tun \ 148 if_vlan \ 149 ${_igb} \ 150 ${_iir} \ 151 ${_imgact_binmisc} \ 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 netfpga10g \ 238 ${_netgraph} \ 239 ${_nfe} \ 240 nfs_common \ 241 nfscl \ 242 nfsclient \ 243 nfscommon \ 244 nfsd \ 245 nfslock \ 246 nfslockd \ 247 nfsserver \ 248 nfssvc \ 249 nge \ 250 nmdm \ 251 ${_nsp} \ 252 nullfs \ 253 ${_ntb} \ 254 ${_nvd} \ 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_imgact_binmisc= imgact_binmisc 377_vmware= vmware 378.endif 379 380.if ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "arm" && \ 381 ${MACHINE_CPUARCH} != "mips" 382_syscons= syscons 383_vpo= vpo 384.endif 385 386.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" 387# no BUS_SPACE_UNSPECIFIED 388# No barrier instruction support (specific to this driver) 389_sym= sym 390# intr_disable() is a macro, causes problems 391.if ${MK_SOURCELESS_UCODE} != "no" 392_cxgb= cxgb 393.endif 394.endif 395 396.if ${MK_SOURCELESS_UCODE} != "no" 397_cxgbe= cxgbe 398.endif 399 400.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 401.if exists(${.CURDIR}/../opencrypto) 402_crypto= crypto 403_cryptodev= cryptodev 404.endif 405.if exists(${.CURDIR}/../crypto) 406_random= random 407.endif 408.endif 409 410.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ 411 defined(ALL_MODULES) 412_carp= carp 413_toecore= toecore 414.endif 415 416.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 417_if_gre= if_gre 418.endif 419 420.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 421_ipfilter= ipfilter 422.endif 423 424.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 425_ipdivert= ipdivert 426_ipfw= ipfw 427.endif 428 429.if ${MK_NAND} != "no" || defined(ALL_MODULES) 430_nandfs= nandfs 431_nandsim= nandsim 432.endif 433 434.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 435_netgraph= netgraph 436.endif 437 438.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 439 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 440_pf= pf 441_pflog= pflog 442.if ${MK_INET_SUPPORT} != "no" 443_pfsync= pfsync 444.endif 445.endif 446 447.if ${MK_SOURCELESS_UCODE} != "no" 448_bce= bce 449_fatm= fatm 450_fxp= fxp 451_ispfw= ispfw 452_mwlfw= mwlfw 453_ralfw= ralfw 454_sf= sf 455_sn= sn 456_ti= ti 457_txp= txp 458.endif 459 460.if ${MACHINE_CPUARCH} == "i386" 461# XXX some of these can move to the general case when de-i386'ed 462# XXX some of these can move now, but are untested on other architectures. 463_3dfx= 3dfx 464_3dfx_linux= 3dfx_linux 465_agp= agp 466_aic= aic 467_an= an 468_aout= aout 469_apm= apm 470_arcnet= arcnet 471_bktr= bktr 472_bxe= bxe 473_cardbus= cardbus 474_cbb= cbb 475.if ${MK_SOURCELESS_UCODE} != "no" 476_ce= ce 477.endif 478_coff= coff 479.if ${MK_SOURCELESS_UCODE} != "no" 480_cp= cp 481.endif 482_cpuctl= cpuctl 483_cpufreq= cpufreq 484_cs= cs 485.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 486_cyclic= cyclic 487.endif 488_dpms= dpms 489_drm= drm 490_drm2= drm2 491.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 492_dtrace= dtrace 493.endif 494_ed= ed 495_elink= elink 496_em= em 497_ep= ep 498_et= et 499_exca= exca 500_ext2fs= ext2fs 501_fe= fe 502_glxiic= glxiic 503_glxsb= glxsb 504_i2c= i2c 505.if ${MK_OFED} != "no" || defined(ALL_MODULES) 506_ibcore= ibcore 507.endif 508_ibcs2= ibcs2 509_ie= ie 510_if_ndis= if_ndis 511_igb= igb 512_io= io 513.if ${MK_OFED} != "no" || defined(ALL_MODULES) 514_ipoib= ipoib 515.endif 516_lindev= lindev 517_linprocfs= linprocfs 518_linsysfs= linsysfs 519_linux= linux 520_mse= mse 521.if ${MK_OFED} != "no" || defined(ALL_MODULES) 522_mlx4= mlx4 523_mlx4ib= mlx4ib 524_mlxen= mlxen 525_mthca= mthca 526.endif 527_ncv= ncv 528_ndis= ndis 529_nsp= nsp 530.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 531_opensolaris= opensolaris 532.endif 533_pccard= pccard 534_pcfclock= pcfclock 535_pst= pst 536.if ${MK_OFED} != "no" || defined(ALL_MODULES) 537_rdma= rdma 538.endif 539_safe= safe 540_sbni= sbni 541_scsi_low= scsi_low 542_smbfs= smbfs 543_sound= sound 544_speaker= speaker 545_splash= splash 546_sppp= sppp 547_stg= stg 548_streams= streams 549_svr4= svr4 550_vxge= vxge 551_wbwd= wbwd 552_wi= wi 553_xe= xe 554.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 555_zfs= zfs 556.endif 557.if ${MACHINE} == "i386" 558_aac= aac 559_aacraid= aacraid 560_acpi= acpi 561.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 562_aesni= aesni 563.endif 564.if ${MK_EISA} != "no" 565_ahb= ahb 566.endif 567_amdsbwd= amdsbwd 568_amdtemp= amdtemp 569_arcmsr= arcmsr 570_asmc= asmc 571_asr= asr 572_bios= bios 573_ciss= ciss 574_cm= cm 575_cmx= cmx 576_coretemp= coretemp 577.if ${MK_SOURCELESS_UCODE} != "no" 578_ctau= ctau 579.endif 580_dpt= dpt 581_ex= ex 582.if ${MK_SOURCELESS_HOST} != "no" 583_hpt27xx= hpt27xx 584.endif 585_hptiop= hptiop 586.if ${MK_SOURCELESS_HOST} != "no" 587_hptmv= hptmv 588_hptnr= hptnr 589_hptrr= hptrr 590.endif 591_hyperv= hyperv 592_ichwd= ichwd 593_ida= ida 594_iir= iir 595_ipmi= ipmi 596_ips= ips 597_ipw= ipw 598.if ${MK_SOURCELESS_UCODE} != "no" 599_ipwfw= ipwfw 600.endif 601_isci= isci 602_iwi= iwi 603.if ${MK_SOURCELESS_UCODE} != "no" 604_iwifw= iwifw 605.endif 606_iwn= iwn 607.if ${MK_SOURCELESS_UCODE} != "no" 608_iwnfw= iwnfw 609.endif 610_ixgb= ixgb 611_ixgbe= ixgbe 612_mly= mly 613_nfe= nfe 614_nvd= nvd 615_nvme= nvme 616_nvram= nvram 617_nxge= nxge 618_tpm= tpm 619_viawd= viawd 620_wpi= wpi 621.if ${MK_SOURCELESS_UCODE} != "no" 622_wpifw= wpifw 623.endif 624.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 625_padlock= padlock 626.endif 627_s3= s3 628_twa= twa 629_vesa= vesa 630_virtio= virtio 631_x86bios= x86bios 632.elif ${MACHINE} == "pc98" 633_canbepm= canbepm 634_canbus= canbus 635_ct= ct 636_pmc= pmc 637_snc= snc 638.endif 639.endif 640 641.if ${MACHINE_CPUARCH} == "amd64" 642_aac= aac 643_aacraid= aacraid 644_aout= aout 645_acpi= acpi 646.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 647_aesni= aesni 648.endif 649_agp= agp 650_an= an 651_amdsbwd= amdsbwd 652_amdtemp= amdtemp 653_arcmsr= arcmsr 654_asmc= asmc 655_bktr= bktr 656_bxe= bxe 657_cardbus= cardbus 658_cbb= cbb 659_cmx= cmx 660_ciss= ciss 661_coretemp= coretemp 662_cpuctl= cpuctl 663_cpufreq= cpufreq 664.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 665_cyclic= cyclic 666.endif 667_dpms= dpms 668_drm= drm 669_drm2= drm2 670.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 671_dtrace= dtrace 672.endif 673_ed= ed 674_et= et 675_em= em 676_exca= exca 677_ext2fs= ext2fs 678.if ${MK_SOURCELESS_HOST} != "no" 679_hpt27xx= hpt27xx 680.endif 681_hptiop= hptiop 682.if ${MK_SOURCELESS_HOST} != "no" 683_hptmv= hptmv 684_hptnr= hptnr 685_hptrr= hptrr 686.endif 687_hyperv= hyperv 688_i2c= i2c 689.if ${MK_OFED} != "no" || defined(ALL_MODULES) 690_ibcore= ibcore 691.endif 692_ichwd= ichwd 693_ida= ida 694_if_ndis= if_ndis 695_igb= igb 696_iir= iir 697_io= io 698_ipmi= ipmi 699.if ${MK_OFED} != "no" || defined(ALL_MODULES) 700_ipoib= ipoib 701.endif 702_ips= ips 703_ipw= ipw 704.if ${MK_SOURCELESS_UCODE} != "no" 705_ipwfw= ipwfw 706.endif 707_isci= isci 708_iwi= iwi 709.if ${MK_SOURCELESS_UCODE} != "no" 710_iwifw= iwifw 711.endif 712_iwn= iwn 713.if ${MK_SOURCELESS_UCODE} != "no" 714_iwnfw= iwnfw 715.endif 716_ixgb= ixgb 717_ixgbe= ixgbe 718_lindev= lindev 719_linprocfs= linprocfs 720_linsysfs= linsysfs 721_linux= linux 722_mly= mly 723.if ${MK_OFED} != "no" || defined(ALL_MODULES) 724_mlx4= mlx4 725_mlx4ib= mlx4ib 726_mlxen= mlxen 727_mthca= mthca 728.endif 729_ndis= ndis 730_nfe= nfe 731_ntb= ntb 732_nvd= nvd 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.if ${MK_OFED} != "no" || defined(ALL_MODULES) 747_rdma= rdma 748.endif 749_s3= s3 750_safe= safe 751_scsi_low= scsi_low 752_sfxge= sfxge 753_smbfs= smbfs 754_sound= sound 755_speaker= speaker 756_splash= splash 757_sppp= sppp 758_tpm= tpm 759_twa= twa 760_vesa= vesa 761_viawd= viawd 762_virtio= virtio 763_vmm= vmm 764_vxge= vxge 765_x86bios= x86bios 766_wbwd= wbwd 767_wi= wi 768_wpi= wpi 769.if ${MK_SOURCELESS_UCODE} != "no" 770_wpifw= wpifw 771.endif 772.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 773_zfs= zfs 774.endif 775.endif 776 777.if ${MACHINE_CPUARCH} == "arm" 778_cfi= cfi 779_cpsw= cpsw 780.endif 781 782.if ${MACHINE_CPUARCH} == "ia64" 783_aac= aac 784_aacraid= aacraid 785_aic= aic 786_an= an 787_arcnet= arcnet 788_asr= asr 789_bktr= bktr 790_cardbus= cardbus 791_cbb= cbb 792_ciss= ciss 793_cm= cm 794_cmx= cmx 795_coff= coff 796_cpufreq= cpufreq 797_dpt= dpt 798_em= em 799_ep= ep 800_et= et 801_exca= exca 802_fe= fe 803_hptiop= hptiop 804_ida= ida 805_igb= igb 806_iir= iir 807_ips= ips 808_mly= mly 809_pccard= pccard 810_scsi_low= scsi_low 811_smbfs= smbfs 812_sound= sound 813_splash= splash 814_sppp= sppp 815_streams= streams 816_tpm= tpm 817_twa= twa 818_wi= wi 819_xe= xe 820.endif 821 822.if ${MACHINE_CPUARCH} == "powerpc" 823_agp= agp 824_an= an 825_bm= bm 826_cardbus= cardbus 827_cbb= cbb 828_cfi= cfi 829_cpufreq= cpufreq 830.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 831_cyclic= cyclic 832.endif 833_drm= drm 834.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 835_dtrace= dtrace 836.endif 837_exca= exca 838_nvram= powermac_nvram 839_pccard= pccard 840_smbfs= smbfs 841_sound= sound 842.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 843_opensolaris= opensolaris 844.endif 845_wi= wi 846.endif 847 848.if ${MACHINE_ARCH} == "powerpc64" 849.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 850_zfs= zfs 851.endif 852.endif 853 854.if ${MACHINE_CPUARCH} == "sparc64" 855_auxio= auxio 856_em= em 857_epic= epic 858_i2c= i2c 859_igb= igb 860.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 861_opensolaris= opensolaris 862.endif 863_smbfs= smbfs 864_sound= sound 865.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 866_zfs= zfs 867.endif 868.endif 869 870.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 871SUBDIR=${MODULES_OVERRIDE} 872.endif 873 874.for reject in ${WITHOUT_MODULES} 875SUBDIR:= ${SUBDIR:N${reject}} 876.endfor 877 878# Calling kldxref(8) for each module is expensive. 879.if !defined(NO_XREF) 880.MAKEFLAGS+= -DNO_XREF 881afterinstall: 882 @if type kldxref >/dev/null 2>&1; then \ 883 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 884 kldxref ${DESTDIR}${KMODDIR}; \ 885 fi 886.endif 887 888.include <bsd.subdir.mk> 889