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