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