Skip to content

Commit

Permalink
Upload recipe-make-cat3 2.1.1.4648 [1380]
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlab-runner committed Jun 7, 2023
1 parent e5b1f9d commit 346bea7
Show file tree
Hide file tree
Showing 32 changed files with 1,129 additions and 222 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ To list the build options, run the "help" target by typing "make help" in CLI. F
* [ModusToolbox](https://www.infineon.com/cms/en/design-support/tools/sdk/modustoolbox-software)

---
© Cypress Semiconductor Corporation, 2019-2022.
© Cypress Semiconductor Corporation, 2019-2023.
9 changes: 6 additions & 3 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ This release of the XMC GNU make build recipe includes support for building XMC
* ARM Compiler 6

### What Changed?
#### v2.1.1.
* Minor updates to IDE export.

#### v2.0.0
* Major version update. Significant changes to support ModusToolbox 3.0
* Dropped compatibility with core-make version 1.X and ModusToolbox tools version 2.X
Expand Down Expand Up @@ -40,8 +43,8 @@ This version of the XMC build system was validated for compatibility with the fo

| Software and Tools | Version |
| :--- | :----: |
| ModusToolbox Software Environment | 3.0 |
| GCC Compiler | 10.3 |
| ModusToolbox Software Environment | 3.1 |
| GCC Compiler | 11.3 |
| IAR Compiler | 9.3 |
| ARM Compiler | 6.16 |

Expand All @@ -52,5 +55,5 @@ Minimum required ModusToolbox Software Environment: v3.0
* [ModusToolbox](https://www.infineon.com/cms/en/design-support/tools/sdk/modustoolbox-software)

---
© Cypress Semiconductor Corporation, 2019-2022.
© Cypress Semiconductor Corporation, 2019-2023.

2 changes: 1 addition & 1 deletion make/recipe/core_selection.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
################################################################################
# \copyright
# Copyright 2018-2021 Cypress Semiconductor Corporation
# Copyright 2018-2023 Cypress Semiconductor Corporation
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
66 changes: 4 additions & 62 deletions make/recipe/defines.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
################################################################################
# \copyright
# Copyright 2018-2021 Cypress Semiconductor Corporation
# Copyright 2018-2023 Cypress Semiconductor Corporation
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -32,10 +32,12 @@ include $(MTB_TOOLS__RECIPE_DIR)/make/recipe/defines_common.mk
################################################################################
# General
################################################################################
_MTB_RECIPE__DEFAULT_PROGRAM_INTERFACE:=JLink
_MTB_RECIPE__PROGRAM_INTERFACE_SUPPORTED:=JLink
#
# Compactibility interface for this recipe make
#
MTB_RECIPE__INTERFACE_VERSION=1
MTB_RECIPE__INTERFACE_VERSION:=2

#
# List the supported toolchains
Expand Down Expand Up @@ -121,66 +123,6 @@ endif
# to enable auto-discovery of CMSIS startup templates
MTB_RECIPE__COMPONENT+=$(_MTB_RECIPE__DEVICE_DIE)

################################################################################
# IDE specifics
################################################################################

MTB_RECIPE__IDE_SUPPORTED:=eclipse vscode uvision5 ewarm8

ifeq ($(filter vscode,$(MAKECMDGOALS)),vscode)
$(MTB_RECIPE__IDE_RECIPE_DATA_FILE)_vscode:
$(MTB__NOISE)echo "s|&&DEVICE&&|$(DEVICE)|g;" > $(MTB_RECIPE__IDE_RECIPE_DATA_FILE);\
echo "s|&&_MTB_RECIPE__OPENOCD_CHIP&&|$(_MTB_RECIPE__OPENOCD_CHIP_NAME)|g;" >> $(MTB_RECIPE__IDE_RECIPE_DATA_FILE);
ifeq ($(MTB_RECIPE__CORE),CM0)
$(MTB__NOISE)echo "s|&&_MTB_RECIPE__APP_ENTRY_POINT&&|main|g;" >> $(MTB_RECIPE__IDE_RECIPE_DATA_FILE);
else
$(MTB__NOISE)echo "s|&&_MTB_RECIPE__APP_ENTRY_POINT&&||g;" >> $(MTB_RECIPE__IDE_RECIPE_DATA_FILE);
endif
endif

ifeq ($(filter eclipse,$(MAKECMDGOALS)),eclipse)
eclipse_textdata_file:
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__JLINK_CFG_PROGRAM&&=$(DEVICE))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__JLINK_CFG_DEBUG&&=$(DEVICE))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__JLINK_CFG_ATTACH&&=$(_MTB_RECIPE__JLINK_DEVICE_CFG_ATTACH))

