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