Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
mtb-example-mcuboot-basic/common_app.mk
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
57 lines (51 sloc)
2.27 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# \file common_app.mk | |
# \version 1.0 | |
# | |
# \brief | |
# Settings shared across the entire application. | |
# | |
################################################################################ | |
# \copyright | |
# Copyright 2022-2024, Cypress Semiconductor Corporation (an Infineon company) | |
# 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. | |
################################################################################ | |
################################################################################ | |
# Paths | |
################################################################################ | |
# Locate ModusToolbox software helper tools folders in default installation | |
# locations for Windows, Linux, and macOS. | |
CY_WIN_HOME=$(subst \,/,$(USERPROFILE)) | |
CY_TOOLS_PATHS ?= $(wildcard \ | |
$(CY_WIN_HOME)/ModusToolbox/tools_* \ | |
$(HOME)/ModusToolbox/tools_* \ | |
/Applications/ModusToolbox/tools_*) | |
# Absolute path to the compiler's "bin" directory. The variable name depends on the | |
# toolchain used for the build. Refer to the ModusToolbox user guide to get the correct | |
# variable name for the toolchain used in your build. | |
# | |
# The default depends on the selected TOOLCHAIN (GCC_ARM uses the ModusToolbox | |
# software provided compiler by default). | |
CY_COMPILER_GCC_ARM_DIR= | |
# If you install ModusToolbox software in a custom location, add the path to its | |
# "tools_X.Y" folder (where X and Y are the version number of the tools | |
# folder). | |
CY_TOOLS_PATHS+= | |
# Default to the newest installed tools folder, or the users override (if it's | |
# found). | |
CY_TOOLS_DIR=$(lastword $(sort $(wildcard $(CY_TOOLS_PATHS)))) | |
ifeq ($(CY_TOOLS_DIR),) | |
$(error Unable to find any of the available CY_TOOLS_PATHS -- $(CY_TOOLS_PATHS)) | |
endif |