_MTB_ECLIPSE_TEMPLATE_RECIPE_SEARCH:=$(MTB_TOOLS__RECIPE_DIR)/make/scripts/eclipse
_MTB_ECLIPSE_TEMPLATE_RECIPE_APP_SEARCH:=$(MTB_TOOLS__RECIPE_DIR)/make/scripts/eclipse/Application

eclipse_recipe_metadata_file:
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_METADATA_FILE),RECIPE_TEMPLATE=$(_MTB_ECLIPSE_TEMPLATE_RECIPE_SEARCH))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_METADATA_FILE),RECIPE_APP_TEMPLATE=$(_MTB_ECLIPSE_TEMPLATE_RECIPE_APP_SEARCH))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_METADATA_FILE),PROJECT_UUID=&&PROJECT_UUID&&)

endif

ewarm8_recipe_data_file:
$(call mtb__file_write,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(DEVICE))

ewarm8: ewarm8_recipe_data_file

ifeq ($(_MTB_RECIPE__XMC_ARCH),XMC1)
_MTB_RECIPE__CMSIS_ARCH_NAME:=XMC1000_DFP
else ifeq ($(_MTB_RECIPE__XMC_ARCH),XMC4)
_MTB_RECIPE__CMSIS_ARCH_NAME:=XMC4000_DFP
endif
_MTB_RECIPE__CMSIS_VENDOR_NAME:=Infineon
_MTB_RECIPE__CMSIS_VENDOR_ID:=7
# pName is optional in the DFP and cprj. But they must match.
# pName is not specified in the XMC dfp, so we have to also not specify in the generated cprj file.
# If we specified the pName, the generated cprj file will not work.
_MTB_RECIPE__CMSIS_PNAME:=

_MTB_RECIPE__CMSIS_LDFLAGS:=

uvision5_recipe_data_file:
$(call mtb__file_write,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(_MTB_RECIPE__CMSIS_ARCH_NAME))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(_MTB_RECIPE__CMSIS_VENDOR_NAME))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(_MTB_RECIPE__CMSIS_VENDOR_ID))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(_MTB_RECIPE__CMSIS_PNAME))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(_MTB_RECIPE__CMSIS_LDFLAGS))

uvision5: uvision5_recipe_data_file

################################################################################
# Tools specifics
Expand Down
109 changes: 1 addition & 108 deletions make/recipe/defines_common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
################################################################################
# \copyright
# Copyright 2018-2021 Cypress Semiconductor Corporation
# Copyright 2018-2023 Cypress Semiconductor Corporation
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -59,110 +59,3 @@ ifneq ($(MTB_APPLICATION_SUBPROJECTS),)
_MTB_RECIPE__APP_HEX_FILE:=$(call mtb__path_normalize,$(_MTB_RECIPE__APP_HEX_DIR)/app_combined.$(MTB_RECIPE__SUFFIX_PROGRAM))
endif
endif

# Set the output file paths
_MTB_RECIPE__BUILD_PATH_RELATIVE:=$(notdir $(MTB_TOOLS__OUTPUT_BASE_DIR))/$(TARGET)/$(CONFIG)
_MTB_RECIPE__BUILD_APPLICATION_PATH_RELATIVE:=$(notdir $(MTB_TOOLS__PRJ_DIR))/$(_MTB_RECIPE__BUILD_PATH_RELATIVE)
_MTB_RECIPE__COMBINED_HEX_RELATIVE:=$(patsubst $(call mtb__path_normalize,$(MTB_TOOLS__PRJ_DIR)/../)/%,%,$(_MTB_RECIPE__APP_HEX_FILE))

ifneq ($(CY_BUILD_LOCATION),)
_MTB_RECIPE__ECLIPSE_SYM_FILE:=$(MTB_TOOLS__OUTPUT_CONFIG_DIR)/$(APPNAME).$(MTB_RECIPE__SUFFIX_TARGET)
_MTB_RECIPE__ECLIPSE_PROG_FILE:=$(MTB_TOOLS__OUTPUT_CONFIG_DIR)/$(APPNAME).$(MTB_RECIPE__SUFFIX_PROGRAM)
ifeq ($(MTB_TYPE),PROJECT)
_MTB_RECIPE__ECLIPSE_PROG_FILE:=$(_MTB_RECIPE__APP_HEX_FILE)
endif
else
_MTB_RECIPE__ECLIPSE_SYM_FILE:=$${cy_prj_path}/$(_MTB_RECIPE__BUILD_PATH_RELATIVE)/$(APPNAME).$(MTB_RECIPE__SUFFIX_TARGET)
_MTB_RECIPE__ECLIPSE_PROG_FILE:=$${cy_prj_path}/$(_MTB_RECIPE__BUILD_PATH_RELATIVE)/$(APPNAME).$(MTB_RECIPE__SUFFIX_PROGRAM)
ifeq ($(MTB_TYPE),PROJECT)
_MTB_RECIPE__ECLIPSE_PROG_FILE:=$${cy_prj_path}/../$(_MTB_RECIPE__COMBINED_HEX_RELATIVE)
endif
endif

