File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ ENCTOOL ?= ${ENCTOOLPATH}/encrypt_fw$(.exe)
107107
108108# Variables for use with Firmware Image Package
109109FIPTOOLPATH ?= tools/fiptool
110- FIPTOOL ?= ${FIPTOOLPATH }/fiptool$( .exe )
110+ FIPTOOL ?= ${BUILD_PLAT }/fiptool${BIN_EXT}
111111
112112# Variables for use with sptool
113113SPTOOLPATH ?= tools/sptool
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ include ${MAKE_HELPERS_DIRECTORY}defaults.mk
1111include ${MAKE_HELPERS_DIRECTORY}toolchain.mk
1212
1313FIPTOOL ?= fiptool$(.exe )
14- PROJECT := $(notdir ${FIPTOOL})
15- OBJECTS := fiptool.o tbbr_config.o
14+ PROJECT := ${FIPTOOL}
15+ PROJECT_DIR := $(dir ${FIPTOOL})
16+ OBJECTS := ${PROJECT_DIR}/fiptool.o ${PROJECT_DIR}/tbbr_config.o
1617STATIC ?= 0
1718
1819override CPPFLAGS += -D_GNU_SOURCE -D_XOPEN_SOURCE=700
@@ -78,7 +79,7 @@ ${PROJECT}: ${OBJECTS} Makefile
7879 $(s ) echo " Built $@ successfully"
7980 $(s ) echo
8081
81- % .o : % .c Makefile
82+ ${PROJECT_DIR}/ % .o : % .c Makefile
8283 $(s ) echo " HOSTCC $<"
8384 $(q )$(host-cc ) -c ${CPPFLAGS} ${HOSTCCFLAGS} ${INCLUDE_PATHS} -MD -MP $< -o $@
8485
You can’t perform that action at this time.
0 commit comments