blob: 955045221d3653073b50429560f7186a47349e07 [file] [log] [blame]
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +03001#
Marek Behún5fd234e2021-01-07 21:52:44 +01002# Copyright (C) 2018-2021 Marvell International Ltd.
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +03003#
4# SPDX-License-Identifier: BSD-3-Clause
5# https://spdx.org/licenses
6#
7
Grzegorz Jaszczyk3039bce2019-11-05 13:14:59 +01008MARVELL_PLAT_BASE := plat/marvell/armada
9MARVELL_PLAT_INCLUDE_BASE := include/plat/marvell/armada
Marcin Wojtas45f16552020-06-18 19:50:47 +020010PLAT_FAMILY := a3k
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030011PLAT_FAMILY_BASE := $(MARVELL_PLAT_BASE)/$(PLAT_FAMILY)
12PLAT_INCLUDE_BASE := $(MARVELL_PLAT_INCLUDE_BASE)/$(PLAT_FAMILY)
13PLAT_COMMON_BASE := $(PLAT_FAMILY_BASE)/common
14MARVELL_DRV_BASE := drivers/marvell
15MARVELL_COMMON_BASE := $(MARVELL_PLAT_BASE)/common
Marek Behún011f8892021-08-26 17:29:45 +020016ERRATA_A53_1530924 := 1
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030017
Pali Rohár3666d482020-10-29 16:50:19 +010018include plat/marvell/marvell.mk
19
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030020#*********** A3700 *************
Pali Rohár8a936582020-10-15 13:50:28 +020021
22# GICV3
23$(eval $(call add_define,CONFIG_GICV3))
24
25# CCI-400
26$(eval $(call add_define,USE_CCI))
27
28# Include GICv3 driver files
29include drivers/arm/gic/v3/gicv3.mk
30
31MARVELL_GIC_SOURCES := ${GICV3_SOURCES} \
32 plat/common/plat_gicv3.c
33
34PLAT_INCLUDES := -I$(PLAT_FAMILY_BASE)/$(PLAT) \
35 -I$(PLAT_COMMON_BASE)/include \
36 -I$(PLAT_INCLUDE_BASE)/common \
37 -I$(MARVELL_DRV_BASE) \
38 -I$/drivers/arm/gic/common/
39
40PLAT_BL_COMMON_SOURCES := $(PLAT_COMMON_BASE)/aarch64/a3700_common.c \
Pali Rohár52c1de52021-05-14 15:52:11 +020041 $(PLAT_COMMON_BASE)/aarch64/a3700_clock.S \
Pali Rohár8a936582020-10-15 13:50:28 +020042 $(MARVELL_DRV_BASE)/uart/a3700_console.S
43
44BL1_SOURCES += $(PLAT_COMMON_BASE)/aarch64/plat_helpers.S \
45 lib/cpus/aarch64/cortex_a53.S
46
Pali Rohár8a936582020-10-15 13:50:28 +020047MARVELL_DRV := $(MARVELL_DRV_BASE)/comphy/phy-comphy-3700.c
48
49BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \
50 $(PLAT_COMMON_BASE)/aarch64/plat_helpers.S \
Marek Behún5fd234e2021-01-07 21:52:44 +010051 $(PLAT_COMMON_BASE)/plat_cci.c \
Pali Rohár8a936582020-10-15 13:50:28 +020052 $(PLAT_COMMON_BASE)/plat_pm.c \
53 $(PLAT_COMMON_BASE)/dram_win.c \
54 $(PLAT_COMMON_BASE)/io_addr_dec.c \
55 $(PLAT_COMMON_BASE)/marvell_plat_config.c \
Pali Rohár8a936582020-10-15 13:50:28 +020056 $(PLAT_FAMILY_BASE)/$(PLAT)/plat_bl31_setup.c \
Marek Behún5fd234e2021-01-07 21:52:44 +010057 $(MARVELL_COMMON_BASE)/marvell_cci.c \
Pali Rohár8a936582020-10-15 13:50:28 +020058 $(MARVELL_COMMON_BASE)/marvell_ddr_info.c \
59 $(MARVELL_COMMON_BASE)/marvell_gicv3.c \
60 $(MARVELL_GIC_SOURCES) \
61 drivers/arm/cci/cci.c \
Pali Rohár8a936582020-10-15 13:50:28 +020062 $(PLAT_COMMON_BASE)/a3700_sip_svc.c \
63 $(MARVELL_DRV)
64
Pali Rohár76f38492021-07-09 15:10:27 +020065ifeq ($(HANDLE_EA_EL3_FIRST),1)
66BL31_SOURCES += $(PLAT_COMMON_BASE)/a3700_ea.c
67endif
68
Marek Behún19d85782021-01-05 14:01:05 +010069ifeq ($(CM3_SYSTEM_RESET),1)
70BL31_SOURCES += $(PLAT_COMMON_BASE)/cm3_system_reset.c
71endif
72
Pali Roháre7704b02021-04-06 19:18:30 +020073ifeq ($(A3720_DB_PM_WAKEUP_SRC),1)
74BL31_SOURCES += $(PLAT_FAMILY_BASE)/$(PLAT)/board/pm_src.c
75endif
76
Pali Rohár0233cd42020-12-03 12:00:47 +010077ifdef WTP
Pali Rohár8a936582020-10-15 13:50:28 +020078
Pali Rohárd7c564d2021-01-26 10:44:07 +010079$(if $(wildcard $(value WTP)/*),,$(error "'WTP=$(value WTP)' was specified, but '$(value WTP)' directory does not exist"))
Pali Rohár111a0122021-07-07 12:14:20 +020080$(if $(shell git -C $(value WTP) rev-parse --show-cdup 2>&1),$(error "'WTP=$(value WTP)' was specified, but '$(value WTP)' does not contain valid A3700-utils-marvell git repository"))
Pali Rohárd7c564d2021-01-26 10:44:07 +010081
Pali Rohárcfdcfb72021-07-10 15:04:53 +020082TBB := $(WTP)/wtptp/src/TBB_Linux/release/TBB_linux
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030083
Pali Rohár7560d2c2021-01-26 10:44:07 +010084BUILD_UART := uart-images
Pali Rohár9e737b62021-01-26 10:44:07 +010085UART_IMAGE := $(BUILD_UART).tgz.bin
Pali Rohár7560d2c2021-01-26 10:44:07 +010086
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030087ifeq ($(MARVELL_SECURE_BOOT),1)
Pali Rohárfe84ac92021-07-11 14:46:49 +020088TIM_CFG := $(BUILD_PLAT)/atf-tim.txt
89TIM_UART_CFG := $(BUILD_PLAT)/$(BUILD_UART)/atf-tim.txt
Pali Rohár05125982021-07-10 14:54:44 +020090IMAGESPATH := $(WTP)/tim/trusted
Pali Rohárfe84ac92021-07-11 14:46:49 +020091TIMN_CFG := $(BUILD_PLAT)/atf-timN.txt
92TIMN_UART_CFG := $(BUILD_PLAT)/$(BUILD_UART)/atf-timN.txt
93TIMN_SIG := $(IMAGESPATH)/timnsign.txt
94TIM2IMGARGS := -i $(TIM_CFG) -n $(TIMN_CFG)
Pali Rohár5ac6c662021-07-11 17:33:37 +020095TIMN_UART_IMAGE := $$(grep "Image Filename:" -m 1 $(TIMN_UART_CFG) | cut -c 17-)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030096else #MARVELL_SECURE_BOOT
Pali Rohárfe84ac92021-07-11 14:46:49 +020097TIM_CFG := $(BUILD_PLAT)/atf-ntim.txt
98TIM_UART_CFG := $(BUILD_PLAT)/$(BUILD_UART)/atf-ntim.txt
Pali Rohár05125982021-07-10 14:54:44 +020099IMAGESPATH := $(WTP)/tim/untrusted
Pali Rohárfe84ac92021-07-11 14:46:49 +0200100TIM2IMGARGS := -i $(TIM_CFG)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300101endif #MARVELL_SECURE_BOOT
102
Pali Rohár5ac6c662021-07-11 17:33:37 +0200103TIM_UART_IMAGE := $$(grep "Image Filename:" -m 1 $(TIM_UART_CFG) | cut -c 17-)
104
Pali Rohár05125982021-07-10 14:54:44 +0200105TIMBUILD := $(WTP)/script/buildtim.sh
106TIM2IMG := $(WTP)/script/tim2img.pl
107TIMDDRTOOL := $(WTP)/tim/ddr/ddr_tool
Pali Rohára6ac1fb2020-11-23 19:49:23 +0100108
109$(TIMBUILD): $(TIMDDRTOOL)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300110
111# WTMI_IMG is used to specify the customized RTOS image running over
112# Service CPU (CM3 processor). By the default, it points to a
113# baremetal binary of fuse programming in A3700_utils.
Pali Rohár05125982021-07-10 14:54:44 +0200114WTMI_IMG := $(WTP)/wtmi/fuse/build/fuse.bin
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300115
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300116# WTMI_MULTI_IMG is composed of CM3 RTOS image (WTMI_IMG)
Pali Rohár8b42da02021-01-26 11:10:17 +0100117# and sys-init image.
Pali Rohár05125982021-07-10 14:54:44 +0200118WTMI_MULTI_IMG := $(WTP)/wtmi/build/wtmi.bin
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300119
Pali Rohárb4831d02021-01-26 10:44:07 +0100120WTMI_ENC_IMG := wtmi-enc.bin
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300121
122SRCPATH := $(dir $(BL33))
123
124CLOCKSPRESET ?= CPU_800_DDR_800
125
126DDR_TOPOLOGY ?= 0
127
128BOOTDEV ?= SPINOR
129PARTNUM ?= 0
130
Pali Rohár05125982021-07-10 14:54:44 +0200131TIMBLDARGS := $(MARVELL_SECURE_BOOT) $(BOOTDEV) $(IMAGESPATH) $(WTP) $(CLOCKSPRESET) \
Pali Rohárfe84ac92021-07-11 14:46:49 +0200132 $(DDR_TOPOLOGY) $(PARTNUM) $(DEBUG) $(TIM_CFG) $(TIMN_CFG) $(TIMN_SIG) 1
Pali Rohár05125982021-07-10 14:54:44 +0200133TIMBLDUARTARGS := $(MARVELL_SECURE_BOOT) UART $(IMAGESPATH) $(WTP) $(CLOCKSPRESET) \
Pali Rohárfe84ac92021-07-11 14:46:49 +0200134 $(DDR_TOPOLOGY) 0 0 $(TIM_UART_CFG) $(TIMN_UART_CFG) $(TIMN_SIG) 0
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300135
Pali Rohár5ac6c662021-07-11 17:33:37 +0200136UART_IMAGES := $(BUILD_UART)/$(TIM_UART_IMAGE)
137ifeq ($(MARVELL_SECURE_BOOT),1)
138UART_IMAGES += $(BUILD_UART)/$(TIMN_UART_IMAGE)
139endif
140UART_IMAGES += $(BUILD_UART)/wtmi_h.bin $(BUILD_UART)/boot-image_h.bin
141
Pali Rohára304cf52021-01-26 10:44:07 +0100142CRYPTOPP_LIBDIR ?= $(CRYPTOPP_PATH)
143CRYPTOPP_INCDIR ?= $(CRYPTOPP_PATH)
144
Pali Rohárcfdcfb72021-07-10 15:04:53 +0200145$(TBB): FORCE
Pali Rohára304cf52021-01-26 10:44:07 +0100146 $(if $(CRYPTOPP_LIBDIR),,$(error "Platform '$(PLAT)' for WTP image tool requires CRYPTOPP_PATH or CRYPTOPP_LIBDIR. Please set CRYPTOPP_PATH or CRYPTOPP_LIBDIR to point to the right directory"))
147 $(if $(CRYPTOPP_INCDIR),,$(error "Platform '$(PLAT)' for WTP image tool requires CRYPTOPP_PATH or CRYPTOPP_INCDIR. Please set CRYPTOPP_PATH or CRYPTOPP_INCDIR to point to the right directory"))
148 $(if $(wildcard $(CRYPTOPP_LIBDIR)/*),,$(error "Either 'CRYPTOPP_PATH' or 'CRYPTOPP_LIB' was set to '$(CRYPTOPP_LIBDIR)', but '$(CRYPTOPP_LIBDIR)' does not exist"))
149 $(if $(wildcard $(CRYPTOPP_INCDIR)/*),,$(error "Either 'CRYPTOPP_PATH' or 'CRYPTOPP_INCDIR' was set to '$(CRYPTOPP_INCDIR)', but '$(CRYPTOPP_INCDIR)' does not exist"))
150ifdef CRYPTOPP_PATH
Pali Roháre3b81762020-10-29 16:44:45 +0100151 $(Q)$(MAKE) --no-print-directory -C $(CRYPTOPP_PATH) -f GNUmakefile
Pali Rohára304cf52021-01-26 10:44:07 +0100152endif
Pali Rohár05125982021-07-10 14:54:44 +0200153 $(Q)$(MAKE) --no-print-directory -C $(WTP)/wtptp/src/TBB_Linux -f TBB_linux.mak LIBDIR=$(CRYPTOPP_LIBDIR) INCDIR=$(CRYPTOPP_INCDIR)
Pali Roháre3b81762020-10-29 16:44:45 +0100154
Pali Rohára6ac1fb2020-11-23 19:49:23 +0100155$(WTMI_MULTI_IMG): FORCE
Pali Rohár05125982021-07-10 14:54:44 +0200156 $(Q)$(MAKE) --no-print-directory -C $(WTP) WTMI_IMG=$(WTMI_IMG) DDR_TOPOLOGY=$(DDR_TOPOLOGY) CLOCKSPRESET=$(CLOCKSPRESET) WTMI
Pali Rohára6ac1fb2020-11-23 19:49:23 +0100157
Pali Rohárb4831d02021-01-26 10:44:07 +0100158$(BUILD_PLAT)/wtmi.bin: $(WTMI_MULTI_IMG)
159 $(Q)cp -a $(WTMI_MULTI_IMG) $(BUILD_PLAT)/wtmi.bin
160
Pali Rohára6ac1fb2020-11-23 19:49:23 +0100161$(TIMDDRTOOL): FORCE
162 $(if $(value MV_DDR_PATH),,$(error "Platform '${PLAT}' for ddr tool requires MV_DDR_PATH. Please set MV_DDR_PATH to point to the right directory"))
Pali Rohárd7c564d2021-01-26 10:44:07 +0100163 $(if $(wildcard $(value MV_DDR_PATH)/*),,$(error "'MV_DDR_PATH=$(value MV_DDR_PATH)' was specified, but '$(value MV_DDR_PATH)' directory does not exist"))
Pali Rohár111a0122021-07-07 12:14:20 +0200164 $(if $(shell git -C $(value MV_DDR_PATH) rev-parse --show-cdup 2>&1),$(error "'MV_DDR_PATH=$(value MV_DDR_PATH)' was specified, but '$(value MV_DDR_PATH)' does not contain valid mv-ddr-marvell git repository"))
Pali Rohár05125982021-07-10 14:54:44 +0200165 $(Q)$(MAKE) --no-print-directory -C $(WTP) MV_DDR_PATH=$(MV_DDR_PATH) DDR_TOPOLOGY=$(DDR_TOPOLOGY) mv_ddr
Pali Rohára6ac1fb2020-11-23 19:49:23 +0100166
Pali Rohárcfdcfb72021-07-10 15:04:53 +0200167$(BUILD_PLAT)/$(UART_IMAGE): $(BUILD_PLAT)/$(BOOT_IMAGE) $(BUILD_PLAT)/wtmi.bin $(TBB) $(TIMBUILD) $(TIMDDRTOOL)
Pali Rohár9e737b62021-01-26 10:44:07 +0100168 @$(ECHO_BLANK_LINE)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300169 @echo "Building uart images"
Pali Rohár1dd7fa32021-01-26 10:44:07 +0100170 $(Q)mkdir -p $(BUILD_PLAT)/$(BUILD_UART)
171 $(Q)cp -a $(BUILD_PLAT)/wtmi.bin $(BUILD_PLAT)/$(BUILD_UART)/wtmi.bin
172 $(Q)cp -a $(BUILD_PLAT)/$(BOOT_IMAGE) $(BUILD_PLAT)/$(BUILD_UART)/$(BOOT_IMAGE)
173 $(Q)cd $(BUILD_PLAT)/$(BUILD_UART) && $(TIMBUILD) $(TIMBLDUARTARGS)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200174 $(Q)sed -i 's|WTMI_IMG|wtmi.bin|1' $(TIM_UART_CFG)
175 $(Q)sed -i 's|BOOT_IMAGE|$(BOOT_IMAGE)|1' $(TIM_UART_CFG)
Pali Rohárb4831d02021-01-26 10:44:07 +0100176ifeq ($(MARVELL_SECURE_BOOT),1)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200177 $(Q)sed -i 's|WTMI_IMG|wtmi.bin|1' $(TIMN_UART_CFG)
178 $(Q)sed -i 's|BOOT_IMAGE|$(BOOT_IMAGE)|1' $(TIMN_UART_CFG)
Pali Rohárb4831d02021-01-26 10:44:07 +0100179endif
Pali Rohárfe84ac92021-07-11 14:46:49 +0200180 $(Q)cd $(BUILD_PLAT)/$(BUILD_UART) && $(TBB) -r $(TIM_UART_CFG) -v -D
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300181ifeq ($(MARVELL_SECURE_BOOT),1)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200182 $(Q)cd $(BUILD_PLAT)/$(BUILD_UART) && $(TBB) -r $(TIMN_UART_CFG)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300183endif
Pali Rohár5ac6c662021-07-11 17:33:37 +0200184 $(Q)tar czf $(BUILD_PLAT)/$(UART_IMAGE) -C $(BUILD_PLAT) $(UART_IMAGES)
Pali Rohár9e737b62021-01-26 10:44:07 +0100185 @$(ECHO_BLANK_LINE)
186 @echo "Built $@ successfully"
187 @$(ECHO_BLANK_LINE)
188
Pali Rohárcfdcfb72021-07-10 15:04:53 +0200189$(BUILD_PLAT)/$(FLASH_IMAGE): $(BUILD_PLAT)/$(BOOT_IMAGE) $(BUILD_PLAT)/wtmi.bin $(TBB) $(TIMBUILD) $(TIMDDRTOOL) $(TIM2IMG)
Pali Rohár9e737b62021-01-26 10:44:07 +0100190 @$(ECHO_BLANK_LINE)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300191 @echo "Building flash image"
Pali Rohár1dd7fa32021-01-26 10:44:07 +0100192 $(Q)cd $(BUILD_PLAT) && $(TIMBUILD) $(TIMBLDARGS)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200193 $(Q)sed -i 's|WTMI_IMG|wtmi.bin|1' $(TIM_CFG)
194 $(Q)sed -i 's|BOOT_IMAGE|$(BOOT_IMAGE)|1' $(TIM_CFG)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300195ifeq ($(MARVELL_SECURE_BOOT),1)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200196 $(Q)sed -i 's|WTMI_IMG|wtmi.bin|1' $(TIMN_CFG)
197 $(Q)sed -i 's|BOOT_IMAGE|$(BOOT_IMAGE)|1' $(TIMN_CFG)
Pali Roháradde0872021-01-29 12:08:21 +0100198 @$(ECHO_BLANK_LINE)
199 @echo "=======================================================";
200 @echo " Secure boot. Encrypting wtmi and boot-image";
201 @echo "=======================================================";
202 @$(ECHO_BLANK_LINE)
Pali Rohár1dd7fa32021-01-26 10:44:07 +0100203 $(Q)cp $(BUILD_PLAT)/wtmi.bin $(BUILD_PLAT)/wtmi-align.bin
204 $(Q)truncate -s %16 $(BUILD_PLAT)/wtmi-align.bin
205 $(Q)openssl enc -aes-256-cbc -e -in $(BUILD_PLAT)/wtmi-align.bin \
Pali Rohárb4831d02021-01-26 10:44:07 +0100206 -out $(BUILD_PLAT)/$(WTMI_ENC_IMG) \
Konstantin Porotchkin4eb9bc42018-11-06 18:10:33 +0200207 -K `cat $(IMAGESPATH)/aes-256.txt` -nosalt \
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300208 -iv `cat $(IMAGESPATH)/iv.txt` -p
Pali Rohár1dd7fa32021-01-26 10:44:07 +0100209 $(Q)truncate -s %16 $(BUILD_PLAT)/$(BOOT_IMAGE);
210 $(Q)openssl enc -aes-256-cbc -e -in $(BUILD_PLAT)/$(BOOT_IMAGE) \
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300211 -out $(BUILD_PLAT)/$(BOOT_ENC_IMAGE) \
Konstantin Porotchkin4eb9bc42018-11-06 18:10:33 +0200212 -K `cat $(IMAGESPATH)/aes-256.txt` -nosalt \
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300213 -iv `cat $(IMAGESPATH)/iv.txt` -p
214endif
Pali Rohárfe84ac92021-07-11 14:46:49 +0200215 $(Q)cd $(BUILD_PLAT) && $(TBB) -r $(TIM_CFG) -v -D
Pali Rohár7c4142c2020-11-23 19:37:28 +0100216ifeq ($(MARVELL_SECURE_BOOT),1)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200217 $(Q)cd $(BUILD_PLAT) && $(TBB) -r $(TIMN_CFG)
218 $(Q)sed -i 's|wtmi.bin|$(WTMI_ENC_IMG)|1' $(TIMN_CFG)
219 $(Q)sed -i 's|$(BOOT_IMAGE)|$(BOOT_ENC_IMAGE)|1' $(TIMN_CFG)
Pali Rohár7c4142c2020-11-23 19:37:28 +0100220endif
Pali Rohár1dd7fa32021-01-26 10:44:07 +0100221 $(Q)cd $(BUILD_PLAT) && $(TIM2IMG) $(TIM2IMGARGS) -o $(BUILD_PLAT)/$(FLASH_IMAGE)
Pali Rohár9e737b62021-01-26 10:44:07 +0100222 @$(ECHO_BLANK_LINE)
223 @echo "Built $@ successfully"
224 @$(ECHO_BLANK_LINE)
Pali Rohár8a936582020-10-15 13:50:28 +0200225
Pali Rohár06a38e22020-11-23 19:45:28 +0100226clean realclean distclean: mrvl_clean
227
228.PHONY: mrvl_clean
229mrvl_clean:
Pali Rohár05125982021-07-10 14:54:44 +0200230 -$(Q)$(MAKE) --no-print-directory -C $(WTP) MV_DDR_PATH=$(MV_DDR_PATH) clean
231 -$(Q)$(MAKE) --no-print-directory -C $(WTP)/wtptp/src/TBB_Linux -f TBB_linux.mak clean
Pali Rohár06a38e22020-11-23 19:45:28 +0100232ifdef CRYPTOPP_PATH
233 -$(Q)$(MAKE) --no-print-directory -C $(CRYPTOPP_PATH) -f GNUmakefile clean
234endif
235
Pali Rohár0233cd42020-12-03 12:00:47 +0100236else # WTP
Pali Rohár8a936582020-10-15 13:50:28 +0200237
Pali Rohár9e737b62021-01-26 10:44:07 +0100238$(BUILD_PLAT)/$(UART_IMAGE) $(BUILD_PLAT)/$(FLASH_IMAGE):
Pali Rohár8a936582020-10-15 13:50:28 +0200239 $(error "Platform '${PLAT}' for target '$@' requires WTP. Please set WTP to point to the right directory")
240
Pali Rohár0233cd42020-12-03 12:00:47 +0100241endif # WTP
Pali Rohár9e737b62021-01-26 10:44:07 +0100242
243.PHONY: mrvl_uart
244mrvl_uart: $(BUILD_PLAT)/$(UART_IMAGE)