summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Kim <brian.kim@hardkernel.com>2016-10-11 14:20:21 +0300
committerBrian Kim <brian.kim@hardkernel.com>2016-10-11 14:20:21 +0300
commitbafc655ee322fcaaf96a245a864ff5fef15ea1e8 (patch)
tree7c4adc308ae2c4f94d076ea761de631e7ff33f72
parent9dbda2c8fdfcd40161f7b717a98fcd6ac555f7b3 (diff)
downloadu-boot-bafc655ee322fcaaf96a245a864ff5fef15ea1e8.tar.xz
ODROID-C2: Add fip_create rebuild rule in Makefiles905_5.1.1_v2.4
Pre-built fip_create executable file is only for x86_64 host system. This patch re-builds fip_create elf file if build system is not x86_64 architecture. Change-Id: I1a8fbbd01e66c7be0873b82f0fe2b61226dc03c4 Signed-off-by: Brian Kim <brian.kim@hardkernel.com>
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d3ba1b0c5a..4cb6cde346 100644
--- a/Makefile
+++ b/Makefile
@@ -863,8 +863,14 @@ FIP_ARGS += --bl33 $(FIP_FOLDER_SOC)/bl33.bin
.PHONY: fip_create
fip_create:
+ $(Q)$(FIP_FOLDER)/fip_create > /dev/null 2>&1 && \
+ echo "Pre-built fip_create is valid" || \
+ echo "Re-build fip_create"
+ifneq ($$?, "0")
+ $(Q)rm -f $(FIP_FOLDER)/fip_create
$(Q)$(MAKE) -C $(srctree)/tools/fip_create/
$(Q)cp $(srctree)/tools/fip_create/fip_create $(FIP_FOLDER)/
+endif
.PHONY: fip.bin
fip.bin: tools prepare u-boot.bin bl301.bin fip_create