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