add initial Setup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
bdb5db2009
1955 files changed
+1004711
No files matched your search
@@ -0,0 +1,55 @@
|
||||
|
||||
#######################################
|
||||
# determine local absolute path of this script
|
||||
#######################################
|
||||
CWD_INC := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))/
|
||||
|
||||
|
||||
#######################################
|
||||
# in case the version is not set, we use
|
||||
# the latest as default
|
||||
#######################################
|
||||
FREERTOS_LTS_VERSION ?= 202604.00
|
||||
FREERTOS_USE_NETWORK ?= false
|
||||
CPU ?= -mcpu=cortex-m7
|
||||
|
||||
|
||||
#######################################
|
||||
# common parts for both projects
|
||||
#######################################
|
||||
# C sources
|
||||
C_SOURCES += $(wildcard $(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Kernel/*.c)
|
||||
ifneq ($(findstring cortex-m7,$(CPU)),)
|
||||
C_SOURCES += $(wildcard $(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Kernel/portable/GCC/ARM_CM7/r0p1/*.c)
|
||||
endif
|
||||
ifneq ($(findstring cortex-m4,$(CPU)),)
|
||||
C_SOURCES += $(wildcard $(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Kernel/portable/GCC/ARM_CM4F/*.c)
|
||||
endif
|
||||
ifneq ($(findstring true,$(FREERTOS_USE_NETWORK)),)
|
||||
C_SOURCES += $(wildcard $(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Plus-TCP/source/*.c) \
|
||||
$(wildcard $(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Plus-TCP/source/portable/Compiler/GCC/*.c) \
|
||||
$(wildcard $(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/STM32/*.c) \
|
||||
$(wildcard $(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/Common/*.c) \
|
||||
$(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Plus-TCP/source/portable/BufferManagement/BufferAllocation_1.c
|
||||
endif
|
||||
|
||||
|
||||
# C includes
|
||||
C_INCLUDES += -I$(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Kernel/include
|
||||
ifneq ($(findstring cortex-m7,$(CPU)),)
|
||||
C_INCLUDES += -I$(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Kernel/portable/GCC/ARM_CM7/r0p1
|
||||
endif
|
||||
ifneq ($(findstring cortex-m4,$(CPU)),)
|
||||
C_INCLUDES += -I$(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Kernel/portable/GCC/ARM_CM4F
|
||||
endif
|
||||
ifneq ($(findstring true,$(FREERTOS_USE_NETWORK)),)
|
||||
C_INCLUDES += -I$(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Plus-TCP/source/portable/Compiler/GCC \
|
||||
-I$(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Plus-TCP/source/portable/NetworkInterface/include \
|
||||
-I$(CWD_INC)$(FREERTOS_LTS_VERSION)/FreeRTOS-Plus-TCP/source/include
|
||||
endif
|
||||
|
||||
# C defines
|
||||
C_DEFS +=
|
||||
|
||||
# ASM sources
|
||||
ASM_SOURCES +=
|
||||
Reference in new issue
Block a user