diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2015-11-05 14:22:05 +0100 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2016-03-15 10:48:56 +0100 |
commit | 6fbac37e9018aa920ce0b0041aa6002cf3bcbc3d (patch) | |
tree | 4987e78a1d9744c310197f65793373d013fca3ea /core/tee/sub.mk | |
parent | adedf961c02183106c8ccc78725e33f8940bc78f (diff) |
Minimal OP-TEE without user TAs
Hide all user TA related code under CFG_WITH_USER_TA. When compiled
with:
CFG_WITH_USER_TA=n
CFG_CRYPTO=n
CFG_ENC_FS=n
CFG_SE_API=n
CFG_PCSC_PASSTHRU_READER_DRV=n
Skips building in static TA tests for features not enabled.
The size of OP-TEE is reduced to one third of its original size.
Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU xtest 1001)
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/tee/sub.mk')
-rw-r--r-- | core/tee/sub.mk | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/core/tee/sub.mk b/core/tee/sub.mk index 4b52f143..16358544 100644 --- a/core/tee/sub.mk +++ b/core/tee/sub.mk @@ -17,15 +17,18 @@ CFG_CRYPTO_PBKDF2 ?= y endif -srcs-y += tee_svc.c -cppflags-tee_svc.c-y += -DTEE_IMPL_VERSION=$(TEE_IMPL_VERSION) -srcs-y += tee_svc_cryp.c -srcs-y += tee_svc_storage.c srcs-y += tee_cryp_utl.c srcs-$(CFG_CRYPTO_HKDF) += tee_cryp_hkdf.c srcs-$(CFG_CRYPTO_CONCAT_KDF) += tee_cryp_concat_kdf.c srcs-$(CFG_CRYPTO_PBKDF2) += tee_cryp_pbkdf2.c +ifeq ($(CFG_WITH_USER_TA),y) + +srcs-y += tee_svc.c +cppflags-tee_svc.c-y += -DTEE_IMPL_VERSION=$(TEE_IMPL_VERSION) +srcs-y += tee_svc_cryp.c +srcs-y += tee_svc_storage.c + ifeq (y,$(CFG_RPMB_FS)) srcs-y += tee_rpmb_fs_common.c srcs-y += tee_rpmb_fs.c @@ -39,4 +42,6 @@ srcs-y += tee_obj.c srcs-y += tee_pobj.c srcs-y += tee_time_generic.c -subdirs-${CFG_SE_API} += se +endif #CFG_WITH_USER_TA,y + +subdirs-$(CFG_SE_API) += se |