1b0104773SPascal Brandsubdirs-y += kernel 2b887bd8fSJens Wiklandersubdirs-y += crypto 3b0104773SPascal Brandsubdirs-y += tee 4b0104773SPascal Brandsubdirs-y += drivers 5fca1e9e4SJens Wiklander 6064663e8SJens Wiklanderifeq ($(CFG_WITH_USER_TA),y) 7fca1e9e4SJens Wiklandergensrcs-y += ta_pub_key 8fca1e9e4SJens Wiklanderproduce-ta_pub_key = ta_pub_key.c 9f147124eSJerome Forissierdepends-ta_pub_key = $(TA_SIGN_KEY) scripts/pem_to_pub_c.py 10fca1e9e4SJens Wiklanderrecipe-ta_pub_key = scripts/pem_to_pub_c.py --prefix ta_pub_key \ 11fca1e9e4SJens Wiklander --key $(TA_SIGN_KEY) --out $(sub-dir-out)/ta_pub_key.c 129ac870c9SJerome Forissiercleanfiles += $(sub-dir-out)/ta_pub_key.c 13ee664c19SJerome Forissierendif 14d0c63614SJerome Forissier 15d0c63614SJerome Forissierifeq ($(CFG_WITH_USER_TA)-$(CFG_EARLY_TA),y-y) 16d0c63614SJerome Forissierdefine process_early_ta 17d0c63614SJerome Forissierearly-ta-$1-uuid := $(firstword $(subst ., ,$(notdir $1))) 18d0c63614SJerome Forissiergensrcs-y += early-ta-$1 19d0c63614SJerome Forissierproduce-early-ta-$1 = early_ta_$$(early-ta-$1-uuid).c 20d0c63614SJerome Forissierdepends-early-ta-$1 = $1 scripts/ta_bin_to_c.py 21509a9802SJerome Forissierrecipe-early-ta-$1 = scripts/ta_bin_to_c.py --compress --ta $1 \ 22d0c63614SJerome Forissier --out $(sub-dir-out)/early_ta_$$(early-ta-$1-uuid).c 23d0c63614SJerome Forissiercleanfiles += $(sub-dir-out)/early_ta_$$(early-ta-$1-uuid).c 24d0c63614SJerome Forissierendef 25d0c63614SJerome Forissier$(foreach f, $(EARLY_TA_PATHS), $(eval $(call process_early_ta,$(f)))) 26*3638ea32SJens Wiklander$(foreach f, $(CFG_IN_TREE_EARLY_TAS), $(eval $(call \ 27*3638ea32SJens Wiklander process_early_ta,$(out-dir)/ta/$(f).stripped.elf))) 28d0c63614SJerome Forissierendif 29