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