################################################################################
# IDE specifics
################################################################################
MTB_RECIPE__IDE_RECIPE_DATA_FILE:=$(MTB_TOOLS__OUTPUT_CONFIG_DIR)/ide_recipe_data.temp
MTB_RECIPE__IDE_RECIPE_METADATA_FILE:=$(MTB_TOOLS__OUTPUT_CONFIG_DIR)/ide_recipe_metadata.temp
_MTB_ECLIPSE_OPENOCD_SVD_PATH:=$${cy_prj_path}/$(DEVICE_$(DEVICE)_SVD)
# Eclipse
ifeq ($(filter eclipse,$(MAKECMDGOALS)),eclipse)
eclipse_textdata_file_common:
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__OPENOCD_CFG&&=$(_MTB_RECIPE__OPENOCD_DEVICE_CFG))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__OPENOCD_CHIP&&=$(_MTB_RECIPE__OPENOCD_CHIP_NAME))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__APPNAME&&=$(CY_IDE_PRJNAME))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__CONFIG&&=$(CONFIG))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__SVD_PATH&&=$(_MTB_ECLIPSE_OPENOCD_SVD_PATH))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__SYM_FILE&&=$(_MTB_RECIPE__ECLIPSE_SYM_FILE))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__PROG_FILE&&=$(_MTB_RECIPE__ECLIPSE_PROG_FILE))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__ECLIPSE_GDB&&=$(CY_ECLIPSE_GDB))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&MTB_APPLICATION_NAME&&=$(_MTB_ECLIPSE_APPLICATION_NAME))

eclipse_textdata_file : eclipse_textdata_file_common
endif

# VSCode
ifeq ($(filter vscode,$(MAKECMDGOALS)),vscode)
_MTB_RECIPE__GCC_BASE_DIR:=$(subst $(MTB_TOOLS__TOOLS_DIR)/,,$(MTB_TOOLCHAIN_GCC_ARM__BASE_DIR))
_MTB_RECIPE__GCC_VERSION:=$(shell $(MTB_TOOLCHAIN_GCC_ARM__CC) -dumpversion)
_MTB_RECIPE__OPENOCD_EXE_DIR_RELATIVE:=$(CY_TOOL_openocd_EXE)
_MTB_RECIPE__OPENOCD_SCRIPTS_DIR_RELATIVE:=$(CY_TOOL_openocd_scripts_SCRIPT)

ifneq ($(CY_BUILD_LOCATION),)
_MTB_RECIPE__ELF_FILE:=$(MTB_TOOLS__OUTPUT_CONFIG_DIR)/$(APPNAME).$(MTB_RECIPE__SUFFIX_TARGET)
_MTB_RECIPE__ELF_FILE_APPLICATION:=$(MTB_TOOLS__OUTPUT_CONFIG_DIR)/$(APPNAME).$(MTB_RECIPE__SUFFIX_TARGET)
_MTB_RECIPE__HEX_FILE:=$(MTB_TOOLS__OUTPUT_CONFIG_DIR)/$(APPNAME).$(MTB_RECIPE__SUFFIX_PROGRAM)
ifeq ($(MTB_TYPE),PROJECT)
_MTB_RECIPE__HEX_FILE:=$(_MTB_RECIPE__APP_HEX_FILE)
endif
else
_MTB_RECIPE__ELF_FILE:=./$(_MTB_RECIPE__BUILD_PATH_RELATIVE)/$(APPNAME).$(MTB_RECIPE__SUFFIX_TARGET)
_MTB_RECIPE__ELF_FILE_APPLICATION:=./$(_MTB_RECIPE__BUILD_APPLICATION_PATH_RELATIVE)/$(APPNAME).$(MTB_RECIPE__SUFFIX_TARGET)
_MTB_RECIPE__HEX_FILE:=./$(_MTB_RECIPE__BUILD_PATH_RELATIVE)/$(APPNAME).$(MTB_RECIPE__SUFFIX_PROGRAM)
_MTB_RECIPE__HEX_FILE_APPLICATION:=./$(_MTB_RECIPE__COMBINED_HEX_RELATIVE)
ifeq ($(MTB_TYPE),PROJECT)
_MTB_RECIPE__HEX_FILE:=../$(_MTB_RECIPE__COMBINED_HEX_RELATIVE)
endif
endif

