1subdirs-y += kernel 2subdirs-y += mm 3subdirs-y += crypto 4subdirs-y += tee 5subdirs-y += drivers 6 7ifeq ($(CFG_WITH_USER_TA),y) 8gensrcs-y += ta_pub_key 9produce-ta_pub_key = ta_pub_key.c 10depends-ta_pub_key = $(TA_SIGN_KEY) scripts/pem_to_pub_c.py 11recipe-ta_pub_key = scripts/pem_to_pub_c.py --prefix ta_pub_key \ 12 --key $(TA_SIGN_KEY) --out $(sub-dir-out)/ta_pub_key.c 13cleanfiles += $(sub-dir-out)/ta_pub_key.c 14endif 15 16ifeq ($(CFG_WITH_USER_TA)-$(CFG_EARLY_TA),y-y) 17define process_early_ta 18early-ta-$1-uuid := $(firstword $(subst ., ,$(notdir $1))) 19gensrcs-y += early-ta-$1 20produce-early-ta-$1 = early_ta_$$(early-ta-$1-uuid).c 21depends-early-ta-$1 = $1 scripts/ta_bin_to_c.py 22recipe-early-ta-$1 = scripts/ta_bin_to_c.py --compress --ta $1 \ 23 --out $(sub-dir-out)/early_ta_$$(early-ta-$1-uuid).c 24cleanfiles += $(sub-dir-out)/early_ta_$$(early-ta-$1-uuid).c 25endef 26$(foreach f, $(EARLY_TA_PATHS), $(eval $(call process_early_ta,$(f)))) 27$(foreach f, $(CFG_IN_TREE_EARLY_TAS), $(eval $(call \ 28 process_early_ta,$(out-dir)/ta/$(f).stripped.elf))) 29endif 30 31ifeq ($(CFG_EMBED_DTB),y) 32core-embed-fdt-dts = $(arch-dir)/dts/$(CFG_EMBED_DTB_SOURCE_FILE) 33core-embed-fdt-dtb = $(out-dir)/$(arch-dir)/dts/$(CFG_EMBED_DTB_SOURCE_FILE:.dts=.dtb) 34core-embed-fdt-c = $(out-dir)/$(arch-dir)/dts/$(CFG_EMBED_DTB_SOURCE_FILE:.dts=.c) 35gensrcs-y += embedded_secure_dtb 36cleanfiles += $(core-embed-fdt-c) 37produce-embedded_secure_dtb = arch/$(ARCH)/dts/$(CFG_EMBED_DTB_SOURCE_FILE:.dts=.c) 38depends-embedded_secure_dtb = $(core-embed-fdt-dtb) scripts/bin_to_c.py 39recipe-embedded_secure_dtb = scripts/bin_to_c.py \ 40 --bin $(core-embed-fdt-dtb) \ 41 --vname embedded_secure_dtb \ 42 --out $(core-embed-fdt-c) 43$(eval $(call gen-dtb-file,$(core-embed-fdt-dts),$(core-embed-fdt-dtb))) 44endif 45