passkey_fw/examples/device/cdc_msc_freertos/Makefile

47 lines
1.2 KiB
Makefile
Raw Normal View History

include ../../build_system/make/make.mk
2019-05-01 09:30:48 +02:00
2021-03-01 16:13:21 +01:00
FREERTOS_SRC = lib/FreeRTOS-Kernel
FREERTOS_PORTABLE_PATH= $(FREERTOS_SRC)/portable/$(if $(USE_IAR),IAR,GCC)
2020-03-10 09:34:05 +01:00
2019-05-01 09:30:48 +02:00
INC += \
src \
src/FreeRTOSConfig \
2019-05-01 09:30:48 +02:00
$(TOP)/hw \
2020-03-10 09:34:05 +01:00
$(TOP)/$(FREERTOS_SRC)/include \
$(TOP)/$(FREERTOS_PORTABLE_SRC) \
2019-05-01 09:30:48 +02:00
# Example source
EXAMPLE_SOURCE = \
src/freertos_hook.c \
src/main.c \
src/msc_disk.c \
src/usb_descriptors.c
2019-05-01 09:30:48 +02:00
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
2020-03-10 18:47:13 +01:00
# FreeRTOS source, all files in port folder
2019-05-01 09:30:48 +02:00
SRC_C += \
2020-03-10 09:34:05 +01:00
$(FREERTOS_SRC)/list.c \
$(FREERTOS_SRC)/queue.c \
$(FREERTOS_SRC)/tasks.c \
$(FREERTOS_SRC)/timers.c \
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORTABLE_SRC)/*.c))
2019-05-01 11:01:44 +02:00
SRC_S += \
$(subst $(TOP)/,,$(wildcard $(TOP)/$(FREERTOS_PORTABLE_SRC)/*.s))
2019-05-01 11:01:44 +02:00
# include heap manage if configSUPPORT_DYNAMIC_ALLOCATION = 1
# SRC_C += $(FREERTOS_SRC)/portable/MemMang/heap_1.c
# CFLAGS += -Wno-error=sign-compare
# Suppress FreeRTOSConfig.h warnings
2023-06-24 15:32:18 +02:00
CFLAGS_GCC += -Wno-error=redundant-decls
# Suppress FreeRTOS source warnings
2023-06-24 15:32:18 +02:00
CFLAGS_GCC += -Wno-error=cast-qual
2021-10-17 11:26:27 +02:00
2019-05-01 11:01:44 +02:00
# FreeRTOS (lto + Os) linker issue
2023-06-24 16:17:40 +02:00
LDFLAGS_GCC += -Wl,--undefined=vTaskSwitchContext
2019-05-01 09:30:48 +02:00
include ../../build_system/make/rules.mk