[Mesa-dev] [PATCH] android: radeonsi: fix sid_table.h generated header include path

Nicolai Hähnle nhaehnle at gmail.com
Wed Feb 8 09:14:38 UTC 2017


On 08.02.2017 08:14, Mauro Rossi wrote:
> 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.

Acked-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

> ---
>  src/gallium/drivers/radeonsi/Android.mk | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeonsi/Android.mk b/src/gallium/drivers/radeonsi/Android.mk
> index d8bc990..d1e323a 100644
> --- a/src/gallium/drivers/radeonsi/Android.mk
> +++ b/src/gallium/drivers/radeonsi/Android.mk
> @@ -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
>



More information about the mesa-dev mailing list