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

Rob Herring robh at kernel.org
Sun Jan 31 13:32:12 PST 2016


On Sun, Jan 31, 2016 at 4:17 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 29 January 2016 at 20:52, Rob Herring <robh at kernel.org> wrote:
>> Define the DEFAULT_DRIVER_DIR for arm64 builds.
>>
>> Cc: Emil Velikov <emil.l.velikov at gmail.com>
> Reviewed-by: 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>
>> ---
>>  src/egl/Android.mk | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/src/egl/Android.mk b/src/egl/Android.mk
>> index ebd67af..ad902a0 100644
>> --- a/src/egl/Android.mk
>> +++ b/src/egl/Android.mk
>> @@ -44,6 +44,7 @@ LOCAL_CFLAGS := \
>>         -DHAVE_ANDROID_PLATFORM
>>
>>  ifeq ($(MESA_LOLLIPOP_BUILD),true)
>> +LOCAL_CFLAGS_arm64 := -DDEFAULT_DRIVER_DIR=\"/system/lib64/dri\"
>>  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\"
>
> Wondering if there isn't a generic "64bit systems CFLAGS" for Android
> that we can reused here ?

That would be nice or a dlopen that could figure this out. The result
is this or #ifdefs in the source code are littered throughout the
Android tree. But nothing like that exists that I've seen.

Rob


More information about the mesa-dev mailing list