aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/kern.opts.mk2
-rw-r--r--sys/modules/Makefile8
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/conf/kern.opts.mk b/sys/conf/kern.opts.mk
index 31720088d7fde..0a229822607c1 100644
--- a/sys/conf/kern.opts.mk
+++ b/sys/conf/kern.opts.mk
@@ -38,6 +38,8 @@ __DEFAULT_YES_OPTIONS = \
IPSEC_SUPPORT \
ISCSI \
KERNEL_SYMBOLS \
+ MODULE_DRM \
+ MODULE_DRM2 \
NETGRAPH \
PF \
SOURCELESS_HOST \
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 59203a3946120..726144753c8bd 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -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"