1c3aac50fSPeter Wemm# $FreeBSD$ 20eec3684SGarrett Wollman 3193d9e76SEnji CooperSYSDIR?=${SRCTOP}/sys 4df3394b3SWarner Losh.include "${SYSDIR}/conf/kern.opts.mk" 5e1fe3dbaSRuslan Ermilov 641bc2b72SIan LeporeSUBDIR_PARALLEL= 741bc2b72SIan Lepore 84a47892cSRobert Millan# Modules that include binary-only blobs of microcode should be selectable by 94a47892cSRobert Millan# MK_SOURCELESS_UCODE option (see below). 104a47892cSRobert Millan 1179785bbfSEnji Cooper.if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES) 1279785bbfSEnji CooperSUBDIR=${MODULES_OVERRIDE} 1379785bbfSEnji Cooper.else 1498663aa0SDavid E. O'BrienSUBDIR= \ 1598663aa0SDavid E. O'Brien ${_3dfx} \ 16375ce679SYaroslav Tykhiy ${_3dfx_linux} \ 17b8eaa978SRuslan Ermilov ${_aac} \ 18dce93cd0SAchim Leubner ${_aacraid} \ 19b8eaa978SRuslan Ermilov accf_data \ 20744eaff7SDavid Malone accf_dns \ 2109261c4fSBrooks Davis accf_http \ 229124ddebSAdrian Chadd acl_nfs4 \ 239124ddebSAdrian Chadd acl_posix1e \ 24b8eaa978SRuslan Ermilov ${_acpi} \ 25ba26d470SStanislav Sedov ae \ 265f270659SKonstantin Belousov ${_aesni} \ 27cfef026aSPyun YongHyeon age \ 28b8eaa978SRuslan Ermilov ${_agp} \ 2952c9ce25SScott Long ahci \ 30fb404d6fSScott Long aic7xxx \ 31d68875ebSPyun YongHyeon alc \ 323c6e15bcSPyun YongHyeon ale \ 33d28f42f9SLawrence Stewart alq \ 34f5aac907SAndriy Gapon ${_amd_ecc_inject} \ 358ce574deSOleksandr Tymoshenko ${_amdgpio} \ 365022f21bSAndriy Gapon ${_amdsbwd} \ 37907f50feSConrad Meyer ${_amdsmn} \ 382b201a17SAndriy Gapon ${_amdtemp} \ 3909261c4fSBrooks Davis amr \ 40d87076c8SWarner Losh ${_an} \ 41b8eaa978SRuslan Ermilov ${_aout} \ 42b8eaa978SRuslan Ermilov ${_apm} \ 43d0885ac3SScott Long ${_arcmsr} \ 443076898aSEmmanuel Vadot ${_allwinner} \ 45d6699d29SAndrew Turner ${_armv8crypto} \ 46e702bc74SRui Paulo ${_asmc} \ 478ca4df32SSøren Schmidt ata \ 4833644623SSam Leffler ath \ 4941059135SAdrian Chadd ath_dfs \ 5041059135SAdrian Chadd ath_hal \ 5141059135SAdrian Chadd ath_hal_ar5210 \ 5241059135SAdrian Chadd ath_hal_ar5211 \ 5341059135SAdrian Chadd ath_hal_ar5212 \ 5441059135SAdrian Chadd ath_hal_ar5416 \ 5541059135SAdrian Chadd ath_hal_ar9300 \ 5641059135SAdrian Chadd ath_main \ 5741059135SAdrian Chadd ath_rate \ 58dba9c859SAdrian Chadd ath_pci \ 59b3590423SEnji Cooper ${_autofs} \ 60e60fc88fSPyun YongHyeon ${_auxio} \ 614a47892cSRobert Millan ${_bce} \ 62fc62b7e5SPoul-Henning Kamp ${_bcm283x_clkman} \ 63137a344cSPoul-Henning Kamp ${_bcm283x_pwm} \ 64b9f78d2bSBill Paul bfe \ 6595d67482SBill Paul bge \ 66148ed571SAdrian Chadd bhnd \ 67102657cbSDavid Christensen ${_bxe} \ 68b8eaa978SRuslan Ermilov ${_bios} \ 69b8eaa978SRuslan Ermilov ${_bktr} \ 700e33efe4SConrad Meyer ${_blake2} \ 71d933e97fSStephen Hurd bnxt \ 728a33eee1SAndrew Thompson bridgestp \ 73215da5ecSWarner Losh bwi \ 74215da5ecSWarner Losh bwn \ 755370c80eSOleksandr Tymoshenko ${_bytgpio} \ 7694b8a54aSOleksandr Tymoshenko ${_chvgpio} \ 77aa980888SJake Burkholder cam \ 78b8eaa978SRuslan Ermilov ${_cardbus} \ 79663222f1SGleb Smirnoff ${_carp} \ 80119051cbSMarius Strobl cas \ 81b8eaa978SRuslan Ermilov ${_cbb} \ 82ad4e3b96SLawrence Stewart cc \ 83844d9543SConrad Meyer ${_ccp} \ 84aa980888SJake Burkholder cd9660 \ 85c4f02a89SMax Khon cd9660_iconv \ 86f2ca64caSRoman Kurakin ${_ce} \ 872064b86fSMarcel Moolenaar ${_cfi} \ 88448897d3SAndriy Gapon ${_chromebook_platform} \ 89b8eaa978SRuslan Ermilov ${_ciss} \ 908bc78518SEd Schouten cloudabi \ 91e4df2955SEd Schouten ${_cloudabi32} \ 928bc78518SEd Schouten ${_cloudabi64} \ 93603d67aeSRink Springer ${_cmx} \ 9483d18f22SDag-Erling Smørgrav ${_coretemp} \ 954dba35d1SRoman Kurakin ${_cp} \ 96e53470feSOleksandr Tymoshenko ${_cpsw} \ 97e085f869SStanislav Sedov ${_cpuctl} \ 986ab93acaSScott Long ${_cpufreq} \ 99f544a528SMark Murray ${_crypto} \ 100f544a528SMark Murray ${_cryptodev} \ 1016ca77a6fSRoman Kurakin ${_ctau} \ 10232562145SEdward Tomasz Napierala ctl \ 103c99255b8SWarner Losh ${_cxgb} \ 1044310207eSRobert Millan ${_cxgbe} \ 10509261c4fSBrooks Davis dc \ 106869093b1SHidetoshi Shimokawa dcons \ 107869093b1SHidetoshi Shimokawa dcons_crom \ 108aa7c1c05SJohn Baldwin ${_dpms} \ 1098c4026b5SPaul Saab dummynet \ 110bc3ad3a1SKonstantin Belousov ${_efirt} \ 111b8eaa978SRuslan Ermilov ${_em} \ 1129b8d05b8SZbigniew Bodek ${_ena} \ 113319570f9SMarius Strobl ${_epic} \ 114a9ab459bSMarius Strobl esp \ 1154d52a575SXin LI ${_et} \ 116a6b15a34SOleksandr Tymoshenko evdev \ 117b8eaa978SRuslan Ermilov ${_exca} \ 1184be7e5f8SJustin Hibbits ext2fs \ 11909261c4fSBrooks Davis fdc \ 12042d6ed03SBruce Evans fdescfs \ 121f5c49e5cSIan Lepore ${_ffec} \ 12224862f22SBryan Drewery filemon \ 1237d2ba89bSJohn Baldwin firewire \ 1246aec1278SMax Laier firmware \ 125123af6ecSAlan Somers fusefs \ 1264a47892cSRobert Millan ${_fxp} \ 1271ed3fed7SMarius Strobl gem \ 1285d9bef64SPoul-Henning Kamp geom \ 129149d1c89SHenrik Brix Andersen ${_glxiic} \ 130a51aa5d1SPhilip Paeps ${_glxsb} \ 1311e45d04bSIan Lepore gpio \ 1328b7ce2ffSSam Leffler hifn \ 133ac341582SMarius Strobl hme \ 13481966bceSXin LI ${_hpt27xx} \ 135f73e86c3SScott Long ${_hptiop} \ 136085f35d6SScott Long ${_hptmv} \ 1371fdeb165SXin LI ${_hptnr} \ 138b063a422SScott Long ${_hptrr} \ 1399c3a1281SMarcel Moolenaar hwpmc \ 1404691c88fSAdrian Chadd ${_hwpmc_mips24k} \ 1414691c88fSAdrian Chadd ${_hwpmc_mips74k} \ 1427d99ab9fSPeter Grehan ${_hyperv} \ 1434be7e5f8SJustin Hibbits i2c \ 14477c1fcecSEric Joyner ${_iavf} \ 145c9f432b7SAlfred Perlstein ${_ibcore} \ 146cae8da61SDag-Erling Smørgrav ${_ichwd} \ 147b8eaa978SRuslan Ermilov ${_ida} \ 1487afc53b8SAndrew Thompson if_bridge \ 14909261c4fSBrooks Davis if_disc \ 15063518eccSYaroslav Tykhiy if_edsc \ 151ef91a976SAndrey V. Elsukov ${_if_enc} \ 152d0ea4743SBjoern A. Zeeb if_epair \ 153f325335cSAndrey V. Elsukov ${_if_gif} \ 154af8a927eSBjoern A. Zeeb ${_if_gre} \ 155f325335cSAndrey V. Elsukov ${_if_me} \ 15618242d3bSAndrew Thompson if_lagg \ 15796b50ea3SBill Paul ${_if_ndis} \ 158a5965d15SAndrey V. Elsukov ${_if_stf} \ 159251a32b5SKyle Evans if_tuntap \ 160214bfc97SBrooks Davis if_vlan \ 161007054f0SBryan Venteicher if_vxlan \ 162c75f49f7SKonstantin Belousov iflib \ 163b8eaa978SRuslan Ermilov ${_iir} \ 16481e3caafSJustin Hibbits imgact_binmisc \ 165d786719dSOleksandr Tymoshenko ${_intelspi} \ 1668ab2f5ecSMark Murray ${_io} \ 167e974f91cSConrad Meyer ${_ioat} \ 168c9f432b7SAlfred Perlstein ${_ipoib} \ 169aa57e971SBjoern A. Zeeb ${_ipdivert} \ 170b8eaa978SRuslan Ermilov ${_ipfilter} \ 1718813217aSBjoern A. Zeeb ${_ipfw} \ 172755d3f8aSPaolo Pisati ipfw_nat \ 173d8caf56eSAndrey V. Elsukov ${_ipfw_nat64} \ 174b867e84eSAndrey V. Elsukov ${_ipfw_nptv6} \ 175aac74aeaSAndrey V. Elsukov ${_ipfw_pmod} \ 1761c204a57SDoug Ambrisko ${_ipmi} \ 177d5c0af17SAndrey V. Elsukov ip6_mroute_mod \ 1788c11b231SRuslan Ermilov ip_mroute_mod \ 179b8eaa978SRuslan Ermilov ${_ips} \ 180fcf59617SAndrey V. Elsukov ${_ipsec} \ 181b4c31113SDamien Bergamini ${_ipw} \ 1827bd6fde3SFlorent Thoumie ${_ipwfw} \ 183f11c7f63SJim Harris ${_isci} \ 1841b4b226bSEdward Tomasz Napierala ${_iser} \ 18597af632bSJohn Baldwin isp \ 1864a47892cSRobert Millan ${_ispfw} \ 187b4c31113SDamien Bergamini ${_iwi} \ 1887bd6fde3SFlorent Thoumie ${_iwifw} \ 189444e7e3dSRui Paulo ${_iwm} \ 190444e7e3dSRui Paulo ${_iwmfw} \ 1913971d07bSSam Leffler ${_iwn} \ 1923971d07bSSam Leffler ${_iwnfw} \ 193bc2e8d79SJack F Vogel ${_ix} \ 194bc2e8d79SJack F Vogel ${_ixv} \ 195d502eb6dSJack F Vogel ${_ixl} \ 19675a1bf5fSPyun YongHyeon jme \ 197f9e56677SMaksim Yevmenkin kbdmux \ 1987e7fd7d1SRick Macklem kgssapi \ 1997e7fd7d1SRick Macklem kgssapi_krb5 \ 2006987b09fSLawrence Stewart khelp \ 201fa9d9930SDoug Rabson krpc \ 20200a5db46SStacey Son ksyms \ 203b2e60773SJohn Baldwin ${_ktls_ocf} \ 20444ac0964SMarius Strobl le \ 20509261c4fSBrooks Davis lge \ 2066cd047a0SGleb Smirnoff libalias \ 2070e3b6d50SSheldon Hearn libiconv \ 20809261c4fSBrooks Davis libmchain \ 20903f1cf9fSJohannes Lundberg lindebugfs \ 21024ef40deSHans Petter Selasky linuxkpi \ 211f173c2b7SSean Bruno ${_lio} \ 2121b6c2589SPoul-Henning Kamp lpt \ 213ebbd4fa8SRobert Watson mac_biba \ 214ebbd4fa8SRobert Watson mac_bsdextended \ 215ebbd4fa8SRobert Watson mac_ifoff \ 2165773cccfSRobert Watson mac_lomac \ 217ebbd4fa8SRobert Watson mac_mls \ 218ebbd4fa8SRobert Watson mac_none \ 2193496c981SIan Lepore mac_ntpd \ 22051363000SRobert Watson mac_partition \ 22103d03162SRobert Watson mac_portacl \ 222ebbd4fa8SRobert Watson mac_seeotheruids \ 223782f7255SRobert Watson mac_stub \ 224ebbd4fa8SRobert Watson mac_test \ 225e76ee875SWeongyo Jeong malo \ 22609261c4fSBrooks Davis md \ 22771e8eac4SAdrian Chadd mdio \ 2289004f894SDavid E. O'Brien mem \ 229215da5ecSWarner Losh mfi \ 23009261c4fSBrooks Davis mii \ 23109261c4fSBrooks Davis mlx \ 2323b2324c3SHans Petter Selasky mlxfw \ 2333b1f0b5dSJeff Roberson ${_mlx4} \ 2343b1f0b5dSJeff Roberson ${_mlx4ib} \ 23597549c34SHans Petter Selasky ${_mlx4en} \ 23622f2c49aSHans Petter Selasky ${_mlx5} \ 23722f2c49aSHans Petter Selasky ${_mlx5en} \ 23812515907SHans Petter Selasky ${_mlx5ib} \ 239b8eaa978SRuslan Ermilov ${_mly} \ 2401a97aaebSWarner Losh mmc \ 2411a97aaebSWarner Losh mmcsd \ 24244f299a3SScott Long ${_mpr} \ 24344f299a3SScott Long ${_mps} \ 244215da5ecSWarner Losh mpt \ 2456c597554SDavid Xu mqueue \ 246665484d8SDoug Ambrisko mrsas \ 24786597d47SMaxime Henrion msdosfs \ 248c4f02a89SMax Khon msdosfs_iconv \ 249c9d21ce9SPyun YongHyeon msk \ 25033ec1ccbSHans Petter Selasky ${_mthca} \ 251dd48af36SAlexander Motin mvs \ 252cf4c5a53SSam Leffler mwl \ 2534a47892cSRobert Millan ${_mwlfw} \ 254f9ae0280SAndrew Gallatin mxge \ 255e4de92ceSRuslan Ermilov my \ 2566b7b2d80SAdrian Chadd ${_nctgpio} \ 257b8eaa978SRuslan Ermilov ${_ndis} \ 258abae4e8aSAntoine Brodin ${_netgraph} \ 259bfc788c2SDavid E. O'Brien ${_nfe} \ 260bcbdacddSRick Macklem nfscl \ 261bcbdacddSRick Macklem nfscommon \ 262bcbdacddSRick Macklem nfsd \ 263f92bbff2SRick Macklem nfslock \ 264fa9d9930SDoug Rabson nfslockd \ 26545452edcSRick Macklem nfssvc \ 26609261c4fSBrooks Davis nge \ 26709261c4fSBrooks Davis nmdm \ 26809261c4fSBrooks Davis nullfs \ 269e47937d1SCarl Delsey ${_ntb} \ 270eb85d44fSJim Harris ${_nvd} \ 2716db7f8e5SKonstantin Belousov ${_nvdimm} \ 272eb85d44fSJim Harris ${_nvme} \ 273d5566384SPeter Wemm ${_nvram} \ 2742f345d8eSLuigi Rizzo oce \ 275ef270ab1SKenneth D. Merry ${_ocs_fc} \ 276a9fcb51fSAdrian Chadd otus \ 2778485a1f6SEd Maste ${_otusfw} \ 278ae1f3df4SWarner Losh ow \ 279ef0a6e20SPawel Jakub Dawidek ${_padlock} \ 28010cb2424SMark Murray ${_padlock_rng} \ 281b8eaa978SRuslan Ermilov ${_pccard} \ 282b8eaa978SRuslan Ermilov ${_pcfclock} \ 2838d69c48bSMax Laier ${_pf} \ 2845bba2114SMax Laier ${_pflog} \ 285e0bfbfceSBjoern A. Zeeb ${_pfsync} \ 2861b6c2589SPoul-Henning Kamp plip \ 287a650d869SBenno Rice ${_pms} \ 2881b6c2589SPoul-Henning Kamp ppbus \ 289c69e06b1SMarcel Moolenaar ppc \ 2901b6c2589SPoul-Henning Kamp ppi \ 2911b6c2589SPoul-Henning Kamp pps \ 2923fd18735SDag-Erling Smørgrav procfs \ 29367fb10f3SMarcel Moolenaar proto \ 2943fd18735SDag-Erling Smørgrav pseudofs \ 2954f05e3faSRuslan Ermilov ${_pst} \ 296f105c8beSEd Schouten pty \ 297c69e06b1SMarcel Moolenaar puc \ 298e108c3dfSIan Lepore pwm \ 299711bcba0SDavid C Somayajulu ${_qlxge} \ 3000bc7cf6fSBjoern A. Zeeb ${_qlxgb} \ 301f10a77bbSDavid C Somayajulu ${_qlxgbe} \ 30211e25f0dSDavid C Somayajulu ${_qlnx} \ 303ceaec73dSDamien Bergamini ral \ 3044a47892cSRobert Millan ${_ralfw} \ 305646041a8SMark Murray ${_random_fortuna} \ 306646041a8SMark Murray ${_random_other} \ 3070ac19bd5SSam Leffler rc4 \ 30853d68f00SKip Macy ${_rdma} \ 30910cb2424SMark Murray ${_rdrand_rng} \ 310a94100faSBill Paul re \ 31109261c4fSBrooks Davis rl \ 312c0fc4047SEmmanuel Vadot ${_rockchip} \ 313b6ac0e65SAdrian Chadd rtwn \ 3147453645fSAndriy Voskoboinyk rtwn_pci \ 3157453645fSAndriy Voskoboinyk rtwn_usb \ 316783da314SChristian Brueffer ${_rtwnfw} \ 317b8eaa978SRuslan Ermilov ${_s3} \ 318b8eaa978SRuslan Ermilov ${_safe} \ 31926e46883SJohn Baldwin ${_sbni} \ 320af2e25a6SMarcel Moolenaar scc \ 321831f5dcfSAlexander Motin sdhci \ 322e5d519fdSOleksandr Tymoshenko ${_sdhci_acpi} \ 323d6b3aaf8SOleksandr Tymoshenko sdhci_pci \ 32467ca7330SBjoern A. Zeeb sdio \ 3255416cda8STom Rhodes sem \ 3261db8d1f8SAna Kukec send \ 3275bd64b65SPhilip Paeps ${_sfxge} \ 328d193ed0bSPyun YongHyeon sge \ 3292164af29SRuslan Bukin ${_sgx} \ 3302164af29SRuslan Bukin ${_sgx_linux} \ 331a5548bf6SLawrence Stewart siftr \ 33267b87e44SAlexander Motin siis \ 33309261c4fSBrooks Davis sis \ 33409261c4fSBrooks Davis sk \ 3351e66f787SSean Bruno ${_smartpqi} \ 3364be7e5f8SJustin Hibbits smbfs \ 337932ef5b5SEd Schouten snp \ 3384be7e5f8SJustin Hibbits sound \ 339b8eaa978SRuslan Ermilov ${_speaker} \ 3402aa5d9c4SIan Lepore spi \ 341b8eaa978SRuslan Ermilov ${_splash} \ 342b8eaa978SRuslan Ermilov ${_sppp} \ 34309261c4fSBrooks Davis ste \ 344d497bdf1SPyun YongHyeon stge \ 345e3722b78SAndriy Gapon ${_superio} \ 346c99255b8SWarner Losh ${_sym} \ 347b8eaa978SRuslan Ermilov ${_syscons} \ 34809261c4fSBrooks Davis sysvipc \ 3494222f968SMichael Tuexen tcp \ 3504a47892cSRobert Millan ${_ti} \ 351d319cc96SNathan Whitehorn tmpfs \ 35209fe6320SNavdeep Parhar ${_toecore} \ 353c02b5042SWarner Losh ${_tpm} \ 354f3d92b26SOlivier Houchard trm \ 3553c12ea23SVinod Kashyap ${_twa} \ 35642d6ed03SBruce Evans twe \ 357db1fda10SXin LI tws \ 358b74668b1SWarner Losh uart \ 3598b7ce2ffSSam Leffler ubsec \ 360df263cbdSScott Long udf \ 36177730021SScott Long udf_iconv \ 362b16af7f1SEdward Tomasz Napierala ufs \ 363a6b15a34SOleksandr Tymoshenko uinput \ 36409261c4fSBrooks Davis unionfs \ 3657d0d268bSAndrew Thompson usb \ 366b8eaa978SRuslan Ermilov ${_vesa} \ 36710b59a9bSPeter Grehan ${_virtio} \ 368a07bd003SBill Paul vge \ 36961af1d13SFabien Thomas ${_viawd} \ 370a7ff99ccSHans Petter Selasky videomode \ 3716e81ac21SMaksim Yevmenkin vkbd \ 372366f6083SPeter Grehan ${_vmm} \ 373e3c97c2cSBryan Venteicher ${_vmware} \ 374042bbe55SPeter Grehan ${_vpo} \ 37509261c4fSBrooks Davis vr \ 3762608aefcSPyun YongHyeon vte \ 3770566170fSBjoern A. Zeeb ${_wbwd} \ 378b8eaa978SRuslan Ermilov ${_wi} \ 3790ac19bd5SSam Leffler wlan \ 38095ef8c71SSam Leffler wlan_acl \ 38174828f25SSam Leffler wlan_amrr \ 38263f9a4cbSSam Leffler wlan_ccmp \ 383b032f27cSSam Leffler wlan_rssadapt \ 38463f9a4cbSSam Leffler wlan_tkip \ 38563f9a4cbSSam Leffler wlan_wep \ 38663f9a4cbSSam Leffler wlan_xauth \ 38703734771SBenjamin Close ${_wpi} \ 38803734771SBenjamin Close ${_wpifw} \ 389a57707e7SXin LI ${_x86bios} \ 390cf62a08fSWojciech A. Koszek xl \ 391e8643b01SKonstantin Belousov xz \ 392513798ccSYoshihiro Takahashi zlib 3934310207eSRobert Millan 394b3590423SEnji Cooper.if ${MK_AUTOFS} != "no" || defined(ALL_MODULES) 395b3590423SEnji Cooper_autofs= autofs 396b3590423SEnji Cooper.endif 397b3590423SEnji Cooper 3985e742644SEd Maste.if ${MK_CDDL} != "no" || defined(ALL_MODULES) 3990b972ac9SWarner Losh.if (${MACHINE_CPUARCH} != "arm" || ${MACHINE_ARCH:Marmv[67]*} != "") && \ 400c92ef786SAndrew Turner ${MACHINE_CPUARCH} != "mips" && \ 4015e742644SEd Maste ${MACHINE_CPUARCH} != "sparc64" 4025e742644SEd MasteSUBDIR+= dtrace 4035e742644SEd Maste.endif 4045e742644SEd MasteSUBDIR+= opensolaris 4055e742644SEd Maste.endif 4065e742644SEd Maste 407e1fe3dbaSRuslan Ermilov.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 408193d9e76SEnji Cooper.if exists(${SRCTOP}/sys/opencrypto) 409b8eaa978SRuslan Ermilov_crypto= crypto 410b8eaa978SRuslan Ermilov_cryptodev= cryptodev 411646041a8SMark Murray_random_fortuna=random_fortuna 412646041a8SMark Murray_random_other= random_other 413b2e60773SJohn Baldwin_ktls_ocf= ktls_ocf 414b8eaa978SRuslan Ermilov.endif 4157a07b896SIan Dowse.endif 416aa980888SJake Burkholder 417e3d1e0f6SEnji Cooper.if ${MK_CUSE} != "no" || defined(ALL_MODULES) 418e3d1e0f6SEnji CooperSUBDIR+= cuse 419e3d1e0f6SEnji Cooper.endif 420e3d1e0f6SEnji Cooper 421af8a927eSBjoern A. Zeeb.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ 422af8a927eSBjoern A. Zeeb defined(ALL_MODULES) 423663222f1SGleb Smirnoff_carp= carp 42409fe6320SNavdeep Parhar_toecore= toecore 425ef91a976SAndrey V. Elsukov_if_enc= if_enc 426f325335cSAndrey V. Elsukov_if_gif= if_gif 427f325335cSAndrey V. Elsukov_if_gre= if_gre 428aac74aeaSAndrey V. Elsukov_ipfw_pmod= ipfw_pmod 429fcf59617SAndrey V. Elsukov.if ${MK_IPSEC_SUPPORT} != "no" 430fcf59617SAndrey V. Elsukov_ipsec= ipsec 431fcf59617SAndrey V. Elsukov.endif 432af8a927eSBjoern A. Zeeb.endif 433af8a927eSBjoern A. Zeeb 434a5965d15SAndrey V. Elsukov.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ 435a5965d15SAndrey V. Elsukov defined(ALL_MODULES) 436a5965d15SAndrey V. Elsukov_if_stf= if_stf 437a5965d15SAndrey V. Elsukov.endif 438a5965d15SAndrey V. Elsukov 439aa57e971SBjoern A. Zeeb.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES) 440f325335cSAndrey V. Elsukov_if_me= if_me 441513798ccSYoshihiro Takahashi_ipdivert= ipdivert 442513798ccSYoshihiro Takahashi_ipfw= ipfw 443d8caf56eSAndrey V. Elsukov.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) 444d8caf56eSAndrey V. Elsukov_ipfw_nat64= ipfw_nat64 445d8caf56eSAndrey V. Elsukov.endif 446aa57e971SBjoern A. Zeeb.endif 447aa57e971SBjoern A. Zeeb 448b867e84eSAndrey V. Elsukov.if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES) 449b867e84eSAndrey V. Elsukov_ipfw_nptv6= ipfw_nptv6 450b867e84eSAndrey V. Elsukov.endif 451b867e84eSAndrey V. Elsukov 452e1fe3dbaSRuslan Ermilov.if ${MK_IPFILTER} != "no" || defined(ALL_MODULES) 453b8eaa978SRuslan Ermilov_ipfilter= ipfilter 4547a43a96aSRuslan Ermilov.endif 4557a43a96aSRuslan Ermilov 456b29d6977SEnji Cooper.if ${MK_ISCSI} != "no" || defined(ALL_MODULES) 457653e7d63SEnji CooperSUBDIR+= cfiscsi 458b29d6977SEnji CooperSUBDIR+= iscsi 459b29d6977SEnji CooperSUBDIR+= iscsi_initiator 460b29d6977SEnji Cooper.endif 461b29d6977SEnji Cooper 462238eb01bSIan Lepore.if !empty(OPT_FDT) 463238eb01bSIan LeporeSUBDIR+= fdt 464238eb01bSIan Lepore.endif 465238eb01bSIan Lepore 466*6659d8e7SEd Maste# Linuxulator 467408ab1bdSEd Maste.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 46896fa5386SEd Maste ${MACHINE_CPUARCH} == "i386" 46996fa5386SEd MasteSUBDIR+= linprocfs 47096fa5386SEd MasteSUBDIR+= linsysfs 471*6659d8e7SEd Maste.endif 472*6659d8e7SEd Maste.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" 473*6659d8e7SEd MasteSUBDIR+= linux 474*6659d8e7SEd Maste.endif 475*6659d8e7SEd Maste.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" 476*6659d8e7SEd MasteSUBDIR+= linux64 477*6659d8e7SEd MasteSUBDIR+= linux_common 478*6659d8e7SEd Maste.endif 479*6659d8e7SEd Maste 480*6659d8e7SEd Maste.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 481*6659d8e7SEd Maste ${MACHINE_CPUARCH} == "i386" 482f56baf87SColin Percival_ena= ena 483e53f0338SEd Maste.if ${MK_OFED} != "no" || defined(ALL_MODULES) 484e53f0338SEd Maste_ibcore= ibcore 485e53f0338SEd Maste_ipoib= ipoib 486e53f0338SEd Maste_iser= iser 487e53f0338SEd Maste.endif 488e53f0338SEd Maste_mlx4= mlx4 489e53f0338SEd Maste_mlx5= mlx5 490e53f0338SEd Maste.if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \ 491e53f0338SEd Maste defined(ALL_MODULES) 492e53f0338SEd Maste_mlx4en= mlx4en 493e53f0338SEd Maste_mlx5en= mlx5en 494e53f0338SEd Maste.endif 495e53f0338SEd Maste.if ${MK_OFED} != "no" || defined(ALL_MODULES) 496e53f0338SEd Maste_mthca= mthca 497e53f0338SEd Maste_mlx4ib= mlx4ib 498e53f0338SEd Maste_mlx5ib= mlx5ib 499e53f0338SEd Maste.endif 50096fa5386SEd Maste.endif 50196fa5386SEd Maste 502abae4e8aSAntoine Brodin.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) 503abae4e8aSAntoine Brodin_netgraph= netgraph 504abae4e8aSAntoine Brodin.endif 505abae4e8aSAntoine Brodin 506af8a927eSBjoern A. Zeeb.if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \ 507af8a927eSBjoern A. Zeeb ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES) 5088d69c48bSMax Laier_pf= pf 5095bba2114SMax Laier_pflog= pflog 510e0bfbfceSBjoern A. Zeeb.if ${MK_INET_SUPPORT} != "no" 511e0bfbfceSBjoern A. Zeeb_pfsync= pfsync 512e0bfbfceSBjoern A. Zeeb.endif 5138d69c48bSMax Laier.endif 5148d69c48bSMax Laier 5154a47892cSRobert Millan.if ${MK_SOURCELESS_UCODE} != "no" 5164a47892cSRobert Millan_bce= bce 5174a47892cSRobert Millan_fxp= fxp 5184a47892cSRobert Millan_ispfw= ispfw 5197b523f05SEd Maste_ti= ti 5207b523f05SEd Maste 5217b523f05SEd Maste.if ${MACHINE_CPUARCH} != "mips" 5224a47892cSRobert Millan_mwlfw= mwlfw 5238485a1f6SEd Maste_otusfw= otusfw 5244a47892cSRobert Millan_ralfw= ralfw 525783da314SChristian Brueffer_rtwnfw= rtwnfw 5267b523f05SEd Maste.endif 5274a47892cSRobert Millan.endif 5284a47892cSRobert Millan 529ca7fe84aSNavdeep Parhar.if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \ 530e9004cefSBrooks Davis ${MACHINE_CPUARCH} != "mips" && \ 531dc9b124dSJustin Hibbits ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \ 532dc9b124dSJustin Hibbits ${MACHINE_CPUARCH} != "riscv" 533183dc986SNavdeep Parhar_cxgbe= cxgbe 534183dc986SNavdeep Parhar.endif 535513798ccSYoshihiro Takahashi 53644f299a3SScott Long# These rely on 64bit atomics 5370cbe99d7SWarner Losh.if ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \ 53825b4f9adSScott Long ${MACHINE_CPUARCH} != "mips" 53944f299a3SScott Long_mps= mps 54044f299a3SScott Long_mpr= mpr 54144f299a3SScott Long.endif 54244f299a3SScott Long 543a3d929a7SEnji Cooper.if ${MK_TESTS} != "no" || defined(ALL_MODULES) 544a3d929a7SEnji CooperSUBDIR+= tests 545a3d929a7SEnji Cooper.endif 546a3d929a7SEnji Cooper 5475e742644SEd Maste.if ${MK_ZFS} != "no" || defined(ALL_MODULES) 5485e742644SEd MasteSUBDIR+= zfs 5495e742644SEd Maste.endif 5505e742644SEd Maste 55175429a15SKurt Lidl.if (${MACHINE_CPUARCH} == "mips" && ${MACHINE_ARCH:Mmips64} == "") 5524691c88fSAdrian Chadd_hwpmc_mips24k= hwpmc_mips24k 553608accbfSIan Lepore_hwpmc_mips74k= hwpmc_mips74k 5544691c88fSAdrian Chadd.endif 5554691c88fSAdrian Chadd 55632b6c6ecSKonstantin Belousov.if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \ 55787ef4064SRuslan Bukin ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "powerpc" && \ 55887ef4064SRuslan Bukin ${MACHINE_CPUARCH} != "riscv" 559513798ccSYoshihiro Takahashi_syscons= syscons 560513798ccSYoshihiro Takahashi_vpo= vpo 561513798ccSYoshihiro Takahashi.endif 562513798ccSYoshihiro Takahashi 563e2b58d84SWarner Losh.if ${MACHINE_CPUARCH} != "mips" 564513798ccSYoshihiro Takahashi# no BUS_SPACE_UNSPECIFIED 565513798ccSYoshihiro Takahashi# No barrier instruction support (specific to this driver) 566513798ccSYoshihiro Takahashi_sym= sym 567513798ccSYoshihiro Takahashi# intr_disable() is a macro, causes problems 568513798ccSYoshihiro Takahashi.if ${MK_SOURCELESS_UCODE} != "no" 569513798ccSYoshihiro Takahashi_cxgb= cxgb 570513798ccSYoshihiro Takahashi.endif 571513798ccSYoshihiro Takahashi.endif 572513798ccSYoshihiro Takahashi 573fa32340bSEd Maste.if ${MACHINE_CPUARCH} == "aarch64" 5743076898aSEmmanuel Vadot_allwinner= allwinner 575d6699d29SAndrew Turner_armv8crypto= armv8crypto 5767a158e82SAndrew Turner_efirt= efirt 577fa32340bSEd Maste_em= em 578c0fc4047SEmmanuel Vadot_rockchip= rockchip 579fa32340bSEd Maste.endif 580fa32340bSEd Maste 581513798ccSYoshihiro Takahashi.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 582513798ccSYoshihiro Takahashi_agp= agp 583513798ccSYoshihiro Takahashi_an= an 584513798ccSYoshihiro Takahashi_aout= aout 5854d12189bSRavi Pokala_bios= bios 586513798ccSYoshihiro Takahashi_bktr= bktr 587722f80aeSEd Maste.if ${MK_SOURCELESS_UCODE} != "no" 588513798ccSYoshihiro Takahashi_bxe= bxe 589722f80aeSEd Maste.endif 590513798ccSYoshihiro Takahashi_cardbus= cardbus 591513798ccSYoshihiro Takahashi_cbb= cbb 592513798ccSYoshihiro Takahashi_cpuctl= cpuctl 593513798ccSYoshihiro Takahashi_cpufreq= cpufreq 594513798ccSYoshihiro Takahashi_dpms= dpms 595513798ccSYoshihiro Takahashi_em= em 596513798ccSYoshihiro Takahashi_et= et 597513798ccSYoshihiro Takahashi_exca= exca 598513798ccSYoshihiro Takahashi_if_ndis= if_ndis 599513798ccSYoshihiro Takahashi_io= io 6001f6c33acSEric Joyner_ix= ix 6011aa7c60cSJack F Vogel_ixv= ixv 6023de0952fSSean Bruno.if ${MK_SOURCELESS_UCODE} != "no" 6033de0952fSSean Bruno_lio= lio 6043de0952fSSean Bruno.endif 6056b7b2d80SAdrian Chadd_nctgpio= nctgpio 606513798ccSYoshihiro Takahashi_ndis= ndis 60763ac15abSAlexander Motin_ntb= ntb 608ef270ab1SKenneth D. Merry_ocs_fc= ocs_fc 609513798ccSYoshihiro Takahashi_pccard= pccard 610513798ccSYoshihiro Takahashi.if ${MK_OFED} != "no" || defined(ALL_MODULES) 611513798ccSYoshihiro Takahashi_rdma= rdma 612513798ccSYoshihiro Takahashi.endif 613513798ccSYoshihiro Takahashi_safe= safe 614513798ccSYoshihiro Takahashi_speaker= speaker 615513798ccSYoshihiro Takahashi_splash= splash 616513798ccSYoshihiro Takahashi_sppp= sppp 617513798ccSYoshihiro Takahashi_vmware= vmware 618513798ccSYoshihiro Takahashi_wbwd= wbwd 619513798ccSYoshihiro Takahashi_wi= wi 6202b375b4eSYoshihiro Takahashi 621513798ccSYoshihiro Takahashi_aac= aac 622513798ccSYoshihiro Takahashi_aacraid= aacraid 623513798ccSYoshihiro Takahashi_acpi= acpi 624513798ccSYoshihiro Takahashi.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 625ee3d52d7SDimitry Andric.if ${COMPILER_TYPE} != "gcc" || ${COMPILER_VERSION} > 40201 626513798ccSYoshihiro Takahashi_aesni= aesni 627513798ccSYoshihiro Takahashi.endif 628ee3d52d7SDimitry Andric.endif 629f5aac907SAndriy Gapon_amd_ecc_inject=amd_ecc_inject 630513798ccSYoshihiro Takahashi_amdsbwd= amdsbwd 631907f50feSConrad Meyer_amdsmn= amdsmn 632513798ccSYoshihiro Takahashi_amdtemp= amdtemp 633513798ccSYoshihiro Takahashi_arcmsr= arcmsr 634513798ccSYoshihiro Takahashi_asmc= asmc 6350e33efe4SConrad Meyer.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 6360e33efe4SConrad Meyer_blake2= blake2 6370e33efe4SConrad Meyer.endif 638c5d1ccc2SOleksandr Tymoshenko_bytgpio= bytgpio 63994b8a54aSOleksandr Tymoshenko_chvgpio= chvgpio 640513798ccSYoshihiro Takahashi_ciss= ciss 641448897d3SAndriy Gapon_chromebook_platform= chromebook_platform 642513798ccSYoshihiro Takahashi_cmx= cmx 643513798ccSYoshihiro Takahashi_coretemp= coretemp 644513798ccSYoshihiro Takahashi.if ${MK_SOURCELESS_HOST} != "no" 645513798ccSYoshihiro Takahashi_hpt27xx= hpt27xx 646513798ccSYoshihiro Takahashi.endif 647513798ccSYoshihiro Takahashi_hptiop= hptiop 648513798ccSYoshihiro Takahashi.if ${MK_SOURCELESS_HOST} != "no" 649513798ccSYoshihiro Takahashi_hptmv= hptmv 650513798ccSYoshihiro Takahashi_hptnr= hptnr 651513798ccSYoshihiro Takahashi_hptrr= hptrr 652513798ccSYoshihiro Takahashi.endif 653513798ccSYoshihiro Takahashi_hyperv= hyperv 654513798ccSYoshihiro Takahashi_ichwd= ichwd 655513798ccSYoshihiro Takahashi_ida= ida 656513798ccSYoshihiro Takahashi_iir= iir 657d786719dSOleksandr Tymoshenko_intelspi= intelspi 658513798ccSYoshihiro Takahashi_ipmi= ipmi 659513798ccSYoshihiro Takahashi_ips= ips 660444e7e3dSRui Paulo_isci= isci 661513798ccSYoshihiro Takahashi_ipw= ipw 662444e7e3dSRui Paulo_iwi= iwi 663444e7e3dSRui Paulo_iwm= iwm 664444e7e3dSRui Paulo_iwn= iwn 665513798ccSYoshihiro Takahashi.if ${MK_SOURCELESS_UCODE} != "no" 666513798ccSYoshihiro Takahashi_ipwfw= ipwfw 667513798ccSYoshihiro Takahashi_iwifw= iwifw 668444e7e3dSRui Paulo_iwmfw= iwmfw 669513798ccSYoshihiro Takahashi_iwnfw= iwnfw 670513798ccSYoshihiro Takahashi.endif 671513798ccSYoshihiro Takahashi_mly= mly 672513798ccSYoshihiro Takahashi_nfe= nfe 673513798ccSYoshihiro Takahashi_nvd= nvd 674513798ccSYoshihiro Takahashi_nvme= nvme 675513798ccSYoshihiro Takahashi_nvram= nvram 676513798ccSYoshihiro Takahashi.if ${MK_CRYPT} != "no" || defined(ALL_MODULES) 677513798ccSYoshihiro Takahashi_padlock= padlock 67810cb2424SMark Murray_padlock_rng= padlock_rng 67910cb2424SMark Murray_rdrand_rng= rdrand_rng 680513798ccSYoshihiro Takahashi.endif 681513798ccSYoshihiro Takahashi_s3= s3 682e5d519fdSOleksandr Tymoshenko_sdhci_acpi= sdhci_acpi 683e3722b78SAndriy Gapon_superio= superio 684513798ccSYoshihiro Takahashi_tpm= tpm 685513798ccSYoshihiro Takahashi_twa= twa 686513798ccSYoshihiro Takahashi_vesa= vesa 687513798ccSYoshihiro Takahashi_viawd= viawd 688513798ccSYoshihiro Takahashi_virtio= virtio 689513798ccSYoshihiro Takahashi_wpi= wpi 690513798ccSYoshihiro Takahashi.if ${MK_SOURCELESS_UCODE} != "no" 691513798ccSYoshihiro Takahashi_wpifw= wpifw 692513798ccSYoshihiro Takahashi.endif 693513798ccSYoshihiro Takahashi_x86bios= x86bios 694513798ccSYoshihiro Takahashi.endif 695513798ccSYoshihiro Takahashi 696513798ccSYoshihiro Takahashi.if ${MACHINE_CPUARCH} == "amd64" 6978ce574deSOleksandr Tymoshenko_amdgpio= amdgpio 698d3f8974aSConrad Meyer_ccp= ccp 699bc3ad3a1SKonstantin Belousov_efirt= efirt 70077c1fcecSEric Joyner_iavf= iavf 701e974f91cSConrad Meyer_ioat= ioat 702513798ccSYoshihiro Takahashi_ixl= ixl 7036db7f8e5SKonstantin Belousov_nvdimm= nvdimm 704a650d869SBenno Rice_pms= pms 705513798ccSYoshihiro Takahashi_qlxge= qlxge 706513798ccSYoshihiro Takahashi_qlxgb= qlxgb 70749c6edfcSEd Maste.if ${MK_SOURCELESS_UCODE} != "no" 708513798ccSYoshihiro Takahashi_qlxgbe= qlxgbe 70911e25f0dSDavid C Somayajulu_qlnx= qlnx 710eadaf05dSEd Maste.endif 711513798ccSYoshihiro Takahashi_sfxge= sfxge 7122164af29SRuslan Bukin_sgx= sgx 7132164af29SRuslan Bukin_sgx_linux= sgx_linux 7141e66f787SSean Bruno_smartpqi= smartpqi 71502629e46SEnji Cooper 71602629e46SEnji Cooper.if ${MK_BHYVE} != "no" || defined(ALL_MODULES) 717513798ccSYoshihiro Takahashi_vmm= vmm 718513798ccSYoshihiro Takahashi.endif 71902629e46SEnji Cooper.endif 720513798ccSYoshihiro Takahashi 721c09808d0SWarner Losh.if ${MACHINE_CPUARCH} == "i386" 72228cc91d8SMike Smith# XXX some of these can move to the general case when de-i386'ed 7234e54e04eSWarner Losh# XXX some of these can move now, but are untested on other architectures. 724b8eaa978SRuslan Ermilov_3dfx= 3dfx 725375ce679SYaroslav Tykhiy_3dfx_linux= 3dfx_linux 726b8eaa978SRuslan Ermilov_apm= apm 7274a47892cSRobert Millan.if ${MK_SOURCELESS_UCODE} != "no" 728f2ca64caSRoman Kurakin_ce= ce 7294a47892cSRobert Millan.endif 7304a47892cSRobert Millan.if ${MK_SOURCELESS_UCODE} != "no" 7314dba35d1SRoman Kurakin_cp= cp 7324a47892cSRobert Millan.endif 733149d1c89SHenrik Brix Andersen_glxiic= glxiic 734a51aa5d1SPhilip Paeps_glxsb= glxsb 735b8eaa978SRuslan Ermilov_pcfclock= pcfclock 7364f05e3faSRuslan Ermilov_pst= pst 73726e46883SJohn Baldwin_sbni= sbni 7384a47892cSRobert Millan.if ${MK_SOURCELESS_UCODE} != "no" 7396ca77a6fSRoman Kurakin_ctau= ctau 7404a47892cSRobert Millan.endif 741b8eaa978SRuslan Ermilov.endif 742b8eaa978SRuslan Ermilov 7432064b86fSMarcel Moolenaar.if ${MACHINE_CPUARCH} == "arm" 7442064b86fSMarcel Moolenaar_cfi= cfi 745e53470feSOleksandr Tymoshenko_cpsw= cpsw 7462064b86fSMarcel Moolenaar.endif 7472064b86fSMarcel Moolenaar 748a393ae13SNathan Whitehorn.if ${MACHINE_CPUARCH} == "powerpc" 74950fd2a5bSNathan Whitehorn_agp= agp 750d87076c8SWarner Losh_an= an 751363e589aSJustin Hibbits_cardbus= cardbus 752363e589aSJustin Hibbits_cbb= cbb 7532064b86fSMarcel Moolenaar_cfi= cfi 7549eb9db93SNathan Whitehorn_cpufreq= cpufreq 755fb6d9e60SJustin Hibbits_exca= exca 756f5c49e5cSIan Lepore_ffec= ffec 757b5e08a60SJustin Hibbits_nvd= nvd 758b5e08a60SJustin Hibbits_nvme= nvme 759513798ccSYoshihiro Takahashi_pccard= pccard 76084cd55bbSJustin Hibbits_wi= wi 7618e2ad3d7SJustin Hibbits.endif 76273badb24SDavid E. O'Brien 7632785677dSNathan Whitehorn.if ${MACHINE_ARCH} == "powerpc64" 7640bf0bb83SJustin Hibbits_ipmi= ipmi 7652785677dSNathan Whitehorn.endif 766dc9b124dSJustin Hibbits.if ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc" 767dc9b124dSJustin Hibbits# Don't build powermac_nvram for powerpcspe, it's never supported. 768dc9b124dSJustin Hibbits_nvram= powermac_nvram 769dc9b124dSJustin Hibbits.endif 7702785677dSNathan Whitehorn 771c09808d0SWarner Losh.if ${MACHINE_CPUARCH} == "sparc64" 772e60fc88fSPyun YongHyeon_auxio= auxio 7738baab09eSPyun YongHyeon_em= em 774319570f9SMarius Strobl_epic= epic 775ce3ae5c7SIan Dowse.endif 776513798ccSYoshihiro Takahashi 777aea6d042SEd Schouten.if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \ 778aea6d042SEd Schouten ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "i386") 779e4df2955SEd Schouten_cloudabi32= cloudabi32 780e4df2955SEd Schouten.endif 7812ff069a7SEd Schouten.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" 7822ff069a7SEd Schouten_cloudabi64= cloudabi64 7832ff069a7SEd Schouten.endif 7842ff069a7SEd Schouten 785581a68a2SWarner Losh.endif 786581a68a2SWarner Losh 787137a344cSPoul-Henning Kamp.if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64" 788fc62b7e5SPoul-Henning Kamp_bcm283x_clkman= bcm283x_clkman 789137a344cSPoul-Henning Kamp_bcm283x_pwm= bcm283x_pwm 790137a344cSPoul-Henning Kamp.endif 791137a344cSPoul-Henning Kamp 792854739a4SWarner LoshSUBDIR+=${MODULES_EXTRA} 793854739a4SWarner Losh 794ba2e5903SWes Peters.for reject in ${WITHOUT_MODULES} 795ba2e5903SWes PetersSUBDIR:= ${SUBDIR:N${reject}} 796ba2e5903SWes Peters.endfor 797ba2e5903SWes Peters 7985e82ed7bSRuslan Ermilov# Calling kldxref(8) for each module is expensive. 7994875819cSJake Burkholder.if !defined(NO_XREF) 80099bca506SRuslan Ermilov.MAKEFLAGS+= -DNO_XREF 80149773547SBryan Dreweryafterinstall: .PHONY 802be1d673dSRuslan Ermilov @if type kldxref >/dev/null 2>&1; then \ 8035ec57af4SMaxim Sobolev ${ECHO} ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 8045ec57af4SMaxim Sobolev ${KLDXREF_CMD} ${DESTDIR}${KMODDIR}; \ 805be1d673dSRuslan Ermilov fi 8065e82ed7bSRuslan Ermilov.endif 8075e82ed7bSRuslan Ermilov 80835c4406dSWarner Losh.include "${SYSDIR}/conf/config.mk" 80935c4406dSWarner Losh 81035c4406dSWarner LoshSUBDIR:= ${SUBDIR:u:O} 81135c4406dSWarner Losh 8120eec3684SGarrett Wollman.include <bsd.subdir.mk> 813