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