]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/Makefile
libsa: open() should use NULL instead of typecasted 0
[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         ${_amdsbwd} \
38         ${_amdsmn} \
39         ${_amdtemp} \
40         amr \
41         ${_an} \
42         ${_aout} \
43         ${_apm} \
44         ${_arcmsr} \
45         ${_allwinner} \
46         ${_armv8crypto} \
47         ${_asmc} \
48         ata \
49         ath \
50         ath_dfs \
51         ath_hal \
52         ath_hal_ar5210 \
53         ath_hal_ar5211 \
54         ath_hal_ar5212 \
55         ath_hal_ar5416 \
56         ath_hal_ar9300 \
57         ath_main \
58         ath_rate \
59         ath_pci \
60         ${_autofs} \
61         ${_auxio} \
62         ${_bce} \
63         ${_bcm283x_clkman} \
64         ${_bcm283x_pwm} \
65         bfe \
66         bge \
67         bhnd \
68         ${_bxe} \
69         ${_bios} \
70         ${_bktr} \
71         ${_blake2} \
72         ${_bm} \
73         bnxt \
74         bridgestp \
75         bwi \
76         bwn \
77         ${_bytgpio} \
78         ${_chvgpio} \
79         cam \
80         ${_cardbus} \
81         ${_carp} \
82         cas \
83         ${_cbb} \
84         cc \
85         ${_ccp} \
86         cd9660 \
87         cd9660_iconv \
88         ${_ce} \
89         ${_cfi} \
90         ${_chromebook_platform} \
91         ${_ciss} \
92         cloudabi \
93         ${_cloudabi32} \
94         ${_cloudabi64} \
95         ${_cmx} \
96         ${_coff} \
97         ${_coretemp} \
98         ${_cp} \
99         ${_cpsw} \
100         ${_cpuctl} \
101         ${_cpufreq} \
102         ${_crypto} \
103         ${_cryptodev} \
104         ${_cs} \
105         ${_ctau} \
106         ctl \
107         ${_cxgb} \
108         ${_cxgbe} \
109         dc \
110         dcons \
111         dcons_crom \
112         de \
113         ${_dpms} \
114         ${_dpt} \
115         ${_drm} \
116         ${_drm2} \
117         dummynet \
118         ${_ed} \
119         ${_efirt} \
120         ${_em} \
121         ${_ena} \
122         ${_ep} \
123         ${_epic} \
124         epoch_test \
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         ${_ibcore} \
158         ${_ibcs2} \
159         ${_ichwd} \
160         ${_ida} \
161         if_bridge \
162         if_disc \
163         if_edsc \
164         ${_if_enc} \
165         if_epair \
166         ${_if_gif} \
167         ${_if_gre} \
168         ${_if_me} \
169         if_lagg \
170         ${_if_ndis} \
171         ${_if_stf} \
172         if_tap \
173         if_tun \
174         if_vlan \
175         if_vxlan \
176         ${_iir} \
177         imgact_binmisc \
178         ${_intelspi} \
179         ${_io} \
180         ${_ioat} \
181         ${_ipoib} \
182         ${_ipdivert} \
183         ${_ipfilter} \
184         ${_ipfw} \
185         ipfw_nat \
186         ${_ipfw_nat64} \
187         ${_ipfw_nptv6} \
188         ${_ipfw_pmod} \
189         ${_ipmi} \
190         ip6_mroute_mod \
191         ip_mroute_mod \
192         ${_ips} \
193         ${_ipsec} \
194         ${_ipw} \
195         ${_ipwfw} \
196         ${_isci} \
197         ${_iser} \
198         isp \
199         ${_ispfw} \
200         ${_iwi} \
201         ${_iwifw} \
202         ${_iwm} \
203         ${_iwmfw} \
204         ${_iwn} \
205         ${_iwnfw} \
206         ${_ix} \
207         ${_ixv} \
208         ${_ixl} \
209         ${_ixlv} \
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         ${_linprocfs} \
224         ${_linsysfs} \
225         ${_linux} \
226         ${_linux_common} \
227         ${_linux64} \
228         linuxkpi \
229         ${_lio} \
230         lpt \
231         mac_biba \
232         mac_bsdextended \
233         mac_ifoff \
234         mac_lomac \
235         mac_mls \
236         mac_none \
237         mac_partition \
238         mac_portacl \
239         mac_seeotheruids \
240         mac_stub \
241         mac_test \
242         malo \
243         md \
244         mdio \
245         mem \
246         mfi \
247         mii \
248         mlx \
249         ${_mlx4} \
250         ${_mlx4ib} \
251         ${_mlx4en} \
252         ${_mlx5} \
253         ${_mlx5en} \
254         ${_mlx5ib} \
255         ${_mly} \
256         mmc \
257         mmcsd \
258         mpr \
259         mps \
260         mpt \
261         mqueue \
262         mrsas \
263         msdosfs \
264         msdosfs_iconv \
265         ${_mse} \
266         msk \
267         ${_mthca} \
268         mvs \
269         mwl \
270         ${_mwlfw} \
271         mxge \
272         my \
273         ${_nandfs} \
274         ${_nandsim} \
275         ${_ncr} \
276         ${_nctgpio} \
277         ${_ncv} \
278         ${_ndis} \
279         ${_netgraph} \
280         ${_nfe} \
281         nfscl \
282         nfscommon \
283         nfsd \
284         nfslock \
285         nfslockd \
286         nfssvc \
287         nge \
288         nmdm \
289         ${_nsp} \
290         nullfs \
291         ${_ntb} \
292         ${_nvd} \
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_yarrow} \
328         ${_random_other} \
329         rc4 \
330         ${_rdma} \
331         ${_rdrand_rng} \
332         re \
333         rl \
334         ${_rockchip} \
335         rtwn \
336         rtwn_pci \
337         rtwn_usb \
338         ${_rtwnfw} \
339         ${_s3} \
340         ${_safe} \
341         ${_sbni} \
342         scc \
343         ${_scsi_low} \
344         sdhci \
345         ${_sdhci_acpi} \
346         sdhci_pci \
347         sem \
348         send \
349         ${_sf} \
350         ${_sfxge} \
351         sge \
352         ${_sgx} \
353         ${_sgx_linux} \
354         siftr \
355         siis \
356         sis \
357         sk \
358         ${_smartpqi} \
359         smbfs \
360         sn \
361         snp \
362         sound \
363         ${_speaker} \
364         spi \
365         ${_splash} \
366         ${_sppp} \
367         ste \
368         ${_stg} \
369         stge \
370         ${_sym} \
371         ${_syscons} \
372         sysvipc \
373         tcp \
374         ${_ti} \
375         tl \
376         tmpfs \
377         ${_toecore} \
378         ${_tpm} \
379         trm \
380         ${_twa} \
381         twe \
382         tws \
383         tx \
384         ${_txp} \
385         uart \
386         ubsec \
387         udf \
388         udf_iconv \
389         ufs \
390         uinput \
391         unionfs \
392         usb \
393         ${_vesa} \
394         ${_virtio} \
395         vge \
396         ${_viawd} \
397         videomode \
398         vkbd \
399         ${_vmm} \
400         ${_vmware} \
401         ${_vpo} \
402         vr \
403         vte \
404         vx \
405         wb \
406         ${_wbwd} \
407         ${_wi} \
408         wlan \
409         wlan_acl \
410         wlan_amrr \
411         wlan_ccmp \
412         wlan_rssadapt \
413         wlan_tkip \
414         wlan_wep \
415         wlan_xauth \
416         ${_wpi} \
417         ${_wpifw} \
418         ${_x86bios} \
419         ${_xe} \
420         xl \
421         zlib
422
423 .if ${MK_AUTOFS} != "no" || defined(ALL_MODULES)
424 _autofs=        autofs
425 .endif
426
427 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
428 .if (${MACHINE_CPUARCH} != "arm" || ${MACHINE_ARCH:Marmv[67]*} != "") && \
429         ${MACHINE_CPUARCH} != "mips" && \
430         ${MACHINE_CPUARCH} != "sparc64"
431 SUBDIR+=        dtrace
432 .endif
433 SUBDIR+=        opensolaris
434 .endif
435
436 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
437 .if exists(${SRCTOP}/sys/opencrypto)
438 _crypto=        crypto
439 _cryptodev=     cryptodev
440 _random_fortuna=random_fortuna
441 _random_yarrow= random_yarrow
442 _random_other=  random_other
443 .endif
444 .endif
445
446 .if ${MK_CUSE} != "no" || defined(ALL_MODULES)
447 SUBDIR+=        cuse
448 .endif
449
450 .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
451         defined(ALL_MODULES)
452 _carp=          carp
453 _toecore=       toecore
454 _if_enc=        if_enc
455 _if_gif=        if_gif
456 _if_gre=        if_gre
457 _ipfw_pmod=     ipfw_pmod
458 .if ${MK_IPSEC_SUPPORT} != "no"
459 _ipsec=         ipsec
460 .endif
461 .endif
462
463 .if (${MK_INET_SUPPORT} != "no" && ${MK_INET6_SUPPORT} != "no") || \
464         defined(ALL_MODULES)
465 _if_stf=        if_stf
466 .endif
467
468 .if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
469 _if_me=         if_me
470 _ipdivert=      ipdivert
471 _ipfw=          ipfw
472 .if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES)
473 _ipfw_nat64=    ipfw_nat64
474 .endif
475 .endif
476
477 .if ${MK_INET6_SUPPORT} != "no" || defined(ALL_MODULES)
478 _ipfw_nptv6=    ipfw_nptv6
479 .endif
480
481 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
482 _ipfilter=      ipfilter
483 .endif
484
485 .if ${MK_ISCSI} != "no" || defined(ALL_MODULES)
486 SUBDIR+=        cfiscsi
487 SUBDIR+=        iscsi
488 SUBDIR+=        iscsi_initiator
489 .endif
490
491 .if ${MK_NAND} != "no" || defined(ALL_MODULES)
492 _nandfs=        nandfs
493 _nandsim=       nandsim
494 .endif
495
496 .if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
497 _netgraph=      netgraph
498 .endif
499
500 .if (${MK_PF} != "no" && (${MK_INET_SUPPORT} != "no" || \
501         ${MK_INET6_SUPPORT} != "no")) || defined(ALL_MODULES)
502 _pf=            pf
503 _pflog=         pflog
504 .if ${MK_INET_SUPPORT} != "no"
505 _pfsync=        pfsync
506 .endif
507 .endif
508
509 .if ${MK_SOURCELESS_UCODE} != "no"
510 _bce=           bce
511 _fxp=           fxp
512 _ispfw=         ispfw
513 _sf=            sf
514 _ti=            ti
515 _txp=           txp
516
517 .if ${MACHINE_CPUARCH} != "mips"
518 _mwlfw=         mwlfw
519 _otusfw=        otusfw
520 _ralfw=         ralfw
521 _rtwnfw=        rtwnfw
522 .endif
523 .endif
524
525 .if ${MK_SOURCELESS_UCODE} != "no" && ${MACHINE_CPUARCH} != "arm" && \
526         ${MACHINE_CPUARCH} != "mips" && \
527         ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "powerpcspe" && \
528         ${MACHINE_CPUARCH} != "riscv"
529 _cxgbe=         cxgbe
530 .endif
531
532 .if ${MK_TESTS} != "no" || defined(ALL_MODULES)
533 SUBDIR+=        tests
534 .endif
535
536 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
537 SUBDIR+=        zfs
538 .endif
539
540 .if (${MACHINE_CPUARCH} == "mips" && ${MACHINE_ARCH:Mmips64} == "")
541 _hwpmc_mips24k= hwpmc_mips24k
542 _hwpmc_mips74k= hwpmc_mips74k
543 .endif
544
545 .if ${MACHINE_CPUARCH} != "aarch64" && ${MACHINE_CPUARCH} != "arm" && \
546         ${MACHINE_CPUARCH} != "mips" && ${MACHINE_CPUARCH} != "powerpc" && \
547         ${MACHINE_CPUARCH} != "riscv"
548 _syscons=       syscons
549 _vpo=           vpo
550 .endif
551
552 .if ${MACHINE_CPUARCH} != "mips"
553 # no BUS_SPACE_UNSPECIFIED
554 # No barrier instruction support (specific to this driver)
555 _sym=           sym
556 # intr_disable() is a macro, causes problems
557 .if ${MK_SOURCELESS_UCODE} != "no"
558 _cxgb=          cxgb
559 .endif
560 .endif
561
562 .if ${MACHINE_CPUARCH} == "aarch64"
563 _allwinner=     allwinner
564 _armv8crypto=   armv8crypto
565 _efirt=         efirt
566 _em=            em
567 _rockchip=      rockchip
568 .endif
569
570 .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
571 _agp=           agp
572 _an=            an
573 _aout=          aout
574 _bios=          bios
575 _bktr=          bktr
576 .if ${MK_SOURCELESS_UCODE} != "no"
577 _bxe=           bxe
578 .endif
579 _cardbus=       cardbus
580 _cbb=           cbb
581 _cpuctl=        cpuctl
582 _cpufreq=       cpufreq
583 _cs=            cs
584 _dpms=          dpms
585 _drm=           drm
586 _drm2=          drm2
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 _linprocfs=     linprocfs
606 _linsysfs=      linsysfs
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 _ccp=           ccp
716 _efirt=         efirt
717 _ioat=          ioat
718 _ixl=           ixl
719 _ixlv=          ixlv
720 _linux64=       linux64
721 _linux_common=  linux_common
722 _ntb=           ntb
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 _aic=           aic
746 _apm=           apm
747 .if ${MK_SOURCELESS_UCODE} != "no"
748 _ce=            ce
749 .endif
750 _coff=          coff
751 .if ${MK_SOURCELESS_UCODE} != "no"
752 _cp=            cp
753 .endif
754 _glxiic=        glxiic
755 _glxsb=         glxsb
756 #_ibcs2=                ibcs2
757 _mse=           mse
758 _ncr=           ncr
759 _ncv=           ncv
760 _nsp=           nsp
761 _pcfclock=      pcfclock
762 _pst=           pst
763 _sbni=          sbni
764 _stg=           stg
765 .if ${MK_SOURCELESS_UCODE} != "no"
766 _ctau=          ctau
767 .endif
768 _dpt=           dpt
769 _ex=            ex
770 .endif
771
772 .if ${MACHINE_CPUARCH} == "arm"
773 _cfi=           cfi
774 _cpsw=          cpsw
775 .endif
776
777 .if ${MACHINE_CPUARCH} == "powerpc"
778 _agp=           agp
779 _an=            an
780 _bm=            bm
781 _cardbus=       cardbus
782 _cbb=           cbb
783 _cfi=           cfi
784 _cpufreq=       cpufreq
785 _drm=           drm
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 _drm2=          drm2
796 .endif
797 .if ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc"
798 # Don't build powermac_nvram for powerpcspe, it's never supported.
799 _nvram=         powermac_nvram
800 .endif
801
802 .if ${MACHINE_CPUARCH} == "sparc64"
803 _auxio=         auxio
804 _em=            em
805 _epic=          epic
806 .endif
807
808 .if (${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64" || \
809      ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "i386")
810 _cloudabi32=    cloudabi32
811 .endif
812 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
813 _cloudabi64=    cloudabi64
814 .endif
815
816 .endif
817
818 .if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64"
819 _bcm283x_clkman=  bcm283x_clkman
820 _bcm283x_pwm=  bcm283x_pwm
821 .endif
822
823 SUBDIR+=${MODULES_EXTRA}
824
825 .for reject in ${WITHOUT_MODULES}
826 SUBDIR:= ${SUBDIR:N${reject}}
827 .endfor
828
829 # Calling kldxref(8) for each module is expensive.
830 .if !defined(NO_XREF)
831 .MAKEFLAGS+=    -DNO_XREF
832 afterinstall: .PHONY
833         @if type kldxref >/dev/null 2>&1; then \
834                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
835                 kldxref ${DESTDIR}${KMODDIR}; \
836         fi
837 .endif
838
839 .include "${SYSDIR}/conf/config.mk"
840
841 SUBDIR:= ${SUBDIR:u:O}
842
843 .include <bsd.subdir.mk>