Makefile revision 265937
1# $FreeBSD: stable/10/sys/modules/Makefile 265937 2014-05-12 22:19:37Z ian $ 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 mpr \ 220 mps \ 221 mpt \ 222 mqueue \ 223 mrsas \ 224 msdosfs \ 225 msdosfs_iconv \ 226 ${_mse} \ 227 msk \ 228 ${_mthca} \ 229 mvs \ 230 mwl \ 231 ${_mwlfw} \ 232 mxge \ 233 my \ 234 ${_nandfs} \ 235 ${_nandsim} \ 236 ${_ncp} \ 237 ${_ncv} \ 238 ${_ndis} \ 239 ${_netgraph} \ 240 ${_nfe} \ 241 nfs_common \ 242 nfscl \ 243 nfsclient \ 244 nfscommon \ 245 nfsd \ 246 nfslock \ 247 nfslockd \ 248 nfsserver \ 249 nfssvc \ 250 nge \ 251 nmdm \ 252 ${_nsp} \ 253 nullfs \ 254 ${_ntb} \ 255 ${_nvd} \ 256 ${_nve} \ 257 ${_nvme} \ 258 ${_nvram} \ 259 ${_nxge} \ 260 ${_opensolaris} \ 261 oce \ 262 ${_padlock} \ 263 patm \ 264 ${_pccard} \ 265 ${_pcfclock} \ 266 pcn \ 267 ${_pf} \ 268 ${_pflog} \ 269 ${_pfsync} \ 270 plip \ 271 ${_pmc} \ 272 ppbus \ 273 ppc \ 274 ppi \ 275 pps \ 276 procfs \ 277 pseudofs \ 278 ${_pst} \ 279 pty \ 280 puc \ 281 ${_qlxge} \ 282 ${_qlxgb} \ 283 ${_qlxgbe} \ 284 ral \ 285 ${_ralfw} \ 286 ${_random} \ 287 rc4 \ 288 ${_rdma} \ 289 re \ 290 reiserfs \ 291 rl \ 292 ${_s3} \ 293 ${_safe} \ 294 ${_sbni} \ 295 scc \ 296 scd \ 297 ${_scsi_low} \ 298 sdhci \ 299 sdhci_pci \ 300 sem \ 301 send \ 302 ${_sf} \ 303 ${_sfxge} \ 304 sge \ 305 siba_bwn \ 306 siftr \ 307 siis \ 308 sis \ 309 sk \ 310 ${_smbfs} \ 311 ${_sn} \ 312 ${_snc} \ 313 snp \ 314 ${_sound} \ 315 ${_speaker} \ 316 ${_splash} \ 317 ${_sppp} \ 318 ste \ 319 ${_stg} \ 320 stge \ 321 ${_streams} \ 322 ${_svr4} \ 323 ${_sym} \ 324 ${_syscons} \ 325 sysvipc \ 326 ${_ti} \ 327 tl \ 328 tmpfs \ 329 ${_toecore} \ 330 ${_tpm} \ 331 trm \ 332 ${_twa} \ 333 twe \ 334 tws \ 335 tx \ 336 ${_txp} \ 337 uart \ 338 ubsec \ 339 udf \ 340 udf_iconv \ 341 ufs \ 342 unionfs \ 343 usb \ 344 utopia \ 345 ${_vesa} \ 346 ${_virtio} \ 347 vge \ 348 ${_viawd} \ 349 vkbd \ 350 ${_vmm} \ 351 ${_vmware} \ 352 ${_vpo} \ 353 vr \ 354 vte \ 355 vx \ 356 ${_vxge} \ 357 wb \ 358 ${_wbwd} \ 359 ${_wi} \ 360 wlan \ 361 wlan_acl \ 362 wlan_amrr \ 363 wlan_ccmp \ 364 wlan_rssadapt \ 365 wlan_tkip \ 366 wlan_wep \ 367 wlan_xauth \ 368 ${_wpi} \ 369 ${_wpifw} \ 370 ${_x86bios} \ 371 ${_xe} \ 372 xl \ 373 ${_zfs} \ 374 zlib \ 375 376.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 377_filemon= filemon 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_rdma= rdma 538_safe= safe 539_sbni= sbni 540_scsi_low= scsi_low 541_smbfs= smbfs 542_sound= sound 543_speaker= speaker 544_splash= splash 545_sppp= sppp 546_stg= stg 547_streams= streams 548_svr4= svr4 549_vxge= vxge 550_wbwd= wbwd 551_wi= wi 552_xe= xe 553.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 554_zfs= zfs 555.endif 556.if ${MACHINE} == "i386" 557_aac= aac 558_aacraid= aacraid 559_acpi= acpi 560.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 561_aesni= aesni 562.endif 563_ahb= ahb 564_amdsbwd= amdsbwd 565_amdtemp= amdtemp 566_arcmsr= arcmsr 567_asmc= asmc 568_asr= asr 569_bios= bios 570_ciss= ciss 571_cm= cm 572_cmx= cmx 573_coretemp= coretemp 574.if ${MK_SOURCELESS_UCODE} != "no" 575_ctau= ctau 576.endif 577_dpt= dpt 578_ex= ex 579.if ${MK_SOURCELESS_HOST} != "no" 580_hpt27xx= hpt27xx 581.endif 582_hptiop= hptiop 583.if ${MK_SOURCELESS_HOST} != "no" 584_hptmv= hptmv 585_hptnr= hptnr 586_hptrr= hptrr 587.endif 588_hyperv= hyperv 589_ichwd= ichwd 590_ida= ida 591_iir= iir 592_ipmi= ipmi 593_ips= ips 594_ipw= ipw 595.if ${MK_SOURCELESS_UCODE} != "no" 596_ipwfw= ipwfw 597.endif 598_isci= isci 599_iwi= iwi 600.if ${MK_SOURCELESS_UCODE} != "no" 601_iwifw= iwifw 602.endif 603_iwn= iwn 604.if ${MK_SOURCELESS_UCODE} != "no" 605_iwnfw= iwnfw 606.endif 607_ixgb= ixgb 608_ixgbe= ixgbe 609_mly= mly 610_nfe= nfe 611_nvd= nvd 612.if ${MK_SOURCELESS_HOST} != "no" 613_nve= nve 614.endif 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.if ${MK_SOURCELESS_HOST} != "no" 734_nve= nve 735.endif 736_nvme= nvme 737_nvram= nvram 738_nxge= nxge 739.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 740_opensolaris= opensolaris 741.endif 742.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 743_padlock= padlock 744.endif 745_pccard= pccard 746_qlxge= qlxge 747_qlxgb= qlxgb 748_qlxgbe= qlxgbe 749_rdma= rdma 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