Put building of drm and drm2 modules behind options.

Make the building of drm dependent on MK_MODULE_DRM and the building
of module drm2 on MK_MODULE_DRM2. The defaults are unchanged.

Approved by: re@ (gjb)
Differential Review: https://reviews.freebsd.org/D16894
This commit is contained in:
Warner Losh 2018-08-28 14:46:49 +00:00
parent fd239e7ff8
commit c0386fa3af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338347
6 changed files with 19 additions and 0 deletions

View file

@ -38,6 +38,8 @@ __DEFAULT_YES_OPTIONS = \
IPSEC_SUPPORT \
ISCSI \
KERNEL_SYMBOLS \
MODULE_DRM \
MODULE_DRM2 \
NETGRAPH \
PF \
SOURCELESS_HOST \

View file

@ -583,8 +583,12 @@ _cpuctl= cpuctl
_cpufreq= cpufreq
_cs= cs
_dpms= dpms
.if ${MK_MODULE_DRM} != "no"
_drm= drm
.endif
.if ${MK_MODULE_DRM2} != "no"
_drm2= drm2
.endif
_ed= ed
_em= em
_ena= ena
@ -781,7 +785,9 @@ _cardbus= cardbus
_cbb= cbb
_cfi= cfi
_cpufreq= cpufreq
.if ${MK_MODULE_DRM} != "no"
_drm= drm
.endif
_exca= exca
_ffec= ffec
_nvd= nvd
@ -791,7 +797,9 @@ _wi= wi
.endif
.if ${MACHINE_ARCH} == "powerpc64"
.if ${MK_MODULE_DRM2} != "no"
_drm2= drm2
.endif
_ipmi= ipmi
.endif
.if ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "powerpc"

View file

@ -0,0 +1,3 @@
.\" $FreeBSD$
Disable creation of old drm video modules.

View file

@ -0,0 +1,2 @@
.\" $FreeBSD$
Disable creation of old drm2 video modules.

View file

@ -0,0 +1,2 @@
.\" $FreeBSD$
Enable creation of old drm video modules.

View file

@ -0,0 +1,2 @@
.\" $FreeBSD$
Enable creation of old drm2 video modules.