]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/Makefile
Hook the DTrace kernel modules into the build.
[FreeBSD/FreeBSD.git] / sys / modules / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 SUBDIR= ${_3dfx} \
6         ${_3dfx_linux} \
7         ${_aac} \
8         accf_data \
9         accf_http \
10         ${_acpi} \
11         age \
12         ${_agp} \
13         aha \
14         ${_ahb} \
15         ${_aic} \
16         aic7xxx \
17         aio \
18         ${_amd} \
19         amr \
20         ${_an} \
21         ${_aout} \
22         ${_apm} \
23         ${_ar} \
24         ${_arcmsr} \
25         ${_arcnet} \
26         ${_arl} \
27         ${_asmc} \
28         ${_asr} \
29         ata \
30         ${_ath} \
31         ${_ath_hal} \
32         ${_ath_rate_amrr} \
33         ${_ath_rate_onoe} \
34         ${_ath_rate_sample} \
35         aue \
36         ${_auxio} \
37         axe \
38         bce \
39         bfe \
40         bge \
41         ${_bios} \
42         ${_bktr} \
43         bridgestp \
44         cam \
45         ${_canbepm} \
46         ${_canbus} \
47         ${_cardbus} \
48         ${_cbb} \
49         cd9660 \
50         cd9660_iconv \
51         cdce \
52         ${_ce} \
53         ${_ciss} \
54         ${_cm} \
55         ${_cmx} \
56         coda \
57         coda5 \
58         ${_coff} \
59         ${_coretemp} \
60         ${_cp} \
61         ${_cpufreq} \
62         ${_crypto} \
63         ${_cryptodev} \
64         ${_cs} \
65         ${_ctau} \
66         cue \
67         ${_cx} \
68         cxgb \
69         ${_cyclic} \
70         dc \
71         dcons \
72         dcons_crom \
73         de \
74         ${_digi} \
75         ${_dpt} \
76         ${_drm} \
77         ${_dtrace} \
78         dummynet \
79         ${_ed} \
80         ${_elink} \
81         ${_em} \
82         en \
83         ${_ep} \
84         ${_ex} \
85         ${_exca} \
86         ${_ext2fs} \
87         fatm \
88         fdc \
89         fdescfs \
90         ${_fe} \
91         firewire \
92         firmware \
93         fxp \
94         gem \
95         geom \
96         ${_harp} \
97         hatm \
98         ${_hfa} \
99         hifn \
100         hme \
101         ${_hptiop} \
102         ${_hptmv} \
103         ${_hptrr} \
104         hwpmc \
105         ${_i2c} \
106         ${_ibcs2} \
107         ${_ichwd} \
108         ${_ida} \
109         ${_idt} \
110         ${_ie} \
111         if_bridge \
112         if_disc \
113         if_edsc \
114         if_ef \
115         if_faith \
116         if_gif \
117         if_gre \
118         if_lagg \
119         ${_if_ndis} \
120         if_ppp \
121         if_sl \
122         if_stf \
123         if_tap \
124         if_tun \
125         if_vlan \
126         ${_igb} \
127         ${_iir} \
128         ${_io} \
129         ipdivert \
130         ${_ipfilter} \
131         ipfw \
132         ipfw_nat \
133         ${_ipmi} \
134         ip_mroute_mod \
135         ${_ips} \
136         ${_ipw} \
137         ${_ipwfw} \
138         iscsi \
139         isp \
140         ispfw \
141         ${_iwi} \
142         ${_iwifw} \
143         ${_iwn} \
144         ${_iwnfw} \
145         ${_ixgb} \
146         joy \
147         ${_k8temp} \
148         kbdmux \
149         krpc \
150         kue \
151         le \
152         lge \
153         libalias \
154         libiconv \
155         libmbpool \
156         libmchain \
157         ${_linprocfs} \
158         ${_linsysfs} \
159         ${_linux} \
160         lmc \
161         lpt \
162         mac_biba \
163         mac_bsdextended \
164         mac_ifoff \
165         mac_lomac \
166         mac_mls \
167         mac_none \
168         mac_partition \
169         mac_portacl \
170         mac_seeotheruids \
171         mac_stub \
172         mac_test \
173         malo \
174         mcd \
175         md \
176         mem \
177         mfi \
178         mii \
179         mlx \
180         ${_mly} \
181         mpt \
182         mqueue \
183         msdosfs \
184         msdosfs_iconv \
185         ${_mse} \
186         msk \
187         mxge \
188         my \
189         ${_ncp} \
190         ${_ncv} \
191         ${_ndis} \
192         netgraph \
193         ${_nfe} \
194         nfsclient \
195         nfslockd \
196         nfsserver \
197         nge \
198         nmdm \
199         ${_nsp} \
200         ntfs \
201         ntfs_iconv \
202         nullfs \
203         ${_nve} \
204         ${_nvram} \
205         ${_nwfs} \
206         ${_nxge} \
207         ${_oltr} \
208         ${_opensolaris} \
209         ${_padlock} \
210         patm \
211         ${_pccard} \
212         ${_pcfclock} \
213         pcn \
214         ${_pecoff} \
215         ${_pf} \
216         ${_pflog} \
217         plip \
218         ${_pmc} \
219         portalfs \
220         ppbus \
221         ppc \
222         ppi \
223         pps \
224         procfs \
225         pseudofs \
226         ${_pst} \
227         puc \
228         ral \
229         ${_random} \
230         ${_ray} \
231         rc \
232         rc4 \
233         ${_rdma} \
234         re \
235         reiserfs \
236         rl \
237         rp \
238         rue \
239         rum \
240         ${_s3} \
241         ${_safe} \
242         ${_sbni} \
243         sbsh \
244         scc \
245         scd \
246         ${_scsi_low} \
247         sem \
248         sf \
249         ${_sio} \
250         sis \
251         sk \
252         ${_smbfs} \
253         sn \
254         ${_snc} \
255         snp \
256         ${_sound} \
257         ${_speaker} \
258         ${_splash} \
259         ${_sppp} \
260         ${_sr} \
261         ste \
262         ${_stg} \
263         stge \
264         ${_streams} \
265         sym \
266         ${_syscons} \
267         sysvipc \
268         ti \
269         tl \
270         ${_tmpfs} \
271         trm \
272         ${_twa} \
273         twe \
274         tx \
275         txp \
276         uark \
277         uart \
278         ubsa \
279         ubsec \
280         ubser \
281         ucom \
282         ucycom \
283         udav \
284         udbp \
285         udf \
286         udf_iconv \
287         ufm \
288         ${_ufs} \
289         ufoma \
290         uftdi \
291         ugen \
292         uhid \
293         ukbd \
294         ulpt \
295         umass \
296         umct \
297         umodem \
298         ums \
299         unionfs \
300         uplcom \
301         ural \
302         urio \
303         usb \
304         uscanner \
305         uslcom \
306         utopia \
307         uvisor \
308         uvscom \
309         ${_vesa} \
310         vge \
311         vkbd \
312         ${_vpo} \
313         vr \
314         vx \
315         wb \
316         ${_wi} \
317         wlan \
318         wlan_acl \
319         wlan_amrr \
320         wlan_ccmp \
321         wlan_rssadapt \
322         wlan_tkip \
323         wlan_wep \
324         wlan_xauth \
325         ${_wpi} \
326         ${_wpifw} \
327         ${_xe} \
328         xfs \
329         xl \
330         ${_zfs} \
331         zlib \
332         zyd
333
334 .if ${MACHINE_ARCH} != "powerpc"
335 _syscons=       syscons
336 _vpo=           vpo
337 .endif
338
339 .if defined(ALL_MODULES)
340 _ufs=           ufs
341 .endif
342
343 # Disabled in 7.0 as netatm is not MPSAFE.
344 #if ${MK_ATM} != "no"
345 #_harp=         harp
346 #.endif
347
348 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
349 .if exists(${.CURDIR}/../opencrypto)
350 _crypto=        crypto
351 _cryptodev=     cryptodev
352 .endif
353 .if exists(${.CURDIR}/../crypto)
354 _random=        random
355 .endif
356 .endif
357
358 .if ${MK_IPFILTER} != "no" || defined(ALL_MODULES)
359 _ipfilter=      ipfilter
360 .endif
361
362 .if ${MK_PF} != "no" || defined(ALL_MODULES)
363 _pf=            pf
364 _pflog=         pflog
365 .endif
366
367 .if ${MACHINE_ARCH} == "i386"
368 # XXX some of these can move to the general case when de-i386'ed
369 # XXX some of these can move now, but are untested on other architectures.
370 _3dfx=          3dfx
371 _3dfx_linux=    3dfx_linux
372 _agp=           agp
373 _aic=           aic
374 _amd=           amd
375 _an=            an
376 _aout=          aout
377 _apm=           apm
378 _ar=            ar
379 _arcnet=        arcnet
380 _ath=           ath
381 _ath_hal=       ath_hal
382 _ath_rate_amrr= ath_rate_amrr
383 _ath_rate_onoe= ath_rate_onoe
384 _ath_rate_sample=ath_rate_sample
385 _bktr=          bktr
386 _cardbus=       cardbus
387 _cbb=           cbb
388 _ce=            ce
389 _coff=          coff
390 _cp=            cp
391 _cpufreq=       cpufreq
392 _cs=            cs
393 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
394 _cyclic=        cyclic
395 .endif
396 _digi=          digi
397 _drm=           drm
398 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
399 _dtrace=        dtrace
400 .endif
401 _ed=            ed
402 _elink=         elink
403 _em=            em
404 _ep=            ep
405 _exca=          exca
406 _ext2fs=        ext2fs
407 _fe=            fe
408 # Disabled due to non-MPSAFEty in 7.0
409 #_hfa=          hfa
410 _i2c=           i2c
411 _ibcs2=         ibcs2
412 _ie=            ie
413 _if_ndis=       if_ndis
414 _igb=           igb
415 _io=            io
416 _linprocfs=     linprocfs
417 _linsysfs=      linsysfs
418 _linux=         linux
419 _mse=           mse
420 .if ${MK_NCP} != "no"
421 _ncp=           ncp
422 .endif
423 _ncv=           ncv
424 _ndis=          ndis
425 _nsp=           nsp
426 .if ${MK_NCP} != "no"
427 _nwfs=          nwfs
428 .endif
429 _oltr=          oltr
430 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
431 _opensolaris=   opensolaris
432 .endif
433 _pccard=        pccard
434 _pcfclock=      pcfclock
435 _pecoff=        pecoff
436 _pst=           pst
437 _ray=           ray
438 _rdma=          rdma
439 _safe=          safe
440 _sbni=          sbni
441 _scsi_low=      scsi_low
442 _sio=           sio
443 _smbfs=         smbfs
444 _sound=         sound
445 _speaker=       speaker
446 _splash=        splash
447 _sppp=          sppp
448 _sr=            sr
449 _stg=           stg
450 _streams=       streams
451 _tmpfs=         tmpfs
452 _wi=            wi
453 _xe=            xe
454 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
455 _zfs=           zfs
456 .endif
457 .if ${MACHINE} == "i386"
458 _aac=           aac
459 _acpi=          acpi
460 _ahb=           ahb
461 _arcmsr=        arcmsr
462 _arl=           arl
463 _asmc=          asmc
464 _asr=           asr
465 _bios=          bios
466 _ciss=          ciss
467 _cm=            cm
468 _cmx=           cmx
469 _coretemp=      coretemp
470 _ctau=          ctau
471 _cx=            cx
472 _dpt=           dpt
473 _ex=            ex
474 _hptiop=        hptiop
475 _hptmv=         hptmv
476 _hptrr=         hptrr
477 _ichwd=         ichwd
478 _ida=           ida
479 # Disabled due to non-MPSAFEty in 7.0
480 #_idt=          idt
481 _iir=           iir
482 _ipmi=          ipmi
483 _ips=           ips
484 _ipw=           ipw
485 _ipwfw=         ipwfw
486 _iwi=           iwi
487 _iwifw=         iwifw
488 _iwn=           iwn
489 _iwnfw=         iwnfw
490 _ixgb=          ixgb
491 _mly=           mly
492 _nfe=           nfe
493 _nve=           nve
494 _nvram=         nvram
495 _nxge=          nxge
496 _wpi=           wpi
497 _wpifw=         wpifw
498 .if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
499 .if exists(${.CURDIR}/../crypto/via)
500 _padlock=       padlock
501 .endif
502 .endif
503 _s3=            s3
504 _twa=           twa
505 _vesa=          vesa
506 .elif ${MACHINE} == "pc98"
507 _canbepm=       canbepm
508 _canbus=        canbus
509 _pmc=           pmc
510 _snc=           snc
511 .endif
512 .endif
513
514 .if ${MACHINE_ARCH} == "amd64"
515 _aac=           aac
516 _acpi=          acpi
517 _agp=           agp
518 _an=            an
519 _arcmsr=        arcmsr
520 _asmc=          asmc
521 _ath=           ath
522 _ath_hal=       ath_hal
523 _ath_rate_amrr= ath_rate_amrr
524 _ath_rate_onoe= ath_rate_onoe
525 _ath_rate_sample=ath_rate_sample
526 _cardbus=       cardbus
527 _cbb=           cbb
528 _cmx=           cmx
529 _ciss=          ciss
530 _coretemp=      coretemp
531 _cpufreq=       cpufreq
532 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
533 _cyclic=        cyclic
534 .endif
535 _digi=          digi
536 _drm=           drm
537 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
538 _dtrace=        dtrace
539 .endif
540 _ed=            ed
541 _em=            em
542 _exca=          exca
543 _ext2fs=        ext2fs
544 _hptiop=        hptiop
545 _hptmv=         hptmv
546 _hptrr=         hptrr
547 _i2c=           i2c
548 _ichwd=         ichwd
549 _ida=           ida
550 _if_ndis=       if_ndis
551 _igb=           igb
552 _iir=           iir
553 _io=            io
554 _ipmi=          ipmi
555 _ips=           ips
556 _ipw=           ipw
557 _ipwfw=         ipwfw
558 _iwn=           iwn
559 _iwnfw=         iwnfw
560 _ixgb=          ixgb
561 _k8temp=        k8temp
562 _linprocfs=     linprocfs
563 _linsysfs=      linsysfs
564 _linux=         linux
565 _mly=           mly
566 _ndis=          ndis
567 _nfe=           nfe
568 _nve=           nve
569 _nvram=         nvram
570 _nxge=          nxge
571 .if ${MK_CDDL} != "no" || defined(ALL_MODULES)
572 _opensolaris=   opensolaris
573 .endif
574 _pccard=        pccard
575 _rdma=          rdma    
576 _safe=          safe
577 _scsi_low=      scsi_low
578 _smbfs=         smbfs
579 _sound=         sound
580 _speaker=       speaker
581 _sppp=          sppp
582 _tmpfs=         tmpfs
583 _twa=           twa
584 _wi=            wi
585 _wpi=           wpi
586 _wpifw=         wpifw
587 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
588 _zfs=           zfs
589 .endif
590 .endif
591
592 .if ${MACHINE_ARCH} == "ia64"
593 # Modules not enabled on ia64 (as compared to i386) include:
594 #       aac acpi aout apm atspeaker drm ibcs2 linprocfs linux ncv
595 #       nsp oltr pecoff s3 sbni stg vesa
596 # acpi is not enabled because it is broken as a module on ia64
597 _aic=           aic
598 #_ar=           ar      not 64-bit clean
599 _an=            an
600 _arcnet=        arcnet
601 _asr=           asr
602 _bktr=          bktr
603 _cardbus=       cardbus
604 _cbb=           cbb
605 _ciss=          ciss
606 _cm=            cm
607 _cmx=           cmx
608 _coff=          coff
609 _cpufreq=       cpufreq
610 _em=            em
611 _ep=            ep
612 _exca=          exca
613 _fe=            fe
614 _hfa=           hfa
615 _igb=           igb
616 _iir=           iir
617 _mly=           mly
618 _pccard=        pccard
619 _scsi_low=      scsi_low
620 _smbfs=         smbfs
621 _sound=         sound
622 _splash=        splash
623 _sppp=          sppp
624 #_sr=           sr              not 64bit clean
625 _streams=       streams
626 _wi=            wi
627 _xe=            xe
628 .endif
629
630 .if ${MACHINE_ARCH} == "powerpc"
631 _an=            an
632 _ath=           ath
633 _ath_hal=       ath_hal
634 _ath_rate_amrr= ath_rate_amrr
635 _ath_rate_onoe= ath_rate_onoe
636 _ath_rate_sample=ath_rate_sample
637 _nvram=         powermac_nvram
638 _smbfs=         smbfs
639 .endif
640
641 .if ${MACHINE_ARCH} == "sparc64"
642 _ath=           ath
643 _ath_hal=       ath_hal
644 _ath_rate_amrr= ath_rate_amrr
645 _ath_rate_onoe= ath_rate_onoe
646 _ath_rate_sample=ath_rate_sample
647 _auxio=         auxio
648 _em=            em
649 _i2c=           i2c
650 _igb=           igb
651 _sound=         sound
652 .if ${MK_ZFS} != "no" || defined(ALL_MODULES)
653 _zfs=           zfs
654 .endif
655 .endif
656
657 .if defined(MODULES_OVERRIDE) && !defined(ALL_MODULES)
658 SUBDIR=${MODULES_OVERRIDE}
659 .endif
660
661 .for reject in ${WITHOUT_MODULES}
662 SUBDIR:= ${SUBDIR:N${reject}}
663 .endfor
664
665 # Calling kldxref(8) for each module is expensive.
666 .if !defined(NO_XREF)
667 .MAKEFLAGS+=    -DNO_XREF
668 afterinstall:
669         @if type kldxref >/dev/null 2>&1; then \
670                 ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
671                 kldxref ${DESTDIR}${KMODDIR}; \
672         fi
673 .endif
674
675 .include <bsd.subdir.mk>