aboutsummaryrefslogtreecommitdiff
path: root/plat/marvell/armada/a8k/common
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2020-11-23 19:45:28 +0100
committerManish Pandey <manish.pandey2@arm.com>2020-12-07 11:05:27 +0000
commite4bbd39c65656d46a112b4b645469cd6747469e5 (patch)
treebcb83e2bb4ab822e5ff143190193b53e4b743005 /plat/marvell/armada/a8k/common
parented9bae6ad5471c56182f4b16c4b9edcefec52c6a (diff)
downloadarm-trusted-firmware-e4bbd39c65656d46a112b4b645469cd6747469e5.tar.gz
plat: marvell: armada: Add missing FORCE, .PHONY and clean targets
FORCE target is used as a dependency for other file targets which needs to be always rebuilt. .PHONY target is standard Makefile target which specify non-file targets and therefore needs to be always rebuilt. Targets clean, realclean and distclean are .PHONY targets used to remove built files. Correctly set that mrvl_clean target is prerequisite for these clean targets to ensure that built files are removed. Finally this change with usage of FORCE target allows to remove mrvl_clean hack from the prerequisites of a8k ${DOIMAGETOOL} target which was used just to ensure that ${DOIMAGETOOL} is always rebuilt via make subprocess. Signed-off-by: Pali Rohár <pali@kernel.org> Change-Id: I2fa8971244b43f101d846fc433ef7b0b6f139c92
Diffstat (limited to 'plat/marvell/armada/a8k/common')
-rw-r--r--plat/marvell/armada/a8k/common/a8k_common.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/plat/marvell/armada/a8k/common/a8k_common.mk b/plat/marvell/armada/a8k/common/a8k_common.mk
index 58394a46f..cf1516a28 100644
--- a/plat/marvell/armada/a8k/common/a8k_common.mk
+++ b/plat/marvell/armada/a8k/common/a8k_common.mk
@@ -152,14 +152,20 @@ BLE_PATH ?= $(PLAT_COMMON_BASE)/ble
include ${BLE_PATH}/ble.mk
$(eval $(call MAKE_BL,e))
+clean realclean distclean: mrvl_clean
+
+.PHONY: mrvl_clean
mrvl_clean:
@echo " Doimage CLEAN"
${Q}${MAKE} PLAT=${PLAT} --no-print-directory -C ${DOIMAGEPATH} clean
-${DOIMAGETOOL}: mrvl_clean
+${DOIMAGETOOL}: FORCE
@$(DOIMAGE_LIBS_CHECK)
${Q}${MAKE} --no-print-directory -C ${DOIMAGEPATH}
+.PHONY: mrvl_flash
mrvl_flash: ${BUILD_PLAT}/${BOOT_IMAGE} ${DOIMAGETOOL}
${DOIMAGETOOL} ${DOIMAGE_FLAGS} ${BUILD_PLAT}/${BOOT_IMAGE} ${BUILD_PLAT}/${FLASH_IMAGE}
+.PHONY: FORCE
+FORCE:;