summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-02-20 02:25:33 +0300
committerKhem Raj <raj.khem@gmail.com>2018-02-20 07:18:24 +0300
commit490ed055c30ad449489bbeea6a9f80864250e7bd (patch)
treec1ebe28d9ef499abda008465e7faa8f81393b1f2
parentf5d56e9886b24665ac1a9a78235dd8d9a6c43e16 (diff)
downloadu-boot-490ed055c30ad449489bbeea6a9f80864250e7bd.tar.xz
tools/fip_create: Use HOSTCC to compile
This helps with cross compiling u-boot Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--tools/fip_create/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/fip_create/Makefile b/tools/fip_create/Makefile
index 69569a1b2f..a065e469e7 100644
--- a/tools/fip_create/Makefile
+++ b/tools/fip_create/Makefile
@@ -42,7 +42,6 @@ endif
# could get pulled in from firmware tree.
INCLUDE_PATHS = -I.
-CC := gcc
RM := rm -rf
.PHONY: all clean
@@ -50,12 +49,12 @@ RM := rm -rf
all: ${PROJECT}
${PROJECT}: ${OBJECTS} Makefile
- @echo " LD $@"
- ${Q}${CC} ${OBJECTS} -o $@
+ @echo " HOSTLD $@"
+ ${Q}${HOSTCC} ${OBJECTS} -o $@
%.o: %.c %.h Makefile
- @echo " CC $<"
- ${Q}${CC} -c ${CFLAGS} ${INCLUDE_PATHS} $< -o $@
+ @echo " HOSTCC $<"
+ ${Q}${HOSTCC} -c ${CFLAGS} ${INCLUDE_PATHS} $< -o $@
clean:
${Q}${RM} ${PROJECT}