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