[Mesa-dev] [PATCH v2 3/4] Android: enable building on arm64

Chih-Wei Huang cwhuang at android-x86.org
Mon Feb 15 15:01:00 UTC 2016


2016-02-03 4:45 GMT+08:00 Rob Herring <robh at kernel.org>:
> Use the LOCAL_CFLAGS_{32/64} instead of arch specific variants to define
> the DEFAULT_DRIVER_DIR. This enables building for arm64.
>
> Cc: Emil Velikov <emil.l.velikov at gmail.com>
> Cc: Chih-Wei Huang <cwhuang at android-x86.org>
> Signed-off-by: Rob Herring <robh at kernel.org>
> ---
> v2:
> - Use LOCAL_CFLAGS_(32|64) instead of arch flags
>
>  src/egl/Android.mk | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/src/egl/Android.mk b/src/egl/Android.mk
> index ebd67af..cf71251 100644
> --- a/src/egl/Android.mk
> +++ b/src/egl/Android.mk
> @@ -44,9 +44,8 @@ LOCAL_CFLAGS := \
>         -DHAVE_ANDROID_PLATFORM
>
>  ifeq ($(MESA_LOLLIPOP_BUILD),true)
> -LOCAL_CFLAGS_arm := -DDEFAULT_DRIVER_DIR=\"/system/lib/dri\"
> -LOCAL_CFLAGS_x86 := -DDEFAULT_DRIVER_DIR=\"/system/lib/dri\"
> -LOCAL_CFLAGS_x86_64 := -DDEFAULT_DRIVER_DIR=\"/system/lib64/dri\"
> +LOCAL_CFLAGS_32 := -DDEFAULT_DRIVER_DIR=\"/system/lib/dri\"
> +LOCAL_CFLAGS_64 := -DDEFAULT_DRIVER_DIR=\"/system/lib64/dri\"
>  else
>  LOCAL_CFLAGS += -DDEFAULT_DRIVER_DIR=\"/system/lib/dri\"
>  endif
> --

Looks good to me.
Thank you!


-- 
Chih-Wei
Android-x86 project
http://www.android-x86.org


More information about the mesa-dev mailing list