[Mesa-dev] [PATCH 3/8] android: anv: fix improper use of LOCAL_WHOLE_STATIC_LIBRARIES

Eric Engestrom eric at engestrom.ch
Tue Jun 25 21:15:35 UTC 2019


On Tuesday, 2019-06-25 18:08:29 +0800, Chih-Wei Huang wrote:
> The libmesa_anv_entrypoints and libmesa_genxml are dummy libraries.
> There is no reason to put them into LOCAL_WHOLE_STATIC_LIBRARIES.
> 
> Move libmesa_vulkan_util to the vulkan HAL which really needs it.
> 
> Signed-off-by: Chih-Wei Huang <cwhuang at linux.org.tw>
> ---
>  src/intel/Android.vulkan.mk | 18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/src/intel/Android.vulkan.mk b/src/intel/Android.vulkan.mk
> index 8d978c3..4fff842 100644
> --- a/src/intel/Android.vulkan.mk
> +++ b/src/intel/Android.vulkan.mk
> @@ -128,7 +128,7 @@ LOCAL_CFLAGS := -DGEN_VERSIONx10=70
>  
>  LOCAL_C_INCLUDES := $(ANV_INCLUDES)
>  
> -LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
> +LOCAL_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
>  
>  LOCAL_SHARED_LIBRARIES := $(ANV_SHARED_LIBRARIES)
>  LOCAL_HEADER_LIBRARIES += $(VULKAN_COMMON_HEADER_LIBRARIES)
> @@ -149,7 +149,7 @@ LOCAL_CFLAGS := -DGEN_VERSIONx10=75
>  
>  LOCAL_C_INCLUDES := $(ANV_INCLUDES)
>  
> -LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
> +LOCAL_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
>  
>  LOCAL_SHARED_LIBRARIES := $(ANV_SHARED_LIBRARIES)
>  LOCAL_HEADER_LIBRARIES += $(VULKAN_COMMON_HEADER_LIBRARIES)
> @@ -170,7 +170,7 @@ LOCAL_CFLAGS := -DGEN_VERSIONx10=80
>  
>  LOCAL_C_INCLUDES := $(ANV_INCLUDES)
>  
> -LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
> +LOCAL_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
>  
>  LOCAL_SHARED_LIBRARIES := $(ANV_SHARED_LIBRARIES)
>  LOCAL_HEADER_LIBRARIES += $(VULKAN_COMMON_HEADER_LIBRARIES)
> @@ -191,7 +191,7 @@ LOCAL_CFLAGS := -DGEN_VERSIONx10=90
>  
>  LOCAL_C_INCLUDES := $(ANV_INCLUDES)
>  
> -LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
> +LOCAL_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
>  
>  LOCAL_SHARED_LIBRARIES := $(ANV_SHARED_LIBRARIES)
>  LOCAL_HEADER_LIBRARIES += $(VULKAN_COMMON_HEADER_LIBRARIES)
> @@ -212,7 +212,7 @@ LOCAL_CFLAGS := -DGEN_VERSIONx10=100
>  
>  LOCAL_C_INCLUDES := $(ANV_INCLUDES)
>  
> -LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
> +LOCAL_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
>  
>  LOCAL_SHARED_LIBRARIES := $(ANV_SHARED_LIBRARIES)
>  LOCAL_HEADER_LIBRARIES += $(VULKAN_COMMON_HEADER_LIBRARIES)
> @@ -233,7 +233,7 @@ LOCAL_CFLAGS := -DGEN_VERSIONx10=110
>  
>  LOCAL_C_INCLUDES := $(ANV_INCLUDES)
>  
> -LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
> +LOCAL_STATIC_LIBRARIES := libmesa_anv_entrypoints libmesa_genxml
>  
>  LOCAL_SHARED_LIBRARIES := $(ANV_SHARED_LIBRARIES)
>  LOCAL_HEADER_LIBRARIES += $(VULKAN_COMMON_HEADER_LIBRARIES)
> @@ -257,7 +257,7 @@ LOCAL_C_INCLUDES := \
>  	$(ANV_INCLUDES) \
>  	$(MESA_TOP)/src/compiler
>  
> -LOCAL_WHOLE_STATIC_LIBRARIES := \
> +LOCAL_STATIC_LIBRARIES := \
>  	libmesa_anv_entrypoints \
>  	libmesa_genxml \
>  	libmesa_git_sha1 \
> @@ -326,14 +326,14 @@ LOCAL_WHOLE_STATIC_LIBRARIES := \
>  	libmesa_intel_common \
>  	libmesa_intel_dev \
>  	libmesa_vulkan_common \
> +	libmesa_vulkan_util \
>  	libmesa_anv_gen7 \
>  	libmesa_anv_gen75 \
>  	libmesa_anv_gen8 \
>  	libmesa_anv_gen9 \
>  	libmesa_anv_gen10 \
>  	libmesa_anv_gen11 \
> -	libmesa_intel_compiler \
> -	libmesa_anv_entrypoints
> +	libmesa_intel_compiler

This removal of libmesa_anv_entrypoints belongs in patch 6/8, right?

I don't have much knowledge of the way android.mk works, but this all
looks reasonable; series is
Acked-by: Eric Engestrom <eric.engestrom at intel.com>

>  
>  LOCAL_SHARED_LIBRARIES := $(ANV_SHARED_LIBRARIES) libz libsync liblog
>  LOCAL_HEADER_LIBRARIES += $(VULKAN_COMMON_HEADER_LIBRARIES)
> -- 
> 2.7.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list