1subdirs-y += crypto 2subdirs-y += drivers 3subdirs-y += kernel 4subdirs-y += mm 5subdirs-y += pta 6subdirs-y += tee 7 8ifeq ($(CFG_WITH_USER_TA),y) 9gensrcs-y += ta_pub_key 10produce-ta_pub_key = ta_pub_key.c 11depends-ta_pub_key = $(TA_SIGN_KEY) scripts/pem_to_pub_c.py 12recipe-ta_pub_key = scripts/pem_to_pub_c.py --prefix ta_pub_key \ 13 --key $(TA_SIGN_KEY) --out $(sub-dir-out)/ta_pub_key.c 14 15gensrcs-y += ldelf 16produce-ldelf = ldelf_hex.c 17depends-ldelf = scripts/gen_ldelf_hex.py $(out-dir)/ldelf/ldelf.elf 18recipe-ldelf = scripts/gen_ldelf_hex.py --input $(out-dir)/ldelf/ldelf.elf \ 19 --output $(sub-dir-out)/ldelf_hex.c 20endif 21 22ifeq ($(CFG_WITH_USER_TA)-$(CFG_EARLY_TA),y-y) 23define process_early_ta 24early-ta-$1-uuid := $(firstword $(subst ., ,$(notdir $1))) 25gensrcs-y += early-ta-$1 26produce-early-ta-$1 = early_ta_$$(early-ta-$1-uuid).c 27depends-early-ta-$1 = $1 scripts/ta_bin_to_c.py 28recipe-early-ta-$1 = scripts/ta_bin_to_c.py --compress --ta $1 \ 29 --out $(sub-dir-out)/early_ta_$$(early-ta-$1-uuid).c 30endef 31$(foreach f, $(EARLY_TA_PATHS), $(eval $(call process_early_ta,$(f)))) 32$(foreach f, $(CFG_IN_TREE_EARLY_TAS), $(eval $(call \ 33 process_early_ta,$(out-dir)/ta/$(f).stripped.elf))) 34endif 35 36ifeq ($(CFG_EMBED_DTB),y) 37core-embed-fdt-dts = $(arch-dir)/dts/$(CFG_EMBED_DTB_SOURCE_FILE) 38core-embed-fdt-dtb = $(out-dir)/$(arch-dir)/dts/$(CFG_EMBED_DTB_SOURCE_FILE:.dts=.dtb) 39core-embed-fdt-c = $(out-dir)/$(arch-dir)/dts/$(CFG_EMBED_DTB_SOURCE_FILE:.dts=.c) 40gensrcs-y += embedded_secure_dtb 41produce-embedded_secure_dtb = arch/$(ARCH)/dts/$(CFG_EMBED_DTB_SOURCE_FILE:.dts=.c) 42depends-embedded_secure_dtb = $(core-embed-fdt-dtb) scripts/bin_to_c.py 43recipe-embedded_secure_dtb = scripts/bin_to_c.py \ 44 --bin $(core-embed-fdt-dtb) \ 45 --vname embedded_secure_dtb \ 46 --out $(core-embed-fdt-c) 47$(eval $(call gen-dtb-file,$(core-embed-fdt-dts),$(core-embed-fdt-dtb))) 48endif 49 50ifeq ($(CFG_SHOW_CONF_ON_BOOT),y) 51conf-mk-xz-base64 := $(sub-dir-out)/conf.mk.xz.base64 52cleanfiles += $(conf-mk-xz-base64) 53 54$(conf-mk-xz-base64): $(conf-mk-file) 55 @$(cmd-echo-silent) ' GEN $@' 56 $(q)tail +3 $< | xz | base64 -w 100 >$@ 57 58gensrcs-y += conf_str 59produce-conf_str = conf.mk.xz.base64.c 60depends-conf_str = $(conf-mk-xz-base64) 61recipe-conf_str = scripts/bin_to_c.py --text --bin $(conf-mk-xz-base64) \ 62 --out $(sub-dir-out)/conf.mk.xz.base64.c \ 63 --vname conf_str 64endif 65