1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-18 19:13:51 +01:00
RIOT/pkg/mynewt-core/Makefile.include
Marian Buschsieweke f46ab1cb67
pkg: Use -isystem instead of -I for pkg headers
We cannot fix package headers downstream, so we can just as well tell
the compiler to not warn about them.
2025-04-10 13:37:14 +02:00

18 lines
663 B
Makefile

# Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -isystem$(RIOTPKG)/mynewt-core/include \
-isystem$(PKGDIRBASE)/mynewt-core/kernel/os/include \
-isystem$(PKGDIRBASE)/mynewt-core/hw/hal/include \
-isystem$(PKGDIRBASE)/mynewt-core/util/mem/include \
-isystem$(PKGDIRBASE)/mynewt-core/sys/stats/stub/include \
#
DIRS += $(RIOTPKG)/mynewt-core/contrib \
#
ifneq (,$(filter nrf51 nrf52,$(CPU)))
# OS_CPUTIME is set to 32.767 Hz
CFLAGS += -DMYNEWT_VAL_OS_CPUTIME_FREQ=32768
else
CFLAGS += -DMYNEWT_VAL_OS_CPUTIME_FREQ=CONFIG_ZTIMER_MSEC_BASE_FREQ
endif