2020-02-28 23:05:55 +08:00
|
|
|
################################################################################
|
|
|
|
# \file libs.mk
|
|
|
|
# \version 1.0
|
|
|
|
#
|
|
|
|
# \brief
|
|
|
|
# Makefile to describe libraries needed for Cypress MCUBoot based applications.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
# \copyright
|
|
|
|
# Copyright 2018-2019 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.
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# PDL library
|
|
|
|
################################################################################
|
|
|
|
PDL_VERSION = 121
|
|
|
|
#
|
2021-02-02 01:31:41 +08:00
|
|
|
CUR_LIBS_PATH = $(PRJ_DIR)/libs
|
2020-02-28 23:05:55 +08:00
|
|
|
|
|
|
|
# Collect source files for Retarget-io
|
|
|
|
SOURCES_RETARGET_IO := $(wildcard $(CUR_LIBS_PATH)/retarget-io/*.c)
|
2020-09-02 18:37:51 +08:00
|
|
|
SOURCES_WATCHDOG := $(wildcard $(CUR_LIBS_PATH)/watchdog/*.c)
|
2020-02-28 23:05:55 +08:00
|
|
|
|
|
|
|
# Collect source files for HAL
|
|
|
|
SOURCES_HAL := $(wildcard $(CUR_LIBS_PATH)/psoc6hal/COMPONENT_PSOC6HAL/source/*.c)
|
|
|
|
SOURCES_HAL += $(wildcard $(CUR_LIBS_PATH)/psoc6hal/COMPONENT_PSOC6HAL/source/triggers/*.c)
|
|
|
|
SOURCES_HAL += $(wildcard $(CUR_LIBS_PATH)/psoc6hal/COMPONENT_PSOC6HAL/source/pin_packages/*.c)
|
|
|
|
|
|
|
|
# Retarget-io related include directories
|
|
|
|
INCLUDE_DIRS_RETARGET_IO := $(CUR_LIBS_PATH)/retarget-io
|
2020-09-02 18:37:51 +08:00
|
|
|
INCLUDE_DIRS_WATCHDOG := $(CUR_LIBS_PATH)/watchdog
|
2020-02-28 23:05:55 +08:00
|
|
|
|
|
|
|
# Collect dirrectories containing headers for PSOC6 HAL
|
|
|
|
INCLUDE_DIRS_HAL := $(CUR_LIBS_PATH)/psoc6hal/include
|
|
|
|
INCLUDE_DIRS_HAL += $(CUR_LIBS_PATH)/psoc6hal/COMPONENT_PSOC6HAL/include
|
|
|
|
INCLUDE_DIRS_HAL += $(CUR_LIBS_PATH)/psoc6hal/COMPONENT_PSOC6HAL/include/pin_packages
|
|
|
|
INCLUDE_DIRS_HAL += $(CUR_LIBS_PATH)/psoc6hal/COMPONENT_PSOC6HAL/include/triggers
|
|
|
|
|
|
|
|
# Collected source files for libraries
|
|
|
|
SOURCES_LIBS += $(SOURCES_RETARGET_IO)
|
2020-09-02 18:37:51 +08:00
|
|
|
SOURCES_LIBS += $(SOURCES_WATCHDOG)
|
2020-02-28 23:05:55 +08:00
|
|
|
SOURCES_LIBS += $(SOURCES_HAL)
|
|
|
|
|
|
|
|
# Collected include directories for libraries
|
|
|
|
INCLUDE_DIRS_LIBS += $(addprefix -I,$(INCLUDE_DIRS_RETARGET_IO))
|
2020-09-02 18:37:51 +08:00
|
|
|
INCLUDE_DIRS_LIBS += $(addprefix -I,$(INCLUDE_DIRS_WATCHDOG))
|
2020-02-28 23:05:55 +08:00
|
|
|
INCLUDE_DIRS_LIBS += $(addprefix -I,$(INCLUDE_DIRS_HAL))
|