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