summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMauro Rossi <issor.oruam@gmail.com>2023-11-03 18:05:56 -0400
committerMauro Rossi <issor.oruam@gmail.com>2023-11-10 01:28:16 +0100
commit05fb6b9c7d768b95c75a1f6cd2885cb6e12dcb95 (patch)
tree4b95cf56d0e3fd91a0fe9eb41173369defae6807 /android
parent04ffef15da1903c7f2497e24d96f742e476b3e8d (diff)
Android.mk: be able to build radeonsi without llvm
Android.mk rules for radeonsi are updated according to commit 0a56417 "meson: be able to build radeonsi without llvm" cflag -DFORCE_BUILD_AMDGPU is required when building radeonsi with llvm support based on android-x86 downstream LLVM fork that follows the AOSP llvm build rules. Reviewed-by: Roman Stratiienko <r.stratiienko@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26049>
Diffstat (limited to 'android')
-rw-r--r--android/Android.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/android/Android.mk b/android/Android.mk
index d6e2b708446..809be3af29f 100644
--- a/android/Android.mk
+++ b/android/Android.mk
@@ -62,8 +62,11 @@ MESON_GEN_PKGCONFIGS += libdrm_intel:$(LIBDRM_VERSION)
endif
ifneq ($(filter radeonsi,$(BOARD_MESA3D_GALLIUM_DRIVERS)),)
-MESON_GEN_LLVM_STUB := true
+ifneq ($(MESON_GEN_LLVM_STUB),)
LOCAL_CFLAGS += -DFORCE_BUILD_AMDGPU # instructs LLVM to declare LLVMInitializeAMDGPU* functions
+# The flag is required for the Android-x86 LLVM port that follows the AOSP LLVM porting rules
+# https://osdn.net/projects/android-x86/scm/git/external-llvm-project
+endif
endif
ifneq ($(filter radeonsi amd,$(BOARD_MESA3D_GALLIUM_DRIVERS) $(BOARD_MESA3D_VULKAN_DRIVERS)),)