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