2019-07-24 14:00:39 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2023-04-19 06:41:18 +00:00
|
|
|
@@ -914,10 +914,6 @@ CRTTOOL ?= ${CRTTOOLPATH}/cert_create$
|
2021-10-11 10:43:55 +00:00
|
|
|
ENCTOOLPATH ?= tools/encrypt_fw
|
|
|
|
ENCTOOL ?= ${ENCTOOLPATH}/encrypt_fw${BIN_EXT}
|
2019-07-24 14:00:39 +00:00
|
|
|
|
|
|
|
-# Variables for use with Firmware Image Package
|
|
|
|
-FIPTOOLPATH ?= tools/fiptool
|
|
|
|
-FIPTOOL ?= ${FIPTOOLPATH}/fiptool${BIN_EXT}
|
|
|
|
-
|
2021-10-11 10:43:55 +00:00
|
|
|
# Variables for use with sptool
|
|
|
|
SPTOOLPATH ?= tools/sptool
|
|
|
|
SPTOOL ?= ${SPTOOLPATH}/sptool${BIN_EXT}
|
2023-04-19 06:41:18 +00:00
|
|
|
@@ -1322,13 +1318,6 @@ endif
|
2019-07-24 14:00:39 +00:00
|
|
|
clean:
|
|
|
|
@echo " CLEAN"
|
|
|
|
$(call SHELL_REMOVE_DIR,${BUILD_PLAT})
|
2021-10-11 10:43:55 +00:00
|
|
|
-ifdef UNIX_MK
|
2019-07-24 14:00:39 +00:00
|
|
|
- ${Q}${MAKE} --no-print-directory -C ${FIPTOOLPATH} clean
|
2021-10-11 10:43:55 +00:00
|
|
|
-else
|
|
|
|
-# Clear the MAKEFLAGS as we do not want
|
|
|
|
-# to pass the gnumake flags to nmake.
|
|
|
|
- ${Q}set MAKEFLAGS= && ${MSVC_NMAKE} /nologo /f ${FIPTOOLPATH}/Makefile.msvc FIPTOOLPATH=$(subst /,\,$(FIPTOOLPATH)) FIPTOOL=$(subst /,\,$(FIPTOOL)) clean
|
|
|
|
-endif
|
2019-07-24 14:00:39 +00:00
|
|
|
${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${CRTTOOLPATH} clean
|
2021-10-11 10:43:55 +00:00
|
|
|
${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${ENCTOOLPATH} clean
|
|
|
|
${Q}${MAKE} --no-print-directory -C ${ROMLIBPATH} clean
|
2023-04-19 06:41:18 +00:00
|
|
|
@@ -1337,13 +1326,6 @@ realclean distclean:
|
2019-07-24 14:00:39 +00:00
|
|
|
@echo " REALCLEAN"
|
|
|
|
$(call SHELL_REMOVE_DIR,${BUILD_BASE})
|
|
|
|
$(call SHELL_DELETE_ALL, ${CURDIR}/cscope.*)
|
2021-10-11 10:43:55 +00:00
|
|
|
-ifdef UNIX_MK
|
2019-07-24 14:00:39 +00:00
|
|
|
- ${Q}${MAKE} --no-print-directory -C ${FIPTOOLPATH} clean
|
2021-10-11 10:43:55 +00:00
|
|
|
-else
|
|
|
|
-# Clear the MAKEFLAGS as we do not want
|
|
|
|
-# to pass the gnumake flags to nmake.
|
|
|
|
- ${Q}set MAKEFLAGS= && ${MSVC_NMAKE} /nologo /f ${FIPTOOLPATH}/Makefile.msvc FIPTOOLPATH=$(subst /,\,$(FIPTOOLPATH)) FIPTOOL=$(subst /,\,$(FIPTOOL)) realclean
|
|
|
|
-endif
|
|
|
|
${Q}${MAKE} --no-print-directory -C ${SPTOOLPATH} clean
|
2019-07-24 14:00:39 +00:00
|
|
|
${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${CRTTOOLPATH} clean
|
2021-10-11 10:43:55 +00:00
|
|
|
${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${ENCTOOLPATH} realclean
|
2023-04-19 06:41:18 +00:00
|
|
|
@@ -1400,7 +1382,7 @@ certificates: ${CRT_DEPS} ${CRTTOOL}
|
2019-07-24 14:00:39 +00:00
|
|
|
@${ECHO_BLANK_LINE}
|
|
|
|
endif
|
|
|
|
|
|
|
|
-${BUILD_PLAT}/${FIP_NAME}: ${FIP_DEPS} ${FIPTOOL}
|
|
|
|
+${BUILD_PLAT}/${FIP_NAME}: ${FIP_DEPS}
|
2023-04-19 06:41:18 +00:00
|
|
|
$(eval ${CHECK_FIP_CMD})
|
|
|
|
${Q}${FIPTOOL} create ${FIP_ARGS} $@
|
|
|
|
${Q}${FIPTOOL} info $@
|
|
|
|
@@ -1417,7 +1399,7 @@ fwu_certificates: ${FWU_CRT_DEPS} ${CRTT
|
2019-07-24 14:00:39 +00:00
|
|
|
@${ECHO_BLANK_LINE}
|
|
|
|
endif
|
|
|
|
|
|
|
|
-${BUILD_PLAT}/${FWU_FIP_NAME}: ${FWU_FIP_DEPS} ${FIPTOOL}
|
|
|
|
+${BUILD_PLAT}/${FWU_FIP_NAME}: ${FWU_FIP_DEPS}
|
2023-04-19 06:41:18 +00:00
|
|
|
$(eval ${CHECK_FWU_FIP_CMD})
|
|
|
|
${Q}${FIPTOOL} create ${FWU_FIP_ARGS} $@
|
|
|
|
${Q}${FIPTOOL} info $@
|
|
|
|
@@ -1425,19 +1407,9 @@ ${BUILD_PLAT}/${FWU_FIP_NAME}: ${FWU_FIP
|
2019-07-24 14:00:39 +00:00
|
|
|
@echo "Built $@ successfully"
|
|
|
|
@${ECHO_BLANK_LINE}
|
|
|
|
|
|
|
|
-fiptool: ${FIPTOOL}
|
|
|
|
fip: ${BUILD_PLAT}/${FIP_NAME}
|
|
|
|
fwu_fip: ${BUILD_PLAT}/${FWU_FIP_NAME}
|
|
|
|
|
2023-04-19 06:41:18 +00:00
|
|
|
-${FIPTOOL}: FORCE
|
2021-10-11 10:43:55 +00:00
|
|
|
-ifdef UNIX_MK
|
|
|
|
- ${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" FIPTOOL=${FIPTOOL} --no-print-directory -C ${FIPTOOLPATH}
|
|
|
|
-else
|
|
|
|
-# Clear the MAKEFLAGS as we do not want
|
|
|
|
-# to pass the gnumake flags to nmake.
|
|
|
|
- ${Q}set MAKEFLAGS= && ${MSVC_NMAKE} /nologo /f ${FIPTOOLPATH}/Makefile.msvc FIPTOOLPATH=$(subst /,\,$(FIPTOOLPATH)) FIPTOOL=$(subst /,\,$(FIPTOOL))
|
|
|
|
-endif
|
2019-07-24 14:00:39 +00:00
|
|
|
-
|
2021-10-11 10:43:55 +00:00
|
|
|
sptool: ${SPTOOL}
|
2023-04-19 06:41:18 +00:00
|
|
|
${SPTOOL}: FORCE
|
|
|
|
${Q}${MAKE} CPPFLAGS="-DVERSION='\"${VERSION_STRING}\"'" SPTOOL=${SPTOOL} --no-print-directory -C ${SPTOOLPATH}
|
2019-07-24 14:00:39 +00:00
|
|
|
--- a/tools/fiptool/Makefile
|
|
|
|
+++ b/tools/fiptool/Makefile
|
2023-04-19 06:41:18 +00:00
|
|
|
@@ -48,7 +48,7 @@ all: ${PROJECT}
|
2019-07-24 14:00:39 +00:00
|
|
|
|
|
|
|
${PROJECT}: ${OBJECTS} Makefile
|
2021-10-11 10:43:55 +00:00
|
|
|
@echo " HOSTLD $@"
|
2019-07-24 14:00:39 +00:00
|
|
|
- ${Q}${HOSTCC} ${OBJECTS} -o $@ ${LDLIBS}
|
|
|
|
+ ${Q}${HOSTCC} ${OBJECTS} -o $@ ${LDLIBS} $(LDFLAGS)
|
|
|
|
@${ECHO_BLANK_LINE}
|
|
|
|
@echo "Built $@ successfully"
|
|
|
|
@${ECHO_BLANK_LINE}
|