1include core/arch/arm/kernel/link.mk 2 3# Create BL32 image from the native binary images 4 5define aml_bin2img_cmd 6 @$(cmd-echo-silent) ' GEN $@' 7 $(q)./core/arch/arm/plat-amlogic/scripts/aml_bin2img.py 8endef 9 10ifneq (,$(filter $(PLATFORM_FLAVOR),axg)) 11all: $(link-out-dir)/bl32.img 12cleanfiles += $(link-out-dir)/bl32.img 13$(link-out-dir)/bl32.img: $(link-out-dir)/tee-pager_v2.bin 14 $(aml_bin2img_cmd) --source $< --dest $@ --entry 0x5300000 \ 15 --res_mem_start 0x5300000 --res_mem_size 0x1000000 \ 16 --sec_mem_start 0x5300000 --sec_mem_size 0xc00000 17endif 18