g12-common: Only build optee kernel module on targets that have TEE
authorBruno Martins <bgcngm@gmail.com>
Sat, 16 Dec 2023 22:33:50 +0000 (22:33 +0000)
committerBruno Martins <bgcngm@gmail.com>
Sat, 16 Dec 2023 22:33:50 +0000 (22:33 +0000)
Change-Id: Ib1f83634f23e1fb6c08aa3ee7248f6a90f793708

g12.mk

diff --git a/g12.mk b/g12.mk
index f782ee82d8d63d8c544f98e9be4d91307ceb7f0e..9a74ae980d68bf9dcb316406a8bf221079951334 100644 (file)
--- a/g12.mk
+++ b/g12.mk
@@ -99,8 +99,12 @@ PRODUCT_PACKAGES += \
 ## Kernel Modules
 PRODUCT_PACKAGES += \
     mali \
-    media \
+    media
+
+ifneq ($(TARGET_HAS_TEE),false)
+PRODUCT_PACKAGES += \
     optee-module
+endif
 
 ## Keymaster
 ifneq ($(TARGET_HAS_TEE),false)