android: r600/eg: add support for tracing IBs after a hang.
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 4 Jun 2017 17:11:48 +0000 (19:11 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 15 Jun 2017 14:46:44 +0000 (15:46 +0100)
The rules to generate egd_tables.h are added in Android makefile

Fixes: f42fb00 "r600/eg: add support for tracing IBs after a hang."
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/drivers/r600/Android.mk

index 87f433dbaeb933024916058bea7e86460531f93a..fa62613d1deaad63b3ef1751f906c5041d9ff6a5 100644 (file)
@@ -39,6 +39,16 @@ endif
 LOCAL_SHARED_LIBRARIES := libdrm_radeon
 LOCAL_MODULE := libmesa_pipe_r600
 
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+intermediates := $(call local-generated-sources-dir)
+
+LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, $(R600_GENERATED_FILES))
+
+$(intermediates)/egd_tables.h: $(MESA_TOP)/src/gallium/drivers/r600/egd_tables.py $(MESA_TOP)/src/gallium/drivers/r600/evergreend.h
+       @mkdir -p $(dir $@)
+       @echo "Gen Header: $(PRIVATE_MODULE) <= $(notdir $(@))"
+       $(hide) $(MESA_PYTHON2) $(MESA_TOP)/src/gallium/drivers/r600/egd_tables.py $(MESA_TOP)/src/gallium/drivers/r600/evergreend.h > $@
+
 include $(GALLIUM_COMMON_MK)
 include $(BUILD_STATIC_LIBRARY)