Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/modules/drm2 Move some drm2 module make goo int...
details: https://anonhg.NetBSD.org/src/rev/ce311d85d6ae
branches: riastradh-drm2
changeset: 788206:ce311d85d6ae
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:42:19 2013 +0000
description:
Move some drm2 module make goo into a drm2/Makefile.inc.
diffstat:
sys/modules/drm2/Makefile | 15 ++-------------
sys/modules/drm2/Makefile.inc | 15 +++++++++++++++
2 files changed, 17 insertions(+), 13 deletions(-)
diffs (48 lines):
diff -r 575fa8580e5e -r ce311d85d6ae sys/modules/drm2/Makefile
--- a/sys/modules/drm2/Makefile Wed Jul 24 02:41:58 2013 +0000
+++ b/sys/modules/drm2/Makefile Wed Jul 24 02:42:19 2013 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1.2.23 2013/07/24 02:41:58 riastradh Exp $
+# $NetBSD: Makefile,v 1.1.2.24 2013/07/24 02:42:19 riastradh Exp $
.include "../Makefile.inc"
+.include "Makefile.inc"
.PATH: ${S}/external/bsd/drm2/drm
.PATH: ${S}/external/bsd/drm2/linux
@@ -45,16 +46,4 @@
SRCS+= linux_idr.c
-CPPFLAGS+= -I${S}/external/bsd/drm2/include
-CPPFLAGS+= -I${S}/external/bsd/drm2/dist/uapi
-CPPFLAGS+= -I${S}/external/bsd/drm2/dist/include
-CPPFLAGS+= -D__KERNEL__
-
-# XXX Is this the right place to set this?
-CPPFLAGS+= -DDIAGNOSTIC
-
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
-CPPFLAGS+= -DMTRR
-.endif
-
.include <bsd.kmodule.mk>
diff -r 575fa8580e5e -r ce311d85d6ae sys/modules/drm2/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/drm2/Makefile.inc Wed Jul 24 02:42:19 2013 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile.inc,v 1.1.2.1 2013/07/24 02:42:19 riastradh Exp $
+
+# Common makefile cruft for drm2 code.
+
+CPPFLAGS+= -I${S}/external/bsd/drm2/include
+CPPFLAGS+= -I${S}/external/bsd/drm2/dist/uapi
+CPPFLAGS+= -I${S}/external/bsd/drm2/dist/include
+CPPFLAGS+= -D__KERNEL__
+
+# XXX Is this the right place to set this?
+CPPFLAGS+= -DDIAGNOSTIC
+
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+CPPFLAGS+= -DMTRR
+.endif
Home |
Main Index |
Thread Index |
Old Index