diff options
author | Pali Rohár <pali@kernel.org> | 2020-11-23 19:19:04 +0100 |
---|---|---|
committer | Manish Pandey <manish.pandey2@arm.com> | 2020-12-07 11:05:04 +0000 |
commit | 13aa89562313a7029f9db76cbc8069bb8deebbd2 (patch) | |
tree | 9fe2db8043e02828d85ca0aaf121164e306bedfd /plat/marvell | |
parent | bdcd1bd0a58bb08cdf245c888329ba4db1eaab26 (diff) | |
download | trusted-firmware-a-13aa89562313a7029f9db76cbc8069bb8deebbd2.tar.gz |
plat: marvell: armada: a3k: Do not modify $(WTMI_MULTI_IMG)
Rather create a temporary copy in $(BUILD_PLAT) and modify only copy.
Signed-off-by: Pali Rohár <pali@kernel.org>
Change-Id: I256c029106ea6f69faa086fc4e5bee9f68cd257f
Diffstat (limited to 'plat/marvell')
-rw-r--r-- | plat/marvell/armada/a3k/common/a3700_common.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plat/marvell/armada/a3k/common/a3700_common.mk b/plat/marvell/armada/a3k/common/a3700_common.mk index 9f7dc2c67b..294f9dd07d 100644 --- a/plat/marvell/armada/a3k/common/a3700_common.mk +++ b/plat/marvell/armada/a3k/common/a3700_common.mk @@ -156,8 +156,9 @@ ifeq ($(MARVELL_SECURE_BOOT),1) @echo -e "\n\t=======================================================\n"; @echo -e "\t Secure boot. Encrypting wtmi and boot-image \n"; @echo -e "\t=======================================================\n"; - @truncate -s %16 $(WTMI_MULTI_IMG) - @openssl enc -aes-256-cbc -e -in $(WTMI_MULTI_IMG) \ + @cp $(WTMI_MULTI_IMG) $(BUILD_PLAT)/wtmi-align.bin + @truncate -s %16 $(BUILD_PLAT)/wtmi-align.bin + @openssl enc -aes-256-cbc -e -in $(BUILD_PLAT)/wtmi-align.bin \ -out $(WTMI_ENC_IMG) \ -K `cat $(IMAGESPATH)/aes-256.txt` -nosalt \ -iv `cat $(IMAGESPATH)/iv.txt` -p |