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