From afa35ac5cbe5f9e89c4349d51ac120b1c7823277 Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Tue, 22 Dec 2015 13:26:51 +0100 Subject: [PATCH] android: add support for LLVM 3.7.0 for marshmallow The changes add support for LLVM 3.7.0 for marshmallow, while keeping support for LLVM 3.5.0 with lollipop. MESA_LLVM_VERSION_PATCH=0 is compatible with radeonsi build in lollipop-x86, since mesa 11.0 and newer do not check anymore for LLVM 3.5.2 This changes, combined with specific R600 patches for external/llvm, enable building gallium radeonsi driver in marshmallow-x86. The patch is applicable to 11.2.0devel, 11.1 and 11.0 branches. --- Android.common.mk | 2 +- src/gallium/Android.common.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Android.common.mk b/Android.common.mk index 69e2b0fca2e..f3c24588674 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -72,7 +72,7 @@ endif ifeq ($(MESA_ENABLE_LLVM),true) LOCAL_CFLAGS += \ - -DHAVE_LLVM=0x0305 -DMESA_LLVM_VERSION_PATCH=2 \ + -DHAVE_LLVM=0x030$(if $(filter 5,$(MESA_ANDROID_MAJOR_VERSION)),5,7) -DMESA_LLVM_VERSION_PATCH=0 \ -D__STDC_CONSTANT_MACROS \ -D__STDC_FORMAT_MACROS \ -D__STDC_LIMIT_MACROS diff --git a/src/gallium/Android.common.mk b/src/gallium/Android.common.mk index 7c6c7ac6820..757716f2156 100644 --- a/src/gallium/Android.common.mk +++ b/src/gallium/Android.common.mk @@ -34,7 +34,7 @@ LOCAL_C_INCLUDES += \ external/llvm/include \ external/llvm/device/include \ external/libcxx/include \ - external/elfutils/$(if $(filter true,$(MESA_LOLLIPOP_BUILD)),0.153/)libelf + external/elfutils/$(if $(filter 5,$(MESA_ANDROID_MAJOR_VERSION)),0.153/,src/)libelf endif include $(MESA_COMMON_MK) -- 2.11.0