]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/Makefile
Remove stg(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         nullfs \
283         ${_ntb} \
284         ${_nvd} \
285         ${_nvdimm} \
286         ${_nvme} \
287         ${_nvram} \
288         oce \
289         ${_ocs_fc} \
290         otus \
291         ${_otusfw} \
292         ow \
293         ${_padlock} \
294         ${_padlock_rng} \
295         ${_pccard} \
296         ${_pcfclock} \
297         pcn \
298         ${_pf} \
299         ${_pflog} \
300         ${_pfsync} \
301         plip \
302         ${_pms} \
303         ppbus \
304         ppc \
305         ppi \
306         pps \
307         procfs \
308         proto \
309         pseudofs \
310         ${_pst} \
311         pty  \
312         puc \
313         ${_qlxge} \
314         ${_qlxgb} \
315         ${_qlxgbe} \
316         ${_qlnx} \
317         ral \
318         ${_ralfw} \
319         ${_random_fortuna} \
320         ${_random_other} \
321         rc4 \
322         ${_rdma} \
323         ${_rdrand_rng} \
324         re \
325         rl \
326         ${_rockchip} \
327         rtwn \
328         rtwn_pci \
329         rtwn_usb \
330         ${_rtwnfw} \
331         ${_s3} \
332         ${_safe} \
333         ${_sbni} \
334         scc \
335         ${_scsi_low} \
336         sdhci \
337         ${_sdhci_acpi} \
338         sdhci_pci \
339         sem \
340         send \
341         ${_sf} \
342         ${_sfxge} \
343         sge \
344         ${_sgx} \
345         ${_sgx_linux} \
346         siftr \
347         siis \
348         sis \
349         sk \
350         ${_smartpqi} \
351         smbfs \
352         sn \
353         snp \
354         sound \
355         ${_speaker} \
356         spi \
357         ${_splash} \
358         ${_sppp} \
359         ste \
360         stge \
361         ${_sym} \
362         ${_syscons} \
363         sysvipc \
364         tcp \
365         ${_ti} \
366         tl \
367         tmpfs \
368         ${_toecore} \
369         ${_tpm} \
370         trm \
371         ${_twa} \
372         twe \
373         tws \
374         tx \
375         ${_txp} \
376         uart \
377         ubsec \
378         udf \
379         udf_iconv \
380         ufs \
381         uinput \
382         unionfs \
383         usb \
384         ${_vesa} \
385         ${_virtio} \
386         vge \
387         ${_viawd} \
388         videomode \
389         vkbd \
390         ${_vmm} \
391         ${_vmware} \
392         ${_vpo} \
393         vr \
394         vte \
395         vx \
396         wb \
397         ${_wbwd} \
398         ${_wi} \
399         wlan \
400         wlan_acl \
401         wlan_amrr \
402         wlan_ccmp \
403         wlan_rssadapt \
404         wlan_tkip \
405         wlan_wep \
406         wlan_xauth \
407         ${_wpi} \
408         ${_wpifw} \
409         ${_x86bios} \
410         ${_xe} \
411         xl \
412         zlib
413
414 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
415 _autofs=        autofs
416 .endif
417
418 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
419 .if (${MACHINE_CPUARCH} != "arm" || ${MACHINE_ARCH:Marmv[67]*} != "") && \
420         ${MACHINE_CPUARCH} != "mips" && \
421         ${MACHINE_CPUARCH} != "sparc64"
422 SUBDIR+=        dtrace
423 .endif
424 SUBDIR+=        opensolaris
425 .endif
426
427 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
428 .if exists(${SRCTOP}/sys/opencrypto)
429 _crypto=        crypto
430 _cryptodev=     cryptodev
431 _random_fortuna=random_fortuna
432 _random_other=  random_other
433 .endif
434 .endif
435
436 .if ${MK_CUSE} != "no" || defined(ALL_MODULES)
437 SUBDIR+=        cuse
438 .endif
439
440 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
441         defined(ALL_MODULES)
442 _carp=          carp
443 _toecore=       toecore
444 _if_enc=        if_enc
445 _if_gif=        if_gif
446 _if_gre=        if_gre
447 _ipfw_pmod=     ipfw_pmod
448 .if ${MK_IPSEC_SUPPORT} != "no"
449 _ipsec=         ipsec
450 .endif
451 .endif
452
453 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
454         defined(ALL_MODULES)
455 _if_stf=        if_stf
456 .endif
457
458 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
459 _if_me=         if_me
460 _ipdivert=      ipdivert
461 _ipfw=          ipfw
462 .if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES)
463 _ipfw_nat64=    ipfw_nat64
464 .endif
465 .endif
466
467 .if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES)
468 _ipfw_nptv6=    ipfw_nptv6
469 .endif
470
471 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
472 _ipfilter=      ipfilter
473 .endif
474
475 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
476 SUBDIR+=        cfiscsi
477 SUBDIR+=        iscsi
478 SUBDIR+=        iscsi_initiator
479 .endif
480
481 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
482     ${MACHINE_CPUARCH} == "i386"
483 SUBDIR+=        linprocfs
484 SUBDIR+=        linsysfs
485 .endif
486
487 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
488 _nandfs=        nandfs
489 _nandsim=       nandsim
490 .endif
491
492 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
493 _netgraph=      netgraph
494 .endif
495
496 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
497         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
498 _pf=            pf
499 _pflog=         pflog
500 .if ${MK_INET_SUPPORT} != "no"
501 _pfsync=        pfsync
502 .endif
503 .endif
504
505 .if ${MK_SOURCELESS_UCODE} != "no"
506 _bce=           bce
507 _fxp=           fxp
508 _ispfw=         ispfw
509 _sf=            sf
510 _ti=            ti
511 _txp=           txp
512
513 .if ${MACHINE_CPUARCH} != "mips"
514 _mwlfw=         mwlfw
515 _otusfw=        otusfw
516 _ralfw=         ralfw
517 _rtwnfw=        rtwnfw
518 .endif
519 .endif
520
521 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
522         ${MACHINE_CPUARCH} != "mips" && \
523         ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \
524         ${MACHINE_CPUARCH} != "riscv"
525 _cxgbe=         cxgbe
526 .endif
527
528 .if ${MK_TESTS} != "no" || defined(ALL_MODULES)
529 SUBDIR+=        tests
530 .endif
531
532 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
533 SUBDIR+=        zfs
534 .endif
535
536 .if (${MACHINE_CPUARCH} == "mips" && ${MACHINE_ARCH:Mmips64} == "")
537 _hwpmc_mips24k= hwpmc_mips24k
538 _hwpmc_mips74k= hwpmc_mips74k
539 .endif
540
541 .if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \
542         ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "powerpc" && \
543         ${MACHINE_CPUARCH} != "riscv"
544 _syscons=       syscons
545 _vpo=           vpo
546 .endif
547
548 .if ${MACHINE_CPUARCH} != "mips"
549 # no BUS_SPACE_UNSPECIFIED
550 # No barrier instruction support (specific to this driver)
551 _sym=           sym
552 # intr_disable() is a macro, causes problems
553 .if ${MK_SOURCELESS_UCODE} != "no"
554 _cxgb=          cxgb
555 .endif
556 .endif
557
558 .if ${MACHINE_CPUARCH} == "aarch64"
559 _allwinner=     allwinner
560 _armv8crypto=   armv8crypto
561 _efirt=         efirt
562 _em=            em
563 _rockchip=      rockchip
564 .endif
565
566 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
567 _agp=           agp
568 _an=            an
569 _aout=          aout
570 _bios=          bios
571 _bktr=          bktr
572 .if ${MK_SOURCELESS_UCODE} != "no"
573 _bxe=           bxe
574 .endif
575 _cardbus=       cardbus
576 _cbb=           cbb
577 _cpuctl=        cpuctl
578 _cpufreq=       cpufreq
579 _cs=            cs
580 _dpms=          dpms
581 .if ${MK_MODULE_DRM} != "no"
582 _drm=           drm
583 .endif
584 .if ${MK_MODULE_DRM2} != "no"
585 _drm2=          drm2
586 .endif
587 _ed=            ed
588 _em=            em
589 _ena=           ena
590 _ep=            ep
591 _et=            et
592 _exca=          exca
593 _fe=            fe
594 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
595 _ibcore=        ibcore
596 .endif
597 _if_ndis=       if_ndis
598 _io=            io
599 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
600 _ipoib=         ipoib
601 _iser=          iser
602 .endif
603 _ix=            ix
604 _ixv=           ixv
605 _linux=         linux
606 .if ${MK_SOURCELESS_UCODE} != "no"
607 _lio=           lio
608 .endif
609 _nctgpio=       nctgpio
610 _ndis=          ndis
611 _ocs_fc=        ocs_fc
612 _pccard=        pccard
613 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
614 _rdma=          rdma
615 .endif
616 _safe=          safe
617 _scsi_low=      scsi_low
618 _speaker=       speaker
619 _splash=        splash
620 _sppp=          sppp
621 _vmware=        vmware
622 _wbwd=          wbwd
623 _wi=            wi
624 _xe=            xe
625
626 _aac=           aac
627 _aacraid=       aacraid
628 _acpi=          acpi
629 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
630 .if ${COMPILER_TYPE} != "gcc" || ${COMPILER_VERSION} > 40201
631 _aesni=         aesni
632 .endif
633 .endif
634 _amd_ecc_inject=amd_ecc_inject
635 _amdsbwd=       amdsbwd
636 _amdsmn=        amdsmn
637 _amdtemp=       amdtemp
638 _arcmsr=        arcmsr
639 _asmc=          asmc
640 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
641 _blake2=        blake2
642 .endif
643 _bytgpio=       bytgpio
644 _chvgpio=       chvgpio
645 _ciss=          ciss
646 _chromebook_platform=   chromebook_platform
647 _cmx=           cmx
648 _coretemp=      coretemp
649 .if ${MK_SOURCELESS_HOST} != "no"
650 _hpt27xx=       hpt27xx
651 .endif
652 _hptiop=        hptiop
653 .if ${MK_SOURCELESS_HOST} != "no"
654 _hptmv=         hptmv
655 _hptnr=         hptnr
656 _hptrr=         hptrr
657 .endif
658 _hyperv=        hyperv
659 _ichwd=         ichwd
660 _ida=           ida
661 _iir=           iir
662 _intelspi=      intelspi
663 _ipmi=          ipmi
664 _ips=           ips
665 _isci=          isci
666 _ipw=           ipw
667 _iwi=           iwi
668 _iwm=           iwm
669 _iwn=           iwn
670 .if ${MK_SOURCELESS_UCODE} != "no"
671 _ipwfw=         ipwfw
672 _iwifw=         iwifw
673 _iwmfw=         iwmfw
674 _iwnfw=         iwnfw
675 .endif
676 _mlx4=          mlx4
677 _mlx5=          mlx5
678 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
679         defined(ALL_MODULES)
680 _mlx4en=        mlx4en
681 _mlx5en=        mlx5en
682 .endif
683 .if ${MK_OFED} != "no" || defined(ALL_MODULES)
684 _mthca=         mthca
685 _mlx4ib=        mlx4ib
686 _mlx5ib=        mlx5ib
687 .endif
688 _mly=           mly
689 _nfe=           nfe
690 _nvd=           nvd
691 _nvme=          nvme
692 _nvram=         nvram
693 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
694 _padlock=       padlock
695 _padlock_rng=   padlock_rng
696 _rdrand_rng=    rdrand_rng
697 .endif
698 _s3=            s3
699 _sdhci_acpi=    sdhci_acpi
700 _tpm=           tpm
701 _twa=           twa
702 _vesa=          vesa
703 _viawd=         viawd
704 _virtio=        virtio
705 _wpi=           wpi
706 .if ${MK_SOURCELESS_UCODE} != "no"
707 _wpifw=         wpifw
708 .endif
709 _x86bios=       x86bios
710 .endif
711
712 .if ${MACHINE_CPUARCH} == "amd64"
713 _amdgpio=       amdgpio
714 _ccp=           ccp
715 _efirt=         efirt
716 _iavf=          iavf
717 _ioat=          ioat
718 _ixl=           ixl
719 _linux64=       linux64
720 _linux_common=  linux_common
721 _ntb=           ntb
722 _nvdimm=        nvdimm
723 _pms=           pms
724 _qlxge=         qlxge
725 _qlxgb=         qlxgb
726 .if ${MK_SOURCELESS_UCODE} != "no"
727 _qlxgbe=        qlxgbe
728 _qlnx=          qlnx
729 .endif
730 _sfxge=         sfxge
731 _sgx=           sgx
732 _sgx_linux=     sgx_linux
733 _smartpqi=      smartpqi
734
735 .if ${MK_BHYVE} != "no" || defined(ALL_MODULES)
736 _vmm=           vmm
737 .endif
738 .endif
739
740 .if ${MACHINE_CPUARCH} == "i386"
741 # XXX some of these can move to the general case when de-i386'ed
742 # XXX some of these can move now, but are untested on other architectures.
743 _3dfx=          3dfx
744 _3dfx_linux=    3dfx_linux
745 _apm=           apm
746 .if ${MK_SOURCELESS_UCODE} != "no"
747 _ce=            ce
748 .endif
749 _coff=          coff
750 .if ${MK_SOURCELESS_UCODE} != "no"
751 _cp=            cp
752 .endif
753 _glxiic=        glxiic
754 _glxsb=         glxsb
755 #_ibcs2=                ibcs2
756 _ncr=           ncr
757 _pcfclock=      pcfclock
758 _pst=           pst
759 _sbni=          sbni
760 .if ${MK_SOURCELESS_UCODE} != "no"
761 _ctau=          ctau
762 .endif
763 _ex=            ex
764 .endif
765
766 .if ${MACHINE_CPUARCH} == "arm"
767 _cfi=           cfi
768 _cpsw=          cpsw
769 .endif
770
771 .if ${MACHINE_CPUARCH} == "powerpc"
772 _agp=           agp
773 _an=            an
774 _bm=            bm
775 _cardbus=       cardbus
776 _cbb=           cbb
777 _cfi=           cfi
778 _cpufreq=       cpufreq
779 .if ${MK_MODULE_DRM} != "no"
780 _drm=           drm
781 .endif
782 _exca=          exca
783 _ffec=          ffec
784 _nvd=           nvd
785 _nvme=          nvme
786 _pccard=        pccard
787 _wi=            wi
788 .endif
789
790 .if ${MACHINE_ARCH} == "powerpc64"
791 .if ${MK_MODULE_DRM2} != "no"
792 _drm2=          drm2
793 .endif
794 _ipmi=          ipmi
795 .endif
796 .if ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc"
797 # Don't build powermac_nvram for powerpcspe, it's never supported.
798 _nvram=         powermac_nvram
799 .endif
800
801 .if ${MACHINE_CPUARCH} == "sparc64"
802 _auxio=         auxio
803 _em=            em
804 _epic=          epic
805 .endif
806
807 .if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
808      ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "i386")
809 _cloudabi32=    cloudabi32
810 .endif
811 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
812 _cloudabi64=    cloudabi64
813 .endif
814
815 .endif
816
817 .if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64"
818 _bcm283x_clkman=  bcm283x_clkman
819 _bcm283x_pwm=  bcm283x_pwm
820 .endif
821
822 SUBDIR+=${MODULES_EXTRA}
823
824 .for reject in ${WITHOUT_MODULES}
825 SUBDIR:= ${SUBDIR:N${reject}}
826 .endfor
827
828 # Calling kldxref(8) for each module is expensive.
829 .if !defined(NO_XREF)
830 .MAKEFLAGS+=    -DNO_XREF
831 afterinstall: .PHONY
832         @if type kldxref >/dev/null 2>&1; then \
833                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
834                 kldxref ${DESTDIR}${KMODDIR}; \
835         fi
836 .endif
837
838 .include "${SYSDIR}/conf/config.mk"
839
840 SUBDIR:= ${SUBDIR:u:O}
841
842 .include <bsd.subdir.mk>