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