summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--big-little/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/big-little/Makefile b/big-little/Makefile
index 1718987..e866ba0 100644
--- a/big-little/Makefile
+++ b/big-little/Makefile
@@ -147,6 +147,11 @@ else
all: bl.axf bl_sec.axf
endif
+checkconf:
+ifeq ($(HOST_CLUSTER), $(BOOT_CLUSTER))
+ $(error Error: Recompile with Boot Cluster ($(BOOT_CLUSTER)) != Host Cluster ($(HOST_CLUSTER)). Refer to docs/01-Usage.txt for details)
+endif
+
clean:
@echo " CLEAN"
$(Q)rm -rf *.zi
@@ -173,7 +178,7 @@ dump:
@echo " CC $<"
$(Q)$(CC) $(CFLAGS) -c $< -o $@
-bl.axf: $(OBJS)
+bl.axf: checkconf $(OBJS)
$(Q)cat $(MAPFILE).template > $(MAPFILE)
$(Q)sed -i -e "s/HIBASE/${HIBASE}/g" $(MAPFILE)
@echo " LD $@"
@@ -219,7 +224,7 @@ secure_context.o: secure_context.c
@echo " CC $<"
$(Q)$(CC) $(SECURE_CFLAGS) -c $< -o $@
-bl_sec.axf: $(SECURE_OBJS)
+bl_sec.axf: checkconf $(SECURE_OBJS)
$(Q)cat $(SECURE_MAPFILE).template > $(SECURE_MAPFILE)
$(Q)sed -i -e "s/HIBASE/${HIBASE}/g" $(SECURE_MAPFILE)
$(Q)$(LD) $(SECURE_LDFLAGS) --symdefs=bl_sec_symdef.o $(SECURE_OBJS) -o $@ > $(SECURE_LISTFILE)