blob: 197b8d05c6434026704f21e98ee7e2837e81186c [file] [log] [blame]
#
# Copyright (c) 2019-2021, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# $(call build-platform,platform,toolchain)
define build-platform
cd $(BASE_DIR)/$(tf_m) && \
cmake -S . -B cmake_build_$1 -DTFM_PLATFORM=$1 -DTFM_TOOLCHAIN_FILE=$2 && \
cmake --build cmake_build_$1 -- install
endef
BASE_DIR ?= .
target_platforms := cypress/psoc64 \
arm/mps2/an519 arm/mps2/an521 \
arm/mps3/an524 \
arm/musca_b1/sse_200 arm/musca_s1 \
stm/stm32l562e_dk
tf_m := trusted-firmware-m
all: $(target_platforms)
$(target_platforms): check msg
$(call build-platform,$@,toolchain_GNUARM.cmake)
.phony: check
check:
ifndef BASE_DIR
echo "please provide a environment BASE_DIR"
exit 1
endif
echo "base directory $(BASE_DIR)"
.phony: msg
msg:
echo "building platform"