android: radeonsi: fix sid_table.h generated header include path
authorMauro Rossi <issor.oruam@gmail.com>
Wed, 8 Feb 2017 07:14:05 +0000 (08:14 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 20 Feb 2017 16:23:13 +0000 (16:23 +0000)
generated-sources-dir-for macro replaces intermediates-dir-for
and LOCAL_MODULE_CLASS is defined as required by new macro,
in order to avoid the following building error:

external/mesa/src/gallium/drivers/radeonsi/si_debug.c:29:10: fatal error: 'sid_tables.h' file not found
         ^
1 error generated.

Fixes: 730574c58e8 ("android: ac/debug: move sid_tables.h generation and
IB decode to amd/common")
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Acked-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/drivers/radeonsi/Android.mk

index d8bc990de4bcf6724b3eb5c57900b9987b41e26e..b6f9e26fcccce7a1d679ff87c491e1e1450773cc 100644 (file)
@@ -32,9 +32,11 @@ LOCAL_SRC_FILES := $(C_SOURCES)
 
 LOCAL_CFLAGS += -DFORCE_BUILD_AMDGPU   # instructs LLVM to declare LLVMInitializeAMDGPU* functions
 
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+
 LOCAL_C_INCLUDES := \
        $(MESA_TOP)/src/amd/common \
-       $(call intermediates-dir-for,STATIC_LIBRARIES,libmesa_amd_common)/common
+       $(call generated-sources-dir-for,STATIC_LIBRARIES,libmesa_amd_common,,)/common
 
 LOCAL_SHARED_LIBRARIES := libdrm_radeon
 LOCAL_MODULE := libmesa_pipe_radeonsi