1# $FreeBSD$ 2 3SYSDIR?=${SRCTOP}/sys 4.include "${SYSDIR}/conf/kern.opts.mk" 5 6SUBDIR_PARALLEL= 7 8# Modules that include binary-only blobs of microcode should be selectable by 9# MK_SOURCELESS_UCODE option (see below). 10 11.include "${SYSDIR}/conf/config.mk" 12 13.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 14SUBDIR=${MODULES_OVERRIDE} 15.else 16SUBDIR= \ 17 ${_3dfx} \ 18 ${_3dfx_linux} \ 19 ${_aac} \ 20 ${_aacraid} \ 21 accf_data \ 22 accf_dns \ 23 accf_http \ 24 acl_nfs4 \ 25 acl_posix1e \ 26 ${_acpi} \ 27 ae \ 28 ${_aesni} \ 29 age \ 30 ${_agp} \ 31 ahci \ 32 aic7xxx \ 33 alc \ 34 ale \ 35 alq \ 36 ${_amd_ecc_inject} \ 37 ${_amdgpio} \ 38 ${_amdsbwd} \ 39 ${_amdsmn} \ 40 ${_amdtemp} \ 41 ${_aout} \ 42 ${_arcmsr} \ 43 ${_allwinner} \ 44 ${_armv8crypto} \ 45 ${_asmc} \ 46 ata \ 47 ath \ 48 ath_dfs \ 49 ath_hal \ 50 ath_hal_ar5210 \ 51 ath_hal_ar5211 \ 52 ath_hal_ar5212 \ 53 ath_hal_ar5416 \ 54 ath_hal_ar9300 \ 55 ath_main \ 56 ath_rate \ 57 ath_pci \ 58 ${_autofs} \ 59 axgbe \ 60 backlight \ 61 ${_bce} \ 62 ${_bcm283x_clkman} \ 63 ${_bcm283x_pwm} \ 64 bfe \ 65 bge \ 66 bhnd \ 67 ${_bxe} \ 68 ${_bios} \ 69 ${_blake2} \ 70 bnxt \ 71 bridgestp \ 72 bwi \ 73 bwn \ 74 ${_bytgpio} \ 75 ${_chvgpio} \ 76 cam \ 77 ${_cardbus} \ 78 ${_carp} \ 79 cas \ 80 ${_cbb} \ 81 cc \ 82 ${_ccp} \ 83 cd9660 \ 84 cd9660_iconv \ 85 ${_ce} \ 86 ${_cfi} \ 87 ${_chromebook_platform} \ 88 ${_ciss} \ 89 ${_coretemp} \ 90 ${_cp} \ 91 ${_cpsw} \ 92 ${_cpuctl} \ 93 ${_cpufreq} \ 94 ${_crypto} \ 95 ${_cryptodev} \ 96 ctl \ 97 ${_cxgb} \ 98 ${_cxgbe} \ 99 dc \ 100 dcons \ 101 dcons_crom \ 102 ${_dpdk_lpm4} \ 103 ${_dpdk_lpm6} \ 104 ${_dpms} \ 105 dummynet \ 106 ${_dwwdt} \ 107 ${_e6000sw} \ 108 ${_efirt} \ 109 ${_em} \ 110 ${_ena} \ 111 ${_enetc} \ 112 ${_et} \ 113 evdev \ 114 ${_exca} \ 115 ext2fs \ 116 fdc \ 117 fdescfs \ 118 ${_felix} \ 119 ${_ffec} \ 120 ${_fib_dxr} \ 121 filemon \ 122 firewire \ 123 firmware \ 124 flash \ 125 ${_ftwd} \ 126 fusefs \ 127 ${_fxp} \ 128 gem \ 129 geom \ 130 ${_glxiic} \ 131 ${_glxsb} \ 132 gpio \ 133 hid \ 134 hifn \ 135 ${_hpt27xx} \ 136 ${_hptiop} \ 137 ${_hptmv} \ 138 ${_hptnr} \ 139 ${_hptrr} \ 140 hwpmc \ 141 ${_hyperv} \ 142 i2c \ 143 ${_iavf} \ 144 ${_ibcore} \ 145 ${_ichwd} \ 146 ${_ice} \ 147 ${_ice_ddp} \ 148 ${_ida} \ 149 if_bridge \ 150 if_disc \ 151 if_edsc \ 152 ${_if_enc} \ 153 if_epair \ 154 ${_if_gif} \ 155 ${_if_gre} \ 156 ${_if_me} \ 157 if_infiniband \ 158 if_lagg \ 159 ${_if_stf} \ 160 if_tuntap \ 161 if_vlan \ 162 if_vxlan \ 163 iflib \ 164 ${_igc} \ 165 imgact_binmisc \ 166 ${_intelspi} \ 167 ${_io} \ 168 ${_ioat} \ 169 ${_ipoib} \ 170 ${_ipdivert} \ 171 ${_ipfilter} \ 172 ${_ipfw} \ 173 ipfw_nat \ 174 ${_ipfw_nat64} \ 175 ${_ipfw_nptv6} \ 176 ${_ipfw_pmod} \ 177 ${_ipmi} \ 178 ip6_mroute_mod \ 179 ip_mroute_mod \ 180 ${_ips} \ 181 ${_ipsec} \ 182 ${_ipw} \ 183 ${_ipwfw} \ 184 ${_isci} \ 185 ${_iser} \ 186 isp \ 187 ${_ispfw} \ 188 ${_itwd} \ 189 ${_iwi} \ 190 ${_iwifw} \ 191 ${_iwlwifi} \ 192 ${_iwlwififw} \ 193 ${_iwm} \ 194 ${_iwmfw} \ 195 ${_iwn} \ 196 ${_iwnfw} \ 197 ${_ix} \ 198 ${_ixv} \ 199 ${_ixl} \ 200 jme \ 201 kbdmux \ 202 kgssapi \ 203 kgssapi_krb5 \ 204 khelp \ 205 krpc \ 206 ksyms \ 207 le \ 208 lge \ 209 libalias \ 210 libiconv \ 211 libmchain \ 212 lindebugfs \ 213 linuxkpi \ 214 linuxkpi_wlan \ 215 ${_lio} \ 216 lpt \ 217 mac_biba \ 218 mac_bsdextended \ 219 mac_ifoff \ 220 mac_lomac \ 221 mac_mls \ 222 mac_none \ 223 mac_ntpd \ 224 mac_partition \ 225 mac_portacl \ 226 mac_priority \ 227 mac_seeotheruids \ 228 mac_stub \ 229 mac_test \ 230 ${_malo} \ 231 ${_mana} \ 232 md \ 233 mdio \ 234 ${_mgb} \ 235 mem \ 236 mfi \ 237 mii \ 238 mlx \ 239 mlxfw \ 240 ${_mlx4} \ 241 ${_mlx4ib} \ 242 ${_mlx4en} \ 243 ${_mlx5} \ 244 ${_mlx5en} \ 245 ${_mlx5ib} \ 246 mmc \ 247 mmcsd \ 248 ${_mpr} \ 249 ${_mps} \ 250 mpt \ 251 mqueue \ 252 mrsas \ 253 msdosfs \ 254 msdosfs_iconv \ 255 msk \ 256 ${_mthca} \ 257 mvs \ 258 mwl \ 259 ${_mwlfw} \ 260 mxge \ 261 my \ 262 ${_nctgpio} \ 263 ${_neta} \ 264 ${_netgraph} \ 265 ${_nfe} \ 266 nfscl \ 267 nfscommon \ 268 nfsd \ 269 nfslockd \ 270 nfssvc \ 271 nge \ 272 nmdm \ 273 nullfs \ 274 ${_ntb} \ 275 ${_nvd} \ 276 ${_nvdimm} \ 277 ${_nvme} \ 278 ${_nvram} \ 279 oce \ 280 ${_ocs_fc} \ 281 ${_ossl} \ 282 otus \ 283 ${_otusfw} \ 284 ow \ 285 ${_padlock} \ 286 ${_padlock_rng} \ 287 ${_pchtherm} \ 288 ${_pcfclock} \ 289 ${_pf} \ 290 ${_pflog} \ 291 ${_pfsync} \ 292 plip \ 293 ${_pms} \ 294 ppbus \ 295 ppc \ 296 ppi \ 297 pps \ 298 procfs \ 299 proto \ 300 pseudofs \ 301 ${_pst} \ 302 pty \ 303 puc \ 304 pwm \ 305 ${_qat} \ 306 ${_qatfw} \ 307 ${_qlxge} \ 308 ${_qlxgb} \ 309 ${_qlxgbe} \ 310 ${_qlnx} \ 311 ral \ 312 ${_ralfw} \ 313 ${_random_fortuna} \ 314 ${_random_other} \ 315 rc4 \ 316 ${_rdma} \ 317 ${_rdrand_rng} \ 318 re \ 319 rl \ 320 ${_rockchip} \ 321 rtsx \ 322 rtwn \ 323 rtwn_pci \ 324 rtwn_usb \ 325 ${_rtwnfw} \ 326 ${_s3} \ 327 ${_safe} \ 328 safexcel \ 329 ${_sbni} \ 330 scc \ 331 ${_sctp} \ 332 sdhci \ 333 ${_sdhci_acpi} \ 334 ${_sdhci_fdt} \ 335 sdhci_pci \ 336 sdio \ 337 sem \ 338 send \ 339 ${_sfxge} \ 340 sge \ 341 ${_sgx} \ 342 ${_sgx_linux} \ 343 siftr \ 344 siis \ 345 sis \ 346 sk \ 347 ${_smartpqi} \ 348 smbfs \ 349 snp \ 350 sound \ 351 ${_speaker} \ 352 spi \ 353 ${_splash} \ 354 ste \ 355 stge \ 356 ${_sume} \ 357 ${_superio} \ 358 ${_p2sb} \ 359 sym \ 360 ${_syscons} \ 361 sysvipc \ 362 tcp \ 363 ${_ti} \ 364 tmpfs \ 365 ${_toecore} \ 366 ${_tpm} \ 367 twe \ 368 tws \ 369 uart \ 370 udf \ 371 udf_iconv \ 372 ufs \ 373 uinput \ 374 unionfs \ 375 usb \ 376 ${_vesa} \ 377 virtio \ 378 vge \ 379 ${_viawd} \ 380 videomode \ 381 vkbd \ 382 ${_vmd} \ 383 ${_vmm} \ 384 ${_vmware} \ 385 vr \ 386 vte \ 387 ${_wbwd} \ 388 wlan \ 389 wlan_acl \ 390 wlan_amrr \ 391 wlan_ccmp \ 392 wlan_rssadapt \ 393 wlan_tkip \ 394 wlan_wep \ 395 wlan_xauth \ 396 ${_wpi} \ 397 ${_wpifw} \ 398 ${_x86bios} \ 399 xdr \ 400 xl \ 401 xz \ 402 zlib 403 404.if ${MK_AUTOFS} != "no" || defined(ALL_MODULES) 405_autofs= autofs 406.endif 407 408.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 409.if ${MACHINE_CPUARCH} != "arm" || ${MACHINE_ARCH:Marmv[67]*} != "" 410.if ${KERN_OPTS:MKDTRACE_HOOKS} 411SUBDIR+= dtrace 412.endif 413.endif 414SUBDIR+= opensolaris 415.endif 416 417.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 418.if exists(${SRCTOP}/sys/opencrypto) 419_crypto= crypto 420_cryptodev= cryptodev 421_random_fortuna=random_fortuna 422_random_other= random_other 423.endif 424.endif 425 426.if ${MK_CUSE} != "no" || defined(ALL_MODULES) 427SUBDIR+= cuse 428.endif 429 430.if ${MK_EFI} != "no" 431.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" 432_efirt= efirt 433.endif 434.endif 435 436.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ 437 defined(ALL_MODULES) 438_carp= carp 439_toecore= toecore 440_if_enc= if_enc 441_if_gif= if_gif 442_if_gre= if_gre 443_ipfw_pmod= ipfw_pmod 444.if ${KERN_OPTS:MIPSEC_SUPPORT} && !${KERN_OPTS:MIPSEC} 445_ipsec= ipsec 446.endif 447.if ${KERN_OPTS:MSCTP_SUPPORT} || ${KERN_OPTS:MSCTP} 448_sctp= sctp 449.endif 450.endif 451 452.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ 453 defined(ALL_MODULES) 454_if_stf= if_stf 455.endif 456 457.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 458_if_me= if_me 459_ipdivert= ipdivert 460_ipfw= ipfw 461.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) 462_ipfw_nat64= ipfw_nat64 463.endif 464.endif 465 466.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) 467_ipfw_nptv6= ipfw_nptv6 468.endif 469 470.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 471_ipfilter= ipfilter 472.endif 473 474.if ${MK_INET_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO} 475_dpdk_lpm4= dpdk_lpm4 476_fib_dxr= fib_dxr 477.endif 478 479.if ${MK_INET6_SUPPORT} != "no" && ${KERN_OPTS:MFIB_ALGO} 480_dpdk_lpm6= dpdk_lpm6 481.endif 482 483.if ${MK_ISCSI} != "no" || defined(ALL_MODULES) 484SUBDIR+= cfiscsi 485SUBDIR+= iscsi 486.endif 487 488.if !empty(OPT_FDT) 489SUBDIR+= fdt 490.endif 491 492# Linuxulator 493.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 494 ${MACHINE_CPUARCH} == "i386" 495SUBDIR+= linprocfs 496SUBDIR+= linsysfs 497.endif 498.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 499SUBDIR+= linux 500.endif 501.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" 502SUBDIR+= linux64 503SUBDIR+= linux_common 504.endif 505 506.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 507 ${MACHINE_CPUARCH} == "i386" 508_ena= ena 509.if ${MK_OFED} != "no" || defined(ALL_MODULES) 510_ibcore= ibcore 511_ipoib= ipoib 512_iser= iser 513.endif 514_ipmi= ipmi 515_iwlwifi= iwlwifi 516.if ${MK_SOURCELESS_UCODE} != "no" 517_iwlwififw= iwlwififw 518.endif 519_mlx4= mlx4 520_mlx5= mlx5 521.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ 522 defined(ALL_MODULES) 523_mlx4en= mlx4en 524_mlx5en= mlx5en 525.endif 526.if ${MK_OFED} != "no" || defined(ALL_MODULES) 527_mthca= mthca 528_mlx4ib= mlx4ib 529_mlx5ib= mlx5ib 530.endif 531_ossl= ossl 532_vmware= vmware 533.endif 534 535.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 536_netgraph= netgraph 537.endif 538 539.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 540 ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 541_pf= pf 542_pflog= pflog 543.if ${MK_INET_SUPPORT} != "no" 544_pfsync= pfsync 545.endif 546.endif 547 548.if ${MK_SOURCELESS_UCODE} != "no" 549_bce= bce 550_fxp= fxp 551_ispfw= ispfw 552_ti= ti 553_mwlfw= mwlfw 554_otusfw= otusfw 555_ralfw= ralfw 556_rtwnfw= rtwnfw 557.endif 558 559.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \ 560 ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \ 561 ${MACHINE_CPUARCH} != "riscv" 562_cxgbe= cxgbe 563.endif 564 565.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "arm64" || ${MACHINE_ARCH:Mpowerpc64*} 566_ice= ice 567.if ${MK_SOURCELESS_UCODE} != "no" 568_ice_ddp= ice_ddp 569.endif 570.endif 571 572# These rely on 64bit atomics 573.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" 574_mps= mps 575_mpr= mpr 576.endif 577 578.if ${MK_TESTS} != "no" || defined(ALL_MODULES) 579SUBDIR+= tests 580.endif 581 582.if ${MK_ZFS} != "no" || (defined(ALL_MODULES) && ${MACHINE_CPUARCH} != "powerpc") 583SUBDIR+= zfs 584.endif 585 586.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \ 587 ${MACHINE_CPUARCH} != "powerpc" && ${MACHINE_CPUARCH} != "riscv" 588_syscons= syscons 589.endif 590 591# intr_disable() is a macro, causes problems 592.if ${MK_SOURCELESS_UCODE} != "no" 593_cxgb= cxgb 594.endif 595 596.if ${MACHINE_CPUARCH} == "aarch64" 597_allwinner= allwinner 598_armv8crypto= armv8crypto 599_dwwdt= dwwdt 600_em= em 601_enetc= enetc 602_felix= felix 603_rockchip= rockchip 604.endif 605 606.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" 607_sdhci_fdt= sdhci_fdt 608_e6000sw= e6000sw 609_neta= neta 610.endif 611 612.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 613_agp= agp 614.if ${MACHINE_CPUARCH} == "i386" || !empty(COMPAT_FREEBSD32_ENABLED) 615_aout= aout 616.endif 617_bios= bios 618.if ${MK_SOURCELESS_UCODE} != "no" 619_bxe= bxe 620.endif 621_cardbus= cardbus 622_cbb= cbb 623_cpuctl= cpuctl 624_cpufreq= cpufreq 625_dpms= dpms 626_em= em 627_et= et 628_ftwd= ftwd 629_exca= exca 630_igc= igc 631_io= io 632_itwd= itwd 633_ix= ix 634_ixv= ixv 635.if ${MK_SOURCELESS_UCODE} != "no" 636_lio= lio 637.endif 638_mana= mana 639_mgb= mgb 640_nctgpio= nctgpio 641_ntb= ntb 642_ocs_fc= ocs_fc 643_qat= qat 644_qatfw= qatfw 645.if ${MK_OFED} != "no" || defined(ALL_MODULES) 646_rdma= rdma 647.endif 648_safe= safe 649_speaker= speaker 650_splash= splash 651_p2sb= p2sb 652_wbwd= wbwd 653 654_aac= aac 655_aacraid= aacraid 656_acpi= acpi 657.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 658_aesni= aesni 659.endif 660_amd_ecc_inject=amd_ecc_inject 661_amdsbwd= amdsbwd 662_amdsmn= amdsmn 663_amdtemp= amdtemp 664_arcmsr= arcmsr 665_asmc= asmc 666.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 667_blake2= blake2 668.endif 669_bytgpio= bytgpio 670_chvgpio= chvgpio 671_ciss= ciss 672_chromebook_platform= chromebook_platform 673_coretemp= coretemp 674.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) 675_hpt27xx= hpt27xx 676.endif 677_hptiop= hptiop 678.if ${MK_SOURCELESS_HOST} != "no" && empty(KCSAN_ENABLED) 679_hptmv= hptmv 680_hptnr= hptnr 681_hptrr= hptrr 682.endif 683_hyperv= hyperv 684_ichwd= ichwd 685_ida= ida 686_intelspi= intelspi 687_ips= ips 688_isci= isci 689_ipw= ipw 690_iwi= iwi 691_iwm= iwm 692_iwn= iwn 693.if ${MK_SOURCELESS_UCODE} != "no" 694_ipwfw= ipwfw 695_iwifw= iwifw 696_iwmfw= iwmfw 697_iwnfw= iwnfw 698.endif 699_nfe= nfe 700_nvd= nvd 701_nvme= nvme 702_nvram= nvram 703.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 704_padlock= padlock 705_padlock_rng= padlock_rng 706_rdrand_rng= rdrand_rng 707.endif 708_pchtherm = pchtherm 709_s3= s3 710_sdhci_acpi= sdhci_acpi 711_superio= superio 712_tpm= tpm 713_vesa= vesa 714_viawd= viawd 715_vmd= vmd 716_wpi= wpi 717.if ${MK_SOURCELESS_UCODE} != "no" 718_wpifw= wpifw 719.endif 720_x86bios= x86bios 721.endif 722 723.if ${MACHINE_CPUARCH} == "amd64" 724_amdgpio= amdgpio 725_ccp= ccp 726_iavf= iavf 727_ioat= ioat 728_ixl= ixl 729_nvdimm= nvdimm 730_pms= pms 731_qlxge= qlxge 732_qlxgb= qlxgb 733_sume= sume 734.if ${MK_SOURCELESS_UCODE} != "no" 735_qlxgbe= qlxgbe 736_qlnx= qlnx 737.endif 738_sfxge= sfxge 739_sgx= sgx 740_sgx_linux= sgx_linux 741_smartpqi= smartpqi 742_p2sb= p2sb 743 744.if ${MK_BHYVE} != "no" || defined(ALL_MODULES) 745.if ${KERN_OPTS:MSMP} 746_vmm= vmm 747.endif 748.endif 749.endif 750 751.if ${MACHINE_CPUARCH} == "i386" 752# XXX some of these can move to the general case when de-i386'ed 753# XXX some of these can move now, but are untested on other architectures. 754_3dfx= 3dfx 755_3dfx_linux= 3dfx_linux 756.if ${MK_SOURCELESS_HOST} != "no" 757_ce= ce 758.endif 759.if ${MK_SOURCELESS_HOST} != "no" 760_cp= cp 761.endif 762_glxiic= glxiic 763_glxsb= glxsb 764_pcfclock= pcfclock 765_pst= pst 766_sbni= sbni 767.endif 768 769.if ${MACHINE_ARCH} == "armv7" 770_cfi= cfi 771_cpsw= cpsw 772.endif 773 774.if ${MACHINE_CPUARCH} == "powerpc" 775_aacraid= aacraid 776_agp= agp 777_an= an 778_cardbus= cardbus 779_cbb= cbb 780_cfi= cfi 781_cpufreq= cpufreq 782_exca= exca 783_ffec= ffec 784_nvd= nvd 785_nvme= nvme 786.endif 787 788.if ${MACHINE_ARCH:Mpowerpc64*} != "" 789_ipmi= ipmi 790_ixl= ixl 791_nvram= opal_nvram 792.endif 793.if ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH} != "powerpcspe" 794# Don't build powermac_nvram for powerpcspe, it's never supported. 795_nvram+= powermac_nvram 796.endif 797 798.endif 799 800.if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64" 801_bcm283x_clkman= bcm283x_clkman 802_bcm283x_pwm= bcm283x_pwm 803.endif 804 805.if !(${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 110000) 806# LLVM 10 crashes when building if_malo_pci.c, fixed in LLVM11: 807# https://bugs.llvm.org/show_bug.cgi?id=44351 808_malo= malo 809.endif 810 811SUBDIR+=${MODULES_EXTRA} 812 813.for reject in ${WITHOUT_MODULES} 814SUBDIR:= ${SUBDIR:N${reject}} 815.endfor 816 817# Calling kldxref(8) for each module is expensive. 818.if !defined(NO_XREF) 819.MAKEFLAGS+= -DNO_XREF 820afterinstall: .PHONY 821 @if type kldxref >/dev/null 2>&1; then \ 822 ${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 823 ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 824 fi 825.endif 826 827SUBDIR:= ${SUBDIR:u:O} 828 829.include <bsd.subdir.mk> 830