Allow g12b to opt-out of using this
authorNolen Johnson <johnsonnolen@gmail.com>
Mon, 22 Apr 2024 23:59:57 +0000 (19:59 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Mon, 22 Apr 2024 23:59:57 +0000 (19:59 -0400)
Change-Id: I551f9d57e4911b0db2c73f2b862f5d52b54357bf

Android.mk

index 67f112cd1175474e8ba3cf06b03d9e2938d98b6c..49d71dd0444103cf104c4688710b2b667e6a62bd 100644 (file)
@@ -15,6 +15,7 @@
 #
 
 ifneq ($(filter g12a g12b sm1 s4 sc2 t7,$(TARGET_AMLOGIC_SOC)),)
+ifneq ($(TARGET_USES_P_MODULES),true)
 LOCAL_PATH := $(call my-dir)
 
 ifeq ($(TARGET_PREBUILT_KERNEL),)
@@ -45,3 +46,4 @@ $(_optee_ko): $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(BOARD_KERNEL_IMAGE_NAME)
 include $(BUILD_SYSTEM)/base_rules.mk
 endif
 endif
+endif