bifrost: Add missing EXTRA_FLAGS to Android.mk
authorVitaliy Tomin <highwaystar.ru@gmail.com>
Tue, 3 May 2022 00:46:12 +0000 (08:46 +0800)
committerNolen Johnson <johnsonnolen@gmail.com>
Fri, 2 Dec 2022 23:07:15 +0000 (18:07 -0500)
* it is set in gpu-v2.mk, but missing in Android.mk
* fixes kernel issues like:
 [  113.437969@0]d WARNING: CPU: 0 PID: 3478 at drivers/dma-buf/dma-buf.c:584 dma_buf_unmap_attachment+0x6c/0x7

Change-Id: Ie880908fd69d3cee80043a18e7d93477f3978bdf

Android.mk

index ec2dbd4fb0777d8e583e02bedb5f0ca136508247..36c5a1364cd7213f9e0ba0fc6c0fff0d4eb2370b 100644 (file)
@@ -40,7 +40,7 @@ LOCAL_C_INCLUDES    := \
 _mali_intermediates := $(call intermediates-dir-for,$(LOCAL_MODULE_CLASS),$(LOCAL_MODULE))
 _mali_ko := $(_mali_intermediates)/$(LOCAL_MODULE)$(LOCAL_MODULE_SUFFIX)
 KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ
-GPU_CFLAGS := $(LOCAL_CFLAGS) $(addprefix -I,$(LOCAL_C_INCLUDES))
+GPU_CFLAGS := $(LOCAL_CFLAGS) $(addprefix -I,$(LOCAL_C_INCLUDES)) -DCONFIG_MALI_PLATFORM_DEVICETREE -DCONFIG_MALI_MIDGARD_DVFS -DCONFIG_MALI_BACKEND=gpu -DCONFIG_MALI_DMA_BUF_MAP_ON_DEMAND=1 -DCONFIG_MALI_DMA_BUF_LEGACY_COMPAT=0
 
 $(_mali_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NAME)
        @mkdir -p $(dir $@)