summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoy Cho <joy.cho@hardkernel.com>2016-10-11 08:51:49 +0300
committerJoy Cho <joy.cho@hardkernel.com>2016-10-11 09:55:43 +0300
commit5b911c9f22734863161cc2db4ff0e9e779901ce6 (patch)
treecf364e0ad6a183a5cb27b469a403897484646e99
parent81fdaa71941e5d1c15bb8916276f37993f59d44a (diff)
downloadu-boot-5b911c9f22734863161cc2db4ff0e9e779901ce6.tar.xz
ODROID-C2: Adjust bl301 build option in Makefile
Change-Id: I92ccedf7848040b95c0b54d3e13e11d03f742088
-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