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