xtest_1000.c: define TA_DIR in C file when __ANDROID__ is set
TA_DIR is defined in xtest_1000.c when not building for Android
whereas it is set in Android.mk when doing an Android build.
Move the Android definition to the C file for consistency.
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
[jf: reword commit text]
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
diff --git a/host/xtest/xtest_1000.c b/host/xtest/xtest_1000.c
index afadf3b..7b3956f 100644
--- a/host/xtest/xtest_1000.c
+++ b/host/xtest/xtest_1000.c
@@ -400,7 +400,11 @@
}
#ifndef TA_DIR
+# ifdef __ANDROID__
+#define TA_DIR "/system/lib/optee_armtz"
+# else
#define TA_DIR "/lib/optee_armtz"
+# endif
#endif
#ifndef TA_TEST_DIR