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