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