1################################################################################
2# \file bsp.mk
3#
4################################################################################
5# \copyright
6# Copyright 2019-2023 Cypress Semiconductor Corporation (an Infineon company) or
7# an affiliate of Cypress Semiconductor Corporation
8#
9# SPDX-License-Identifier: Apache-2.0
10#
11# Licensed under the Apache License, Version 2.0 (the "License");
12# you may not use this file except in compliance with the License.
13# You may obtain a copy of the License at
14#
15#     http://www.apache.org/licenses/LICENSE-2.0
16#
17# Unless required by applicable law or agreed to in writing, software
18# distributed under the License is distributed on an "AS IS" BASIS,
19# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20# See the License for the specific language governing permissions and
21# limitations under the License.
22################################################################################
23
24ifeq ($(WHICHFILE),true)
25$(info Processing $(lastword $(MAKEFILE_LIST)))
26endif
27
28# Any additional components to apply when using this board.
29BSP_COMPONENTS:=
30
31# Any additional defines to apply when using this board.
32BSP_DEFINES:=
33
34# APP_IMAGE_TYPE
35APPTYPE?=flash
36# Set APP_SECURITY_TYPE to NORMAL_NO_SECURE for un-signed image
37# Set APP_SECURITY_TYPE to SECURE for signed image
38APP_SECURITY_TYPE?=NORMAL_NO_SECURE
39
40# Specify the path to the linker script to use
41ifeq ($(TOOLCHAIN),GCC_ARM)
42	BSP_LINKER_SCRIPT_EXT:=ld
43else ifeq ($(TOOLCHAIN),ARM)
44	BSP_LINKER_SCRIPT_EXT:=sct
45else ifeq ($(TOOLCHAIN),IAR)
46	BSP_LINKER_SCRIPT_EXT:=icf
47endif
48MTB_BSP__LINKER_SCRIPT:=$(MTB_TOOLS__TARGET_DIR)/TOOLCHAIN_$(TOOLCHAIN)/linker_ns_$(APPTYPE).$(BSP_LINKER_SCRIPT_EXT)
49
50# Path to the params blob for provisioning
51CY_BSP_PROVISION_NORMAL_NON_SECURE_BINARIES=$(MTB_TOOLS__TARGET_DIR)/provision/in_params.bin
52
53# Path to the flash loaders to patch for this board
54CY_QSPI_FLM_DIR=$(MTB_TOOLS__TARGET_DIR)/config/FlashLoaders/
55
56# Path to the patched flash loaders for this board
57CY_QSPI_FLM_DIR_OUTPUT=$(MTB_TOOLS__TARGET_DIR)/config/GeneratedSource/
58
59################################################################################
60# ALL ITEMS BELOW THIS POINT ARE AUTO GENERATED BY THE BSP ASSISTANT TOOL.
61# DO NOT MODIFY DIRECTLY. CHANGES SHOULD BE MADE THROUGH THE BSP ASSISTANT.
62################################################################################
63
64# Board device selection. MPN_LIST tracks what was selected in the BSP Assistant
65# All other variables are derived by BSP Assistant based on the MPN_LIST.
66MPN_LIST:=
67