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