-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbsp.mk
83 lines (75 loc) · 3.36 KB
/
bsp.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
################################################################################
# \file bsp.mk
#
# \brief
# Define the KIT_T2G_C-2D-4M_LITE target.
#
################################################################################
# \copyright
# Copyright 2024-2024 Cypress Semiconductor Corporation (an Infineon company) or
# an affiliate of Cypress Semiconductor Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
ifeq ($(WHICHFILE),true)
$(info Processing $(lastword $(MAKEFILE_LIST)))
endif
# Any additional components to apply when using this board.
# Use a default CM0+ image (CYT3DL_CM0P_SLEEP). This can be swapped for a
# different pre-built image or removed if custom built project.
# Seems like this kit should have multi-core applications only
BSP_COMPONENTS:=CM0P_SLEEP
# Any additional defines to apply when using this board.
BSP_DEFINES:=
# Path to the flash loaders to patch for this board
# CY_QSPI_FLM_DIR=$(MTB_TOOLS__TARGET_DIR)/config/FlashLoaders/
# Path to the patched flash loaders for this board
# CY_QSPI_FLM_DIR_OUTPUT=$(MTB_TOOLS__TARGET_DIR)/config/GeneratedSource/
# Middleware graphics support for CYT4DN devices requires single-precision
# hardware floating point. Changing to soft floating point or the precision
# will cause compatibility issues with graphics.
VFP_SELECT=hardfp
VFP_SELECT_PRECISION=singlefp
ifneq (,$(filter CM0P_SLEEP, $(BSP_COMPONENTS)))
BSP_LINKER_CORE:=linker
else
BSP_LINKER_CORE:=linker_d
endif
ifeq ($(TOOLCHAIN),GCC_ARM)
BSP_LINKER_SCRIPT_EXT:=ld
else ifeq ($(TOOLCHAIN),ARM)
BSP_LINKER_SCRIPT_EXT:=sct
else ifeq ($(TOOLCHAIN),IAR)
BSP_LINKER_SCRIPT_EXT:=icf
endif
MTB_BSP__LINKER_SCRIPT=$(MTB_TOOLS__TARGET_DIR)/COMPONENT_$(MTB_RECIPE__CORE)/TOOLCHAIN_$(TOOLCHAIN)/$(BSP_LINKER_CORE).$(BSP_LINKER_SCRIPT_EXT)
$(info "Using linker $(MTB_BSP__LINKER_SCRIPT)")
################################################################################
# ALL ITEMS BELOW THIS POINT ARE AUTO GENERATED BY THE BSP ASSISTANT TOOL.
# DO NOT MODIFY DIRECTLY. CHANGES SHOULD BE MADE THROUGH THE BSP ASSISTANT.
################################################################################
# Board device selection. MPN_LIST tracks what was selected in the BSP Assistant
# All other variables are derived by BSP Assistant based on the MPN_LIST.
MPN_LIST:=CYT4DNJBZS
DEVICE:=CYT4DNJBZS
DEVICE_COMPONENTS:=CAT1 CAT1C TVIIC2D6M
DEVICE_CYT4DNJBZS_CORES:=CORE_NAME_CM0P_0 CORE_NAME_CM7_0 CORE_NAME_CM7_1
DEVICE_CYT4DNJBZS_DIE:=TVIIC2D6M
DEVICE_CYT4DNJBZS_FEATURES:=CM7_0_FPU_PRESENT CM7_1_FPU_PRESENT
DEVICE_CYT4DNJBZS_FLASH_KB:=6336
DEVICE_CYT4DNJBZS_SRAM_KB:=640
DEVICE_LIST:=CYT4DNJBZS
DEVICE_TOOL_IDS:=bsp-assistant device-configurator dfuh-tool library-manager project-creator qspi-configurator smartio-configurator
RECIPE_DIR:=$(SEARCH_recipe-make-cat1c)