From bdcd1bd0a58bb08cdf245c888329ba4db1eaab26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Mon, 23 Nov 2020 19:14:40 +0100 Subject: [PATCH] plat: marvell: armada: a3k: Do not modify $(WTMI_IMG) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $(WTMI_IMG) is used only by $(MAKE) subprocess in $(DOIMAGEPATH) directory. So calling truncate on $(WTMI_IMG) after $(MAKE) in $(DOIMAGEPATH) has no effect and can just damage input file for future usage. Therefore remove this truncate call. Signed-off-by: Pali Rohár Change-Id: I9925c54c5d3d10eadc19825c5565ad4598a739a7 --- plat/marvell/armada/a3k/common/a3700_common.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/plat/marvell/armada/a3k/common/a3700_common.mk b/plat/marvell/armada/a3k/common/a3700_common.mk index 5e2f8e299..9f7dc2c67 100644 --- a/plat/marvell/armada/a3k/common/a3700_common.mk +++ b/plat/marvell/armada/a3k/common/a3700_common.mk @@ -128,7 +128,6 @@ $(DOIMAGETOOL): mrvl_flash: ${BUILD_PLAT}/${BOOT_IMAGE} ${DOIMAGETOOL} $(if $(value MV_DDR_PATH),,$(error "Platform '${PLAT}' for target '$@' requires MV_DDR_PATH. Please set MV_DDR_PATH to point to the right directory")) ${Q}${MAKE} --no-print-directory -C ${DOIMAGEPATH} WTMI_IMG=$(WTMI_IMG) MV_DDR_PATH=$(MV_DDR_PATH) - $(shell truncate -s %4 $(WTMI_IMG)) @echo @echo "Building uart images" $(TIMBUILD) $(TIMBLDUARTARGS)