summaryrefslogtreecommitdiff
path: root/tools/fiptool
diff options
context:
space:
mode:
authordp-arm <dimitris.papastamos@arm.com>2017-05-02 11:09:11 +0100
committerdp-arm <dimitris.papastamos@arm.com>2017-05-24 14:24:49 +0100
commit72610c4102990d4f17bd654acad9a415733f795b (patch)
tree41e915c7f30006b248434119f70cdc05d26c130e /tools/fiptool
parent344af65608262b9ee9d71617c5f5e087c82bd7c4 (diff)
build: Introduce HOSTCC flag
Tools are built using the compiler specified in `HOSTCC` instead of reusing the `CC` variable. By default, gcc is used. Change-Id: I83636a375c61f4804b4e80784db9d061fe20af87 Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
Diffstat (limited to 'tools/fiptool')
-rw-r--r--tools/fiptool/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/fiptool/Makefile b/tools/fiptool/Makefile
index 29eac2a7..ee674b7f 100644
--- a/tools/fiptool/Makefile
+++ b/tools/fiptool/Makefile
@@ -29,7 +29,7 @@ endif
INCLUDE_PATHS := -I. -I../../include/tools_share
-CC := gcc
+HOSTCC ?= gcc
.PHONY: all clean distclean
@@ -37,7 +37,7 @@ all: ${PROJECT} fip_create
${PROJECT}: ${OBJECTS} Makefile
@echo " LD $@"
- ${Q}${CC} ${OBJECTS} -o $@ ${LDLIBS}
+ ${Q}${HOSTCC} ${OBJECTS} -o $@ ${LDLIBS}
@${ECHO_BLANK_LINE}
@echo "Built $@ successfully"
@${ECHO_BLANK_LINE}
@@ -48,7 +48,7 @@ fip_create: fip_create.sh
%.o: %.c %.h Makefile
@echo " CC $<"
- ${Q}${CC} -c ${CPPFLAGS} ${CFLAGS} ${INCLUDE_PATHS} $< -o $@
+ ${Q}${HOSTCC} -c ${CPPFLAGS} ${CFLAGS} ${INCLUDE_PATHS} $< -o $@
clean:
$(call SHELL_DELETE_ALL, ${PROJECT} ${OBJECTS} fip_create)