summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDietmar Eggemann <dietmar.eggemann@arm.com>2012-05-15 11:32:49 +0100
committerDietmar Eggemann <dietmar.eggemann@arm.com>2012-05-23 12:44:36 +0100
commiteeb76389078171814ed83f0b544cbe016e61d882 (patch)
tree81c9b5e30a9307ea7c33ff819e995f7a7b33852a
parent22b66a6d06a870e09e8535600505cd26dd0e0f86 (diff)
downloadswitcher-eeb76389078171814ed83f0b544cbe016e61d882.tar.gz
Enforce supported cluster setup during build process.
The current Virtualizer only supports configurations where the BOOT_CLUSTER is different than the HOST_CLUSTER. Enforce this in the build process. Signed-off-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
-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)