]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - optee/ti-optee-test.git/commitdiff
Android.mk: make xtest installed in the vendor partition
authorYongqin Liu <yongqin.liu@linaro.org>
Thu, 21 Jun 2018 14:09:15 +0000 (22:09 +0800)
committerJérôme Forissier <jerome.forissier@linaro.org>
Tue, 7 Aug 2018 09:33:43 +0000 (11:33 +0200)
and use ta libs in the vendor partition,
so that we could make optee work with Treble enabled builds too

Acked-by: Victor Chong <victor.chong@linaro.org>
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Android.mk
host/xtest/regression_1000.c

index ff3c35ca9f990625d2b5f750039ffa9b96f566d9..086f500d9718d51aa6b3391e52d42248cd63848f 100644 (file)
@@ -19,8 +19,11 @@ TA_DEV_KIT_DIR ?= ../invalid_include_path
 
 include $(CLEAR_VARS)
 LOCAL_MODULE := xtest
+LOCAL_VENDOR_MODULE := true
 LOCAL_SHARED_LIBRARIES := libteec
 
+TA_DIR ?= /vendor/lib/optee_armtz
+
 srcs := regression_1000.c
 
 ifeq ($(CFG_GP_SOCKETS),y)
@@ -97,6 +100,10 @@ LOCAL_CFLAGS += -pthread
 LOCAL_CFLAGS += -g3
 LOCAL_CFLAGS += -Wno-missing-field-initializers -Wno-format-zero-length
 
+ifneq ($(TA_DIR),)
+LOCAL_CFLAGS += -DTA_DIR=\"$(TA_DIR)\"
+endif
+
 ## $(OPTEE_BIN) is the path of tee.bin like
 ## out/target/product/hikey/optee/arm-plat-hikey/core/tee.bin
 ## it will be generated after build the optee_os with target BUILD_OPTEE_OS
index 06773ef54693c724347f58df25e251945ad72eeb..3cbe90cc0189f89f4b3f19ca061090003c9edb0c 100644 (file)
@@ -648,7 +648,7 @@ static void xtest_tee_test_1007(ADBG_Case_t *c)
 #ifdef CFG_SECSTOR_TA_MGMT_PTA
 #ifndef TA_DIR
 # ifdef __ANDROID__
-#define TA_DIR "/system/lib/optee_armtz"
+#define TA_DIR "/vendor/lib/optee_armtz"
 # else
 #define TA_DIR "/lib/optee_armtz"
 # endif