1subdirs-y += kernel 2subdirs-y += tee 3subdirs-y += drivers 4 5ifeq ($(CFG_WITH_USER_TA)-$(CFG_REE_FS_TA),y-y) 6gensrcs-y += ta_pub_key 7produce-ta_pub_key = ta_pub_key.c 8depends-ta_pub_key = $(TA_SIGN_KEY) scripts/pem_to_pub_c.py 9recipe-ta_pub_key = scripts/pem_to_pub_c.py --prefix ta_pub_key \ 10 --key $(TA_SIGN_KEY) --out $(sub-dir-out)/ta_pub_key.c 11cleanfiles += $(sub-dir-out)/ta_pub_key.c 12endif 13 14ifeq ($(CFG_WITH_USER_TA)-$(CFG_EARLY_TA),y-y) 15define process_early_ta 16early-ta-$1-uuid := $(firstword $(subst ., ,$(notdir $1))) 17gensrcs-y += early-ta-$1 18produce-early-ta-$1 = early_ta_$$(early-ta-$1-uuid).c 19depends-early-ta-$1 = $1 scripts/ta_bin_to_c.py 20recipe-early-ta-$1 = scripts/ta_bin_to_c.py --compress --ta $1 \ 21 --out $(sub-dir-out)/early_ta_$$(early-ta-$1-uuid).c 22cleanfiles += $(sub-dir-out)/early_ta_$$(early-ta-$1-uuid).c 23endef 24$(foreach f, $(EARLY_TA_PATHS), $(eval $(call process_early_ta,$(f)))) 25endif 26