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