blob: c3f78c5814224c947e47927181d39c234128c847 [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árc8836002021-10-13 11:37:12 +020079# Do not remove! Following checks are required to ensure correct TF-A builds, removing these checks leads to broken TF-A builds
Pali Rohárd7c564d2021-01-26 10:44:07 +010080$(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 +020081$(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 +010082
Pali Rohárcfdcfb72021-07-10 15:04:53 +020083TBB := $(WTP)/wtptp/src/TBB_Linux/release/TBB_linux
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030084
Pali Rohár7560d2c2021-01-26 10:44:07 +010085BUILD_UART := uart-images
Pali Rohár9e737b62021-01-26 10:44:07 +010086UART_IMAGE := $(BUILD_UART).tgz.bin
Pali Rohár7560d2c2021-01-26 10:44:07 +010087
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030088ifeq ($(MARVELL_SECURE_BOOT),1)
Pali Rohárfe84ac92021-07-11 14:46:49 +020089TIM_CFG := $(BUILD_PLAT)/atf-tim.txt
90TIM_UART_CFG := $(BUILD_PLAT)/$(BUILD_UART)/atf-tim.txt
Pali Rohár05125982021-07-10 14:54:44 +020091IMAGESPATH := $(WTP)/tim/trusted
Pali Rohárfe84ac92021-07-11 14:46:49 +020092TIMN_CFG := $(BUILD_PLAT)/atf-timN.txt
93TIMN_UART_CFG := $(BUILD_PLAT)/$(BUILD_UART)/atf-timN.txt
94TIMN_SIG := $(IMAGESPATH)/timnsign.txt
95TIM2IMGARGS := -i $(TIM_CFG) -n $(TIMN_CFG)
Pali Rohár5ac6c662021-07-11 17:33:37 +020096TIMN_UART_IMAGE := $$(grep "Image Filename:" -m 1 $(TIMN_UART_CFG) | cut -c 17-)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +030097else #MARVELL_SECURE_BOOT
Pali Rohárfe84ac92021-07-11 14:46:49 +020098TIM_CFG := $(BUILD_PLAT)/atf-ntim.txt
99TIM_UART_CFG := $(BUILD_PLAT)/$(BUILD_UART)/atf-ntim.txt
Pali Rohár05125982021-07-10 14:54:44 +0200100IMAGESPATH := $(WTP)/tim/untrusted
Pali Rohárfe84ac92021-07-11 14:46:49 +0200101TIM2IMGARGS := -i $(TIM_CFG)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300102endif #MARVELL_SECURE_BOOT
103
Pali Rohár5ac6c662021-07-11 17:33:37 +0200104TIM_UART_IMAGE := $$(grep "Image Filename:" -m 1 $(TIM_UART_CFG) | cut -c 17-)
105
Pali Rohár05125982021-07-10 14:54:44 +0200106TIMBUILD := $(WTP)/script/buildtim.sh
107TIM2IMG := $(WTP)/script/tim2img.pl
108TIMDDRTOOL := $(WTP)/tim/ddr/ddr_tool
Pali Rohára6ac1fb2020-11-23 19:49:23 +0100109
110$(TIMBUILD): $(TIMDDRTOOL)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300111
112# WTMI_IMG is used to specify the customized RTOS image running over
113# Service CPU (CM3 processor). By the default, it points to a
114# baremetal binary of fuse programming in A3700_utils.
Pali Rohár05125982021-07-10 14:54:44 +0200115WTMI_IMG := $(WTP)/wtmi/fuse/build/fuse.bin
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300116
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300117# WTMI_MULTI_IMG is composed of CM3 RTOS image (WTMI_IMG)
Pali Rohár8b42da02021-01-26 11:10:17 +0100118# and sys-init image.
Pali Rohár05125982021-07-10 14:54:44 +0200119WTMI_MULTI_IMG := $(WTP)/wtmi/build/wtmi.bin
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300120
Pali Rohárb4831d02021-01-26 10:44:07 +0100121WTMI_ENC_IMG := wtmi-enc.bin
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300122
123SRCPATH := $(dir $(BL33))
124
125CLOCKSPRESET ?= CPU_800_DDR_800
126
127DDR_TOPOLOGY ?= 0
128
129BOOTDEV ?= SPINOR
130PARTNUM ?= 0
131
Pali Rohár05125982021-07-10 14:54:44 +0200132TIMBLDARGS := $(MARVELL_SECURE_BOOT) $(BOOTDEV) $(IMAGESPATH) $(WTP) $(CLOCKSPRESET) \
Pali Rohárfe84ac92021-07-11 14:46:49 +0200133 $(DDR_TOPOLOGY) $(PARTNUM) $(DEBUG) $(TIM_CFG) $(TIMN_CFG) $(TIMN_SIG) 1
Pali Rohár05125982021-07-10 14:54:44 +0200134TIMBLDUARTARGS := $(MARVELL_SECURE_BOOT) UART $(IMAGESPATH) $(WTP) $(CLOCKSPRESET) \
Pali Rohárfe84ac92021-07-11 14:46:49 +0200135 $(DDR_TOPOLOGY) 0 0 $(TIM_UART_CFG) $(TIMN_UART_CFG) $(TIMN_SIG) 0
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300136
Pali Rohár5ac6c662021-07-11 17:33:37 +0200137UART_IMAGES := $(BUILD_UART)/$(TIM_UART_IMAGE)
138ifeq ($(MARVELL_SECURE_BOOT),1)
139UART_IMAGES += $(BUILD_UART)/$(TIMN_UART_IMAGE)
140endif
141UART_IMAGES += $(BUILD_UART)/wtmi_h.bin $(BUILD_UART)/boot-image_h.bin
142
Pali Rohára304cf52021-01-26 10:44:07 +0100143CRYPTOPP_LIBDIR ?= $(CRYPTOPP_PATH)
144CRYPTOPP_INCDIR ?= $(CRYPTOPP_PATH)
145
Pali Rohárcfdcfb72021-07-10 15:04:53 +0200146$(TBB): FORCE
Pali Rohárc8836002021-10-13 11:37:12 +0200147 # Do not remove! Following checks are required to ensure correct TF-A builds, removing these checks leads to broken TF-A builds
Pali Rohára304cf52021-01-26 10:44:07 +0100148 $(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"))
149 $(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"))
150 $(if $(wildcard $(CRYPTOPP_LIBDIR)/*),,$(error "Either 'CRYPTOPP_PATH' or 'CRYPTOPP_LIB' was set to '$(CRYPTOPP_LIBDIR)', but '$(CRYPTOPP_LIBDIR)' does not exist"))
151 $(if $(wildcard $(CRYPTOPP_INCDIR)/*),,$(error "Either 'CRYPTOPP_PATH' or 'CRYPTOPP_INCDIR' was set to '$(CRYPTOPP_INCDIR)', but '$(CRYPTOPP_INCDIR)' does not exist"))
152ifdef CRYPTOPP_PATH
Pali Roháre3b81762020-10-29 16:44:45 +0100153 $(Q)$(MAKE) --no-print-directory -C $(CRYPTOPP_PATH) -f GNUmakefile
Pali Rohára304cf52021-01-26 10:44:07 +0100154endif
Pali Rohár05125982021-07-10 14:54:44 +0200155 $(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 +0100156
Pali Rohára6ac1fb2020-11-23 19:49:23 +0100157$(WTMI_MULTI_IMG): FORCE
Pali Rohár05125982021-07-10 14:54:44 +0200158 $(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 +0100159
Pali Rohárb4831d02021-01-26 10:44:07 +0100160$(BUILD_PLAT)/wtmi.bin: $(WTMI_MULTI_IMG)
161 $(Q)cp -a $(WTMI_MULTI_IMG) $(BUILD_PLAT)/wtmi.bin
162
Pali Rohára6ac1fb2020-11-23 19:49:23 +0100163$(TIMDDRTOOL): FORCE
Pali Rohárc8836002021-10-13 11:37:12 +0200164 # Do not remove! Following checks are required to ensure correct TF-A builds, removing these checks leads to broken TF-A builds
Pali Rohára6ac1fb2020-11-23 19:49:23 +0100165 $(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 +0100166 $(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 +0200167 $(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 +0200168 $(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 +0100169
Pali Rohárcfdcfb72021-07-10 15:04:53 +0200170$(BUILD_PLAT)/$(UART_IMAGE): $(BUILD_PLAT)/$(BOOT_IMAGE) $(BUILD_PLAT)/wtmi.bin $(TBB) $(TIMBUILD) $(TIMDDRTOOL)
Pali Rohár9e737b62021-01-26 10:44:07 +0100171 @$(ECHO_BLANK_LINE)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300172 @echo "Building uart images"
Pali Rohár1dd7fa32021-01-26 10:44:07 +0100173 $(Q)mkdir -p $(BUILD_PLAT)/$(BUILD_UART)
174 $(Q)cp -a $(BUILD_PLAT)/wtmi.bin $(BUILD_PLAT)/$(BUILD_UART)/wtmi.bin
175 $(Q)cp -a $(BUILD_PLAT)/$(BOOT_IMAGE) $(BUILD_PLAT)/$(BUILD_UART)/$(BOOT_IMAGE)
176 $(Q)cd $(BUILD_PLAT)/$(BUILD_UART) && $(TIMBUILD) $(TIMBLDUARTARGS)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200177 $(Q)sed -i 's|WTMI_IMG|wtmi.bin|1' $(TIM_UART_CFG)
178 $(Q)sed -i 's|BOOT_IMAGE|$(BOOT_IMAGE)|1' $(TIM_UART_CFG)
Pali Rohárb4831d02021-01-26 10:44:07 +0100179ifeq ($(MARVELL_SECURE_BOOT),1)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200180 $(Q)sed -i 's|WTMI_IMG|wtmi.bin|1' $(TIMN_UART_CFG)
181 $(Q)sed -i 's|BOOT_IMAGE|$(BOOT_IMAGE)|1' $(TIMN_UART_CFG)
Pali Rohárb4831d02021-01-26 10:44:07 +0100182endif
Pali Rohárfe84ac92021-07-11 14:46:49 +0200183 $(Q)cd $(BUILD_PLAT)/$(BUILD_UART) && $(TBB) -r $(TIM_UART_CFG) -v -D
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300184ifeq ($(MARVELL_SECURE_BOOT),1)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200185 $(Q)cd $(BUILD_PLAT)/$(BUILD_UART) && $(TBB) -r $(TIMN_UART_CFG)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300186endif
Pali Rohár5ac6c662021-07-11 17:33:37 +0200187 $(Q)tar czf $(BUILD_PLAT)/$(UART_IMAGE) -C $(BUILD_PLAT) $(UART_IMAGES)
Pali Rohár9e737b62021-01-26 10:44:07 +0100188 @$(ECHO_BLANK_LINE)
189 @echo "Built $@ successfully"
190 @$(ECHO_BLANK_LINE)
191
Pali Rohárcfdcfb72021-07-10 15:04:53 +0200192$(BUILD_PLAT)/$(FLASH_IMAGE): $(BUILD_PLAT)/$(BOOT_IMAGE) $(BUILD_PLAT)/wtmi.bin $(TBB) $(TIMBUILD) $(TIMDDRTOOL) $(TIM2IMG)
Pali Rohár9e737b62021-01-26 10:44:07 +0100193 @$(ECHO_BLANK_LINE)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300194 @echo "Building flash image"
Pali Rohár1dd7fa32021-01-26 10:44:07 +0100195 $(Q)cd $(BUILD_PLAT) && $(TIMBUILD) $(TIMBLDARGS)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200196 $(Q)sed -i 's|WTMI_IMG|wtmi.bin|1' $(TIM_CFG)
197 $(Q)sed -i 's|BOOT_IMAGE|$(BOOT_IMAGE)|1' $(TIM_CFG)
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300198ifeq ($(MARVELL_SECURE_BOOT),1)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200199 $(Q)sed -i 's|WTMI_IMG|wtmi.bin|1' $(TIMN_CFG)
200 $(Q)sed -i 's|BOOT_IMAGE|$(BOOT_IMAGE)|1' $(TIMN_CFG)
Pali Roháradde0872021-01-29 12:08:21 +0100201 @$(ECHO_BLANK_LINE)
202 @echo "=======================================================";
203 @echo " Secure boot. Encrypting wtmi and boot-image";
204 @echo "=======================================================";
205 @$(ECHO_BLANK_LINE)
Pali Rohár1dd7fa32021-01-26 10:44:07 +0100206 $(Q)cp $(BUILD_PLAT)/wtmi.bin $(BUILD_PLAT)/wtmi-align.bin
207 $(Q)truncate -s %16 $(BUILD_PLAT)/wtmi-align.bin
208 $(Q)openssl enc -aes-256-cbc -e -in $(BUILD_PLAT)/wtmi-align.bin \
Pali Rohárb4831d02021-01-26 10:44:07 +0100209 -out $(BUILD_PLAT)/$(WTMI_ENC_IMG) \
Konstantin Porotchkin4eb9bc42018-11-06 18:10:33 +0200210 -K `cat $(IMAGESPATH)/aes-256.txt` -nosalt \
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300211 -iv `cat $(IMAGESPATH)/iv.txt` -p
Pali Rohár1dd7fa32021-01-26 10:44:07 +0100212 $(Q)truncate -s %16 $(BUILD_PLAT)/$(BOOT_IMAGE);
213 $(Q)openssl enc -aes-256-cbc -e -in $(BUILD_PLAT)/$(BOOT_IMAGE) \
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300214 -out $(BUILD_PLAT)/$(BOOT_ENC_IMAGE) \
Konstantin Porotchkin4eb9bc42018-11-06 18:10:33 +0200215 -K `cat $(IMAGESPATH)/aes-256.txt` -nosalt \
Konstantin Porotchkine7be6e22018-10-08 16:53:09 +0300216 -iv `cat $(IMAGESPATH)/iv.txt` -p
217endif
Pali Rohárfe84ac92021-07-11 14:46:49 +0200218 $(Q)cd $(BUILD_PLAT) && $(TBB) -r $(TIM_CFG) -v -D
Pali Rohár7c4142c2020-11-23 19:37:28 +0100219ifeq ($(MARVELL_SECURE_BOOT),1)
Pali Rohárfe84ac92021-07-11 14:46:49 +0200220 $(Q)cd $(BUILD_PLAT) && $(TBB) -r $(TIMN_CFG)
221 $(Q)sed -i 's|wtmi.bin|$(WTMI_ENC_IMG)|1' $(TIMN_CFG)
222 $(Q)sed -i 's|$(BOOT_IMAGE)|$(BOOT_ENC_IMAGE)|1' $(TIMN_CFG)
Pali Rohár7c4142c2020-11-23 19:37:28 +0100223endif
Pali Rohár1dd7fa32021-01-26 10:44:07 +0100224 $(Q)cd $(BUILD_PLAT) && $(TIM2IMG) $(TIM2IMGARGS) -o $(BUILD_PLAT)/$(FLASH_IMAGE)
Pali Rohár9e737b62021-01-26 10:44:07 +0100225 @$(ECHO_BLANK_LINE)
226 @echo "Built $@ successfully"
227 @$(ECHO_BLANK_LINE)
Pali Rohár8a936582020-10-15 13:50:28 +0200228
Pali Rohár06a38e22020-11-23 19:45:28 +0100229clean realclean distclean: mrvl_clean
230
231.PHONY: mrvl_clean
232mrvl_clean:
Pali Rohár05125982021-07-10 14:54:44 +0200233 -$(Q)$(MAKE) --no-print-directory -C $(WTP) MV_DDR_PATH=$(MV_DDR_PATH) clean
234 -$(Q)$(MAKE) --no-print-directory -C $(WTP)/wtptp/src/TBB_Linux -f TBB_linux.mak clean
Pali Rohár06a38e22020-11-23 19:45:28 +0100235ifdef CRYPTOPP_PATH
236 -$(Q)$(MAKE) --no-print-directory -C $(CRYPTOPP_PATH) -f GNUmakefile clean
237endif
238
Pali Rohár0233cd42020-12-03 12:00:47 +0100239else # WTP
Pali Rohár8a936582020-10-15 13:50:28 +0200240
Pali Rohár9e737b62021-01-26 10:44:07 +0100241$(BUILD_PLAT)/$(UART_IMAGE) $(BUILD_PLAT)/$(FLASH_IMAGE):
Pali Rohár8a936582020-10-15 13:50:28 +0200242 $(error "Platform '${PLAT}' for target '$@' requires WTP. Please set WTP to point to the right directory")
243
Pali Rohár0233cd42020-12-03 12:00:47 +0100244endif # WTP
Pali Rohár9e737b62021-01-26 10:44:07 +0100245
246.PHONY: mrvl_uart
247mrvl_uart: $(BUILD_PLAT)/$(UART_IMAGE)