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