mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 14:03:55 +01:00
We cannot fix package headers downstream, so we can just as well tell the compiler to not warn about them.
21 lines
739 B
Makefile
21 lines
739 B
Makefile
# Using -isystem instead of -I to prevent warnings for the following headers
|
|
INCLUDES += -isystem$(PKGDIRBASE)/cmsis/CMSIS/Core/Include
|
|
|
|
ifneq (,$(filter cmsis-dsp,$(USEMODULE)))
|
|
INCLUDES += -isystem$(PKGDIRBASE)/cmsis/CMSIS/DSP/Include
|
|
INCLUDES += -isystem$(PKGDIRBASE)/cmsis/CMSIS/DSP/PrivateInclude
|
|
CFLAGS += -DARM_CPU="cortex-m4"
|
|
endif
|
|
|
|
ifneq (,$(filter cmsis-nn,$(USEMODULE)))
|
|
INCLUDES += -isystem$(PKGDIRBASE)/cmsis/CMSIS/DSP/Include
|
|
INCLUDES += -isystem$(PKGDIRBASE)/cmsis/CMSIS/NN/Include
|
|
# Required for some basic math functions
|
|
CFLAGS += -Wno-sign-compare
|
|
endif
|
|
|
|
# cmsis* modules are not concrete modules, so declare them as pseudomodules
|
|
PSEUDOMODULES += cmsis
|
|
PSEUDOMODULES += cmsis-dsp
|
|
PSEUDOMODULES += cmsis-nn
|