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>
Mon, 18 Dec 2023 10:28:24 +0000 (10:28 +0000)
Change-Id: Ib1f83634f23e1fb6c08aa3ee7248f6a90f793708

g12.mk

diff --git a/g12.mk b/g12.mk
index a9cd7f324fc15cceea4656fca0da15a97376e47a..f1f6f1726430bfabbbc9a0e6d984480ff2109268 100644 (file)
--- a/g12.mk
+++ b/g12.mk
@@ -100,8 +100,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)