From 959bd67210871d09a7050a3c410087f2b6335df0 Mon Sep 17 00:00:00 2001 From: Herbert Xue Date: Fri, 13 Sep 2024 15:28:32 +0800 Subject: [PATCH] Control the modules built from vendor/google_devices/zumapro/prebuilts/gpu For PDK build, the "vendor/arm" path doesn't exist. The modules will be built from vendor/google_devices/zumapro/prebuilts/gpu. Flag: EXEMPT bugfix Bug: 364491703 Test: 1. lunch comet-trunk_staging-eng 2. m libGLES_mali vulkan.mali libOpenCL libgpudataproducer Change-Id: Ie58b2707fb9774f4a3552561b809c3c15d3803ef --- device.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/device.mk b/device.mk index 098092b..48f6c21 100644 --- a/device.mk +++ b/device.mk @@ -324,8 +324,14 @@ else TARGET_USES_VULKAN = true endif +# "vendor/arm" doesn't exist in PDK build +ifeq (,$(realpath $(TOPDIR)vendor/arm/mali/valhall/Android.bp)) +PRODUCT_SOONG_NAMESPACES += \ + vendor/google_devices/zumapro/prebuilts/gpu +else PRODUCT_SOONG_NAMESPACES += \ vendor/arm/mali/valhall +endif $(call soong_config_set,pixel_mali,soc,$(TARGET_BOARD_PLATFORM)) # TODO (b/297408842): The gralloc is being open-sourced, and we cannot pass