Module Name:    src
Committed By:   riastradh
Date:           Wed Jul 24 02:04:01 UTC 2013

Modified Files:
        src/sys/modules/drm2 [riastradh-drm2]: Makefile

Log Message:
Define MTRR when building the drm2 module on x86.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.4 -r1.1.2.5 src/sys/modules/drm2/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/modules/drm2/Makefile
diff -u src/sys/modules/drm2/Makefile:1.1.2.4 src/sys/modules/drm2/Makefile:1.1.2.5
--- src/sys/modules/drm2/Makefile:1.1.2.4	Wed Jul 24 01:58:19 2013
+++ src/sys/modules/drm2/Makefile	Wed Jul 24 02:04:01 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.2.4 2013/07/24 01:58:19 riastradh Exp $
+# $NetBSD: Makefile,v 1.1.2.5 2013/07/24 02:04:01 riastradh Exp $
 
 .include "../Makefile.inc"
 
@@ -49,4 +49,8 @@ CPPFLAGS+=	-I${S}/external/bsd/drm2/dist
 CPPFLAGS+=	-I${S}/external/bsd/drm2/dist/include
 CPPFLAGS+=	-D__KERNEL__
 
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+CPPFLAGS+=	-DMTRR
+.endif
+
 .include <bsd.kmodule.mk>

Reply via email to