# This must set with = instead of :=
_MTB_RECIPE__C_FLAGS=$(subst $(MTB__SPACE),\"$(MTB__COMMA)$(MTB__NEWLINE_MARKER)\",$(strip $(MTB_RECIPE__CFLAGS)))

ifeq ($(CY_ATTACH_SERVER_TYPE),)
CY_ATTACH_SERVER_TYPE=openocd
endif

_MTB_VSCODE_MODUS_SHELL_RELATIVE:=$(CY_TOOL_modus-shell_BASE)

_MTB_VSCODE_SVD_PATH:=$(DEVICE_$(DEVICE)_SVD)
_MTB_VSCODE_APPLICATION_SVD_PATH=$(patsubst ../%,%,$(_MTB_VSCODE_SVD_PATH))

$(MTB_RECIPE__IDE_RECIPE_DATA_FILE):
$(MTB__NOISE)echo "s|&&_MTB_RECIPE__ELF_FILE&&|$(_MTB_RECIPE__ELF_FILE)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__HEX_FILE&&|$(_MTB_RECIPE__HEX_FILE)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__ELF_FILE_APPLICATION&&|$(_MTB_RECIPE__ELF_FILE_APPLICATION)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__HEX_FILE_APPLICATION&&|$(_MTB_RECIPE__HEX_FILE_APPLICATION)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__OPEN_OCD_FILE&&|$(_MTB_RECIPE__OPENOCD_DEVICE_CFG)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__SVD_FILE_NAME&&|$(_MTB_VSCODE_SVD_PATH)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__APPLICATION_SVD_FILE_NAME&&|$(_MTB_VSCODE_APPLICATION_SVD_PATH)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__MTB_PATH&&|$(CY_TOOLS_DIR)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__TOOL_CHAIN_DIRECTORY&&|$(subst ",,$(CY_CROSSPATH))|g;" >> $@;\
echo "s|&&_MTB_RECIPE__C_FLAGS&&|$(_MTB_RECIPE__C_FLAGS)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__GCC_VERSION&&|$(_MTB_RECIPE__GCC_VERSION)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__OPENOCD_EXE_DIR_RELATIVE&&|$(_MTB_RECIPE__OPENOCD_EXE_DIR_RELATIVE)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__OPENOCD_SCRIPTS_DIR_RELATIVE&&|$(_MTB_RECIPE__OPENOCD_SCRIPTS_DIR_RELATIVE)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__CONFIG&&|$(CONFIG)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__DEVICE_ATTACH&&|$(_MTB_RECIPE__JLINK_DEVICE_CFG_ATTACH)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__MODUS_SHELL_BASE&&|$(_MTB_VSCODE_MODUS_SHELL_RELATIVE)|g;" >> $@;\
echo "s|&&_MTB_RECIPE__ATTACH_SERVER_TYPE&&|$(CY_ATTACH_SERVER_TYPE)|g;" >> $@;
ifeq ($(CY_USE_CUSTOM_GCC),true)
$(MTB__NOISE)echo "s|&&_MTB_RECIPE__GCC_BIN_DIR&&|$(MTB_TOOLCHAIN_GCC_ARM__BASE_DIR)/bin|g;" >> $@;\
echo "s|&&_MTB_RECIPE__GCC_DIRECTORY&&|$(MTB_TOOLCHAIN_GCC_ARM__BASE_DIR)|g;" >> $@;
else
$(MTB__NOISE)echo "s|&&_MTB_RECIPE__GCC_BIN_DIR&&|$$\{config:modustoolbox.toolsPath\}/$(_MTB_RECIPE__GCC_BASE_DIR)/bin|g;" >> $@;\
echo "s|&&_MTB_RECIPE__GCC_DIRECTORY&&|$$\{config:modustoolbox.toolsPath\}/$(_MTB_RECIPE__GCC_BASE_DIR)|g;" >> $@;
endif

