summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d02fc75ecd..df32bdfcb3 100644
--- a/Makefile
+++ b/Makefile
@@ -867,11 +867,18 @@ fip_create:
$(Q)cp $(srctree)/tools/fip_create/fip_create $(FIP_FOLDER)/
.PHONY: fip.bin
-fip.bin: tools prepare u-boot.bin fip_create
+fip.bin: tools prepare u-boot.bin bl301.bin fip_create
$(Q)cp u-boot.bin $(FIP_FOLDER_SOC)/bl33.bin
$(Q)$(FIP_FOLDER)/fip_create ${FIP_ARGS} $(FIP_FOLDER_SOC)/fip.bin
$(Q)$(FIP_FOLDER)/fip_create --dump $(FIP_FOLDER_SOC)/fip.bin
+.PHONY: bl301.bin
+bl301.bin:tools prepare
+ifneq ("$(wildcard $(srctree)/$(CPUDIR)/${SOC}/firmware/scp_task)", "")
+ $(Q)$(MAKE) -C $(srctree)/$(CPUDIR)/${SOC}/firmware/scp_task
+ $(Q)cp $(buildtree)/scp_task/bl301.bin $(FIP_FOLDER_SOC)/bl301.bin -f
+endif
+
.PHONY : boot.bin
boot.bin: fip.bin
$(Q)cat $(FIP_FOLDER_SOC)/bl2.package $(FIP_FOLDER_SOC)/fip.bin > $(FIP_FOLDER_SOC)/boot_new.bin