OPTEE_TEST_DEPENDENCIES = optee-client optee-os
-ifeq ($(BR2_aarch64),y)
-OPTEE_TEST_SDK = $(STAGING_DIR)/lib/optee/export-ta_arm64
-else ifeq ($(BR2_arm),y)
-OPTEE_TEST_SDK = $(STAGING_DIR)/lib/optee/export-ta_arm32
-endif
-OPTEE_TEST_CONF_OPTS = -DOPTEE_TEST_SDK=$(OPTEE_TEST_SDK)
+OPTEE_TEST_CONF_OPTS = -DOPTEE_TEST_SDK=$(OPTEE_OS_SDK)
# Trusted Application are not built from CMake due to ta_dev_kit
# dependencies. We must build and install them on target.
$(foreach f,$(wildcard $(@D)/ta/*/Makefile), \
$(TARGET_CONFIGURE_OPTS) \
$(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
- TA_DEV_KIT_DIR=$(OPTEE_TEST_SDK) \
+ TA_DEV_KIT_DIR=$(OPTEE_OS_SDK) \
-C $(dir $f) all
)
endef