summaryrefslogtreecommitdiff
path: root/linux-core/Makefile
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-08-11 10:47:00 +1000
committerDave Airlie <airlied@redhat.com>2008-08-11 10:47:00 +1000
commit280d415957c0af099c44aaecb69a06c68c86aebb (patch)
tree3ec0a2526b5d839e1f7031b6f17f3e632eb69585 /linux-core/Makefile
parent12e6a114cf9ebd0e1d8ccdbf9a7aef7c67e24b58 (diff)
drm: add OS_HAS_GEM option.
To build i915 driver pass OS_HAS_GEM=1 to make for now
Diffstat (limited to 'linux-core/Makefile')
-rw-r--r--linux-core/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-core/Makefile b/linux-core/Makefile
index 55dfb77c..4edec312 100644
--- a/linux-core/Makefile
+++ b/linux-core/Makefile
@@ -270,6 +270,10 @@ ifneq ($(PAGE_AGP),0)
EXTRA_CFLAGS += -DHAVE_PAGE_AGP
endif
+ifeq ($(OS_HAS_GEM), 1)
+EXTRA_CFLAGS += -DOS_HAS_GEM=1
+endif
+
# Start with all modules turned off.
CONFIG_DRM_GAMMA := n
CONFIG_DRM_TDFX := n
@@ -332,8 +336,10 @@ ifneq (,$(findstring i810,$(DRM_MODULES)))
CONFIG_DRM_I810 := m
endif
ifneq (,$(findstring i915,$(DRM_MODULES)))
+ifeq ($(OS_HAS_GEM), 1)
CONFIG_DRM_I915 := m
endif
+endif
GIT_REVISION := $(shell cd "$(DRMSRCDIR)" && git-describe --abbrev=17)
ifneq ($(GIT_REVISION),)