summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/Makefile
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-08-21 07:21:01 +0400
committerDave Airlie <airlied@redhat.com>2009-08-21 08:20:38 +0400
commit50f153036c9d9e4ae1768d5ca9c2ad4184f7a0b7 (patch)
treef9e4946bd45ead837fa298713c77ac51374dd8e3 /drivers/gpu/drm/radeon/Makefile
parent759e4f83f418f4001e724042b4c0e408d615d9ec (diff)
downloadlinux-50f153036c9d9e4ae1768d5ca9c2ad4184f7a0b7.tar.xz
drm/radeon/kms: generate the safe register tables.
Previously we just made these offline and included them, but no reason we can't generate them at build time. TODO: add rs690 + r100/r200 when done. should we do rs480/rs690 no tcl version? Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/Makefile')
-rw-r--r--drivers/gpu/drm/radeon/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/Makefile b/drivers/gpu/drm/radeon/Makefile
index 013d38059943..8e1771889b4d 100644
--- a/drivers/gpu/drm/radeon/Makefile
+++ b/drivers/gpu/drm/radeon/Makefile
@@ -6,6 +6,21 @@ ccflags-y := -Iinclude/drm
radeon-y := radeon_drv.o radeon_cp.o radeon_state.o radeon_mem.o \
radeon_irq.o r300_cmdbuf.o r600_cp.o
+hostprogs-y := mkregtable
+
+quiet_cmd_mkregtable = MKREGTABLE $@
+ cmd_mkregtable = $(obj)/mkregtable $< > $@
+
+$(obj)/rv515_reg_safe.h: $(src)/reg_srcs/rv515 $(obj)/mkregtable
+ $(call if_changed,mkregtable)
+
+$(obj)/r300_reg_safe.h: $(src)/reg_srcs/r300 $(obj)/mkregtable
+ $(call if_changed,mkregtable)
+
+$(obj)/rv515.o: $(obj)/rv515_reg_safe.h
+
+$(obj)/r300.o: $(obj)/r300_reg_safe.h
+
radeon-$(CONFIG_DRM_RADEON_KMS) += radeon_device.o radeon_kms.o \
radeon_atombios.o radeon_agp.o atombios_crtc.o radeon_combios.o \
atom.o radeon_fence.o radeon_ttm.o radeon_object.o radeon_gart.o \