From e8d34762558224bb76862425de965c47858f2afd Mon Sep 17 00:00:00 2001
From: Robert Noland <rnoland@2hip.net>
Date: Mon, 16 Mar 2009 01:07:15 -0500
Subject: FreeBSD: Set up the nouveau build infrastructure

disabled by default until the rest of the patches are in.
---
 bsd-core/nouveau/@        |  1 +
 bsd-core/nouveau/Makefile | 33 +++++++++++++++++++++++++++++++++
 bsd-core/nouveau/machine  |  1 +
 3 files changed, 35 insertions(+)
 create mode 120000 bsd-core/nouveau/@
 create mode 100644 bsd-core/nouveau/Makefile
 create mode 120000 bsd-core/nouveau/machine

(limited to 'bsd-core/nouveau')

diff --git a/bsd-core/nouveau/@ b/bsd-core/nouveau/@
new file mode 120000
index 00000000..8fd4e8f4
--- /dev/null
+++ b/bsd-core/nouveau/@
@@ -0,0 +1 @@
+/usr/src/sys
\ No newline at end of file
diff --git a/bsd-core/nouveau/Makefile b/bsd-core/nouveau/Makefile
new file mode 100644
index 00000000..b0d72c90
--- /dev/null
+++ b/bsd-core/nouveau/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+.PATH:	${.CURDIR}/..
+KMOD	= nouveau
+NO_MAN	= YES
+SRCS    = nouveau_drv.c nouveau_state.c nouveau_mem.c nouveau_object.c \
+	  nouveau_sgdma.c nouveau_fifo.c nouveau_notifier.c nouveau_dma.c \
+	  nouveau_irq.c nouveau_swmthd.c \
+	  nv04_timer.c \
+	  nv04_mc.c nv40_mc.c nv50_mc.c \
+	  nv04_fb.c nv10_fb.c nv40_fb.c \
+	  nv04_fifo.c nv10_fifo.c nv40_fifo.c nv50_fifo.c \
+	  nv04_graph.c nv10_graph.c nv20_graph.c \
+	  nv40_graph.c nv50_graph.c \
+	  nv04_instmem.c nv50_instmem.c
+#	  nouveau_bo.c nouveau_fence.c \
+SRCS   += device_if.h bus_if.h pci_if.h opt_drm.h
+CFLAGS += ${DEBUG_FLAGS} -I. -I..
+
+.if defined(DRM_DEBUG)
+DRM_DEBUG_OPT= "\#define DRM_DEBUG 1"
+.endif
+
+.if !defined(DRM_NOLINUX)
+DRM_LINUX_OPT= "\#define DRM_LINUX 1"
+.endif
+
+opt_drm.h:
+	touch opt_drm.h
+	echo $(DRM_DEBUG_OPT) >> opt_drm.h
+	echo $(DRM_LINUX_OPT) >> opt_drm.h
+
+.include <bsd.kmod.mk>
diff --git a/bsd-core/nouveau/machine b/bsd-core/nouveau/machine
new file mode 120000
index 00000000..f5ca0131
--- /dev/null
+++ b/bsd-core/nouveau/machine
@@ -0,0 +1 @@
+/usr/src/sys/amd64/include
\ No newline at end of file
-- 
cgit v1.2.3