$(MTB_RECIPE__IDE_RECIPE_DATA_FILE) : $(MTB_RECIPE__IDE_RECIPE_DATA_FILE)_vscode
.PHONY: $(MTB_RECIPE__IDE_RECIPE_DATA_FILE)_vscode
endif
89 changes: 89 additions & 0 deletions make/recipe/interface_version_1/recipe_ide.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
################################################################################
# \file recipe_ide.mk
#
# \brief
# This make file defines the IDE export variables and target.
#
################################################################################
# \copyright
# Copyright 2022-2023 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
include $(MTB_TOOLS__RECIPE_DIR)/make/recipe/interface_version_1/recipe_ide_common.mk

################################################################################
# IDE specifics
################################################################################

MTB_RECIPE__IDE_SUPPORTED:=eclipse vscode uvision5 ewarm8

ifeq ($(filter vscode,$(MAKECMDGOALS)),vscode)
$(MTB_RECIPE__IDE_RECIPE_DATA_FILE)_vscode:
$(MTB__NOISE)echo "s|&&DEVICE&&|$(DEVICE)|g;" > $(MTB_RECIPE__IDE_RECIPE_DATA_FILE);\
echo "s|&&_MTB_RECIPE__OPENOCD_CHIP&&|$(_MTB_RECIPE__OPENOCD_CHIP_NAME)|g;" >> $(MTB_RECIPE__IDE_RECIPE_DATA_FILE);
ifeq ($(MTB_RECIPE__CORE),CM0)
$(MTB__NOISE)echo "s|&&_MTB_RECIPE__APP_ENTRY_POINT&&|main|g;" >> $(MTB_RECIPE__IDE_RECIPE_DATA_FILE);
else
$(MTB__NOISE)echo "s|&&_MTB_RECIPE__APP_ENTRY_POINT&&||g;" >> $(MTB_RECIPE__IDE_RECIPE_DATA_FILE);
endif
endif

ifeq ($(filter eclipse,$(MAKECMDGOALS)),eclipse)
eclipse_textdata_file:
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__JLINK_CFG_PROGRAM&&=$(DEVICE))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__JLINK_CFG_DEBUG&&=$(DEVICE))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),&&_MTB_RECIPE__JLINK_CFG_ATTACH&&=$(_MTB_RECIPE__JLINK_DEVICE_CFG_ATTACH))

_MTB_ECLIPSE_TEMPLATE_RECIPE_SEARCH:=$(MTB_TOOLS__RECIPE_DIR)/make/scripts/interface_version_1/eclipse
_MTB_ECLIPSE_TEMPLATE_RECIPE_APP_SEARCH:=$(MTB_TOOLS__RECIPE_DIR)/make/scripts/interface_version_1/eclipse/Application

eclipse_recipe_metadata_file:
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_METADATA_FILE),RECIPE_TEMPLATE=$(_MTB_ECLIPSE_TEMPLATE_RECIPE_SEARCH))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_METADATA_FILE),RECIPE_APP_TEMPLATE=$(_MTB_ECLIPSE_TEMPLATE_RECIPE_APP_SEARCH))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_METADATA_FILE),PROJECT_UUID=&&PROJECT_UUID&&)

endif

ewarm8_recipe_data_file:
$(call mtb__file_write,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(DEVICE))

ewarm8: ewarm8_recipe_data_file

ifeq ($(_MTB_RECIPE__XMC_ARCH),XMC1)
_MTB_RECIPE__CMSIS_ARCH_NAME:=XMC1000_DFP
else ifeq ($(_MTB_RECIPE__XMC_ARCH),XMC4)
_MTB_RECIPE__CMSIS_ARCH_NAME:=XMC4000_DFP
endif
_MTB_RECIPE__CMSIS_VENDOR_NAME:=Infineon
_MTB_RECIPE__CMSIS_VENDOR_ID:=7
# pName is optional in the DFP and cprj. But they must match.
# pName is not specified in the XMC dfp, so we have to also not specify in the generated cprj file.
# If we specified the pName, the generated cprj file will not work.
_MTB_RECIPE__CMSIS_PNAME:=

_MTB_RECIPE__CMSIS_LDFLAGS:=

uvision5_recipe_data_file:
$(call mtb__file_write,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(_MTB_RECIPE__CMSIS_ARCH_NAME))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(_MTB_RECIPE__CMSIS_VENDOR_NAME))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(_MTB_RECIPE__CMSIS_VENDOR_ID))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(_MTB_RECIPE__CMSIS_PNAME))
$(call mtb__file_append,$(MTB_RECIPE__IDE_RECIPE_DATA_FILE),$(_MTB_RECIPE__CMSIS_LDFLAGS))

uvision5: uvision5_recipe_data_file
Loading

0 comments on commit 346bea7

Please sign in to comment.