aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJeenu Viswambharan <jeenu.viswambharan@arm.com>2014-02-19 09:38:18 +0000
committerDan Handley <dan.handley@arm.com>2014-02-20 19:06:34 +0000
commit2f2cef46573cc55204e7873795b2c31fcc9f6216 (patch)
tree691d09c031331023e0bba502f9c328169ee2333b /tools
parent08c28d5385f8fae3d5c61475a109b86ef11770d0 (diff)
downloadarm-trusted-firmware-2f2cef46573cc55204e7873795b2c31fcc9f6216.tar.gz
Cleanup FIP build targets and messages
At present the fip.bin depends on phony targets for BL images, resulting in unconditional remake of fip.bin. Also the build messages doesn't match with the rest of build system. This patch modifies the fip.bin dependencies to the actual BL binary images so that fip.bin is remade only when the component images are rebuilt/modified. The build messages and FIP Makefile are modified to match the style of rest of the build system. Change-Id: I8dd08666ff766d106820a5b4b037c2161bcf140f
Diffstat (limited to 'tools')
-rw-r--r--tools/fip_create/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/fip_create/Makefile b/tools/fip_create/Makefile
index 14e46d3..69569a1 100644
--- a/tools/fip_create/Makefile
+++ b/tools/fip_create/Makefile
@@ -32,7 +32,7 @@ PROJECT = fip_create
OBJECTS = fip_create.o
CFLAGS = -Wall -Werror -pedantic -std=c99
-ifeq ($(BUILD),DEBUG)
+ifeq (${DEBUG},1)
CFLAGS += -g -O0 -DDEBUG
else
CFLAGS += -O2
@@ -47,16 +47,16 @@ RM := rm -rf
.PHONY: all clean
-all: $(PROJECT)
+all: ${PROJECT}
-$(PROJECT): $(OBJECTS) Makefile
- @echo "[LD] $@"
- $(CC) $(OBJECTS) -o $@
+${PROJECT}: ${OBJECTS} Makefile
+ @echo " LD $@"
+ ${Q}${CC} ${OBJECTS} -o $@
%.o: %.c %.h Makefile
- @echo "[CC] $@"
- $(CC) -c $(CFLAGS) $(INCLUDE_PATHS) $< -o $@
+ @echo " CC $<"
+ ${Q}${CC} -c ${CFLAGS} ${INCLUDE_PATHS} $< -o $@
clean:
- $(RM) $(PROJECT)
- $(RM) $(OBJECTS)
+ ${Q}${RM} ${PROJECT}
+ ${Q}${RM} ${OBJECTS}