1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 18:13:49 +01:00

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.
This commit is contained in:
Marian Buschsieweke 2025-04-08 18:40:16 +02:00
parent 39e7be0496
commit f46ab1cb67
No known key found for this signature in database
GPG Key ID: 758BD52517F79C41
32 changed files with 180 additions and 140 deletions

View File

@ -1,7 +1,8 @@
INCLUDES += -I$(PKGDIRBASE)/ccn-lite/src/ccnl-riot/include # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -I$(PKGDIRBASE)/ccn-lite/src/ccnl-core/include INCLUDES += -isystem$(PKGDIRBASE)/ccn-lite/src/ccnl-riot/include
INCLUDES += -I$(PKGDIRBASE)/ccn-lite/src/ccnl-pkt/include INCLUDES += -isystem$(PKGDIRBASE)/ccn-lite/src/ccnl-core/include
INCLUDES += -I$(PKGDIRBASE)/ccn-lite/src/ccnl-fwd/include INCLUDES += -isystem$(PKGDIRBASE)/ccn-lite/src/ccnl-pkt/include
INCLUDES += -isystem$(PKGDIRBASE)/ccn-lite/src/ccnl-fwd/include
CFLAGS += -DCCNL_RIOT CFLAGS += -DCCNL_RIOT
ARCHIVES += $(BINDIR)/ccn-lite.a ARCHIVES += $(BINDIR)/ccn-lite.a

View File

@ -1,14 +1,15 @@
INCLUDES += -I$(PKGDIRBASE)/cmsis/CMSIS/Core/Include # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -isystem$(PKGDIRBASE)/cmsis/CMSIS/Core/Include
ifneq (,$(filter cmsis-dsp,$(USEMODULE))) ifneq (,$(filter cmsis-dsp,$(USEMODULE)))
INCLUDES += -I$(PKGDIRBASE)/cmsis/CMSIS/DSP/Include INCLUDES += -isystem$(PKGDIRBASE)/cmsis/CMSIS/DSP/Include
INCLUDES += -I$(PKGDIRBASE)/cmsis/CMSIS/DSP/PrivateInclude INCLUDES += -isystem$(PKGDIRBASE)/cmsis/CMSIS/DSP/PrivateInclude
CFLAGS += -DARM_CPU="cortex-m4" CFLAGS += -DARM_CPU="cortex-m4"
endif endif
ifneq (,$(filter cmsis-nn,$(USEMODULE))) ifneq (,$(filter cmsis-nn,$(USEMODULE)))
INCLUDES += -I$(PKGDIRBASE)/cmsis/CMSIS/DSP/Include INCLUDES += -isystem$(PKGDIRBASE)/cmsis/CMSIS/DSP/Include
INCLUDES += -I$(PKGDIRBASE)/cmsis/CMSIS/NN/Include INCLUDES += -isystem$(PKGDIRBASE)/cmsis/CMSIS/NN/Include
# Required for some basic math functions # Required for some basic math functions
CFLAGS += -Wno-sign-compare CFLAGS += -Wno-sign-compare
endif endif

View File

@ -1,4 +1,5 @@
INCLUDES += -I$(PKGDIRBASE)/cn-cbor/include # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -isystem$(PKGDIRBASE)/cn-cbor/include
#enable context pointer #enable context pointer
CFLAGS += -DUSE_CBOR_CONTEXT CFLAGS += -DUSE_CBOR_CONTEXT

View File

@ -1,30 +1,31 @@
PKG_SOURCE_DIR ?= $(PKGDIRBASE)/cryptoauthlib PKG_SOURCE_DIR ?= $(PKGDIRBASE)/cryptoauthlib
PKG_TESTINCLDIR = $(PKG_SOURCE_DIR)/test PKG_TESTINCLDIR = $(PKG_SOURCE_DIR)/test
INCLUDES += -I$(PKG_SOURCE_DIR) # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -I$(PKG_SOURCE_DIR)/lib INCLUDES += -isystem$(PKG_SOURCE_DIR)
INCLUDES += -I$(PKG_SOURCE_DIR)/app INCLUDES += -isystem$(PKG_SOURCE_DIR)/lib
INCLUDES += -I$(PKG_SOURCE_DIR)/lib/calib INCLUDES += -isystem$(PKG_SOURCE_DIR)/app
INCLUDES += -I$(RIOTPKG)/cryptoauthlib/include INCLUDES += -isystem$(PKG_SOURCE_DIR)/lib/calib
INCLUDES += -isystem$(RIOTPKG)/cryptoauthlib/include
ifneq (,$(filter psa_crypto, $(USEMODULE))) ifneq (,$(filter psa_crypto, $(USEMODULE)))
DIRS += $(RIOTPKG)/cryptoauthlib/psa_atca_driver DIRS += $(RIOTPKG)/cryptoauthlib/psa_atca_driver
INCLUDES += -I$(RIOTBASE)/sys/psa_crypto/include INCLUDES += -isystem$(RIOTBASE)/sys/psa_crypto/include
endif endif
DIRS += $(RIOTPKG)/cryptoauthlib/contrib DIRS += $(RIOTPKG)/cryptoauthlib/contrib
ARCHIVES += $(BINDIR)/cryptoauthlib.a ARCHIVES += $(BINDIR)/cryptoauthlib.a
ifneq (,$(filter cryptoauthlib_test,$(USEMODULE))) ifneq (,$(filter cryptoauthlib_test,$(USEMODULE)))
INCLUDES += -I$(PKG_TESTINCLDIR) INCLUDES += -isystem$(PKG_TESTINCLDIR)
INCLUDES += -I$(PKG_TESTINCLDIR)/jwt INCLUDES += -isystem$(PKG_TESTINCLDIR)/jwt
INCLUDES += -I$(PKG_TESTINCLDIR)/tng INCLUDES += -isystem$(PKG_TESTINCLDIR)/tng
INCLUDES += -I$(PKG_TESTINCLDIR)/atcacert INCLUDES += -isystem$(PKG_TESTINCLDIR)/atcacert
INCLUDES += -I$(PKG_TESTINCLDIR)/api_atcab INCLUDES += -isystem$(PKG_TESTINCLDIR)/api_atcab
INCLUDES += -I$(PKG_TESTINCLDIR)/api_calib INCLUDES += -isystem$(PKG_TESTINCLDIR)/api_calib
INCLUDES += -I$(PKG_TESTINCLDIR)/api_crypto INCLUDES += -isystem$(PKG_TESTINCLDIR)/api_crypto
INCLUDES += -I$(PKG_TESTINCLDIR)/vectors INCLUDES += -isystem$(PKG_TESTINCLDIR)/vectors
INCLUDES += -I$(PKG_SOURCE_DIR)/third_party/unity INCLUDES += -isystem$(PKG_SOURCE_DIR)/third_party/unity
endif endif
PSEUDOMODULES += psa_secure_element_ateccx08a PSEUDOMODULES += psa_secure_element_ateccx08a

View File

@ -1 +1,2 @@
INCLUDES += -I$(PKGDIRBASE)/driver_atwinc15x0/src # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -isystem$(PKGDIRBASE)/driver_atwinc15x0/src

View File

@ -1,4 +1,5 @@
INCLUDES += -I$(PKGDIRBASE)/driver_bme680 # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -I$(RIOTPKG)/driver_bme680/include INCLUDES += -isystem$(PKGDIRBASE)/driver_bme680
INCLUDES += -isystem$(RIOTPKG)/driver_bme680/include
DIRS += $(RIOTPKG)/driver_bme680/contrib DIRS += $(RIOTPKG)/driver_bme680/contrib

View File

@ -1,5 +1,6 @@
INCLUDES += -I$(PKGDIRBASE)/driver_cryptocell_310/include # using -isystem instead of -I to avoid warnings on the following headers
INCLUDES += -I$(RIOTPKG)/driver_cryptocell_310/include INCLUDES += -isystem$(PKGDIRBASE)/driver_cryptocell_310/include
INCLUDES += -isystem$(RIOTPKG)/driver_cryptocell_310/include
DIRS += $(RIOTPKG)/driver_cryptocell_310/contrib DIRS += $(RIOTPKG)/driver_cryptocell_310/contrib
ARCHIVES += $(PKGDIRBASE)/driver_cryptocell_310/libnrf_cc310_0.9.13.a ARCHIVES += $(PKGDIRBASE)/driver_cryptocell_310/libnrf_cc310_0.9.13.a

View File

@ -1 +1,2 @@
INCLUDES += -I$(PKGDIRBASE)/driver_sen5x # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -isystem$(PKGDIRBASE)/driver_sen5x

View File

@ -1,3 +1,4 @@
INCLUDES += -I$(PKGDIRBASE)/driver_sx126x/src # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -isystem$(PKGDIRBASE)/driver_sx126x/src
DIRS += $(RIOTBASE)/pkg/driver_sx126x/contrib DIRS += $(RIOTBASE)/pkg/driver_sx126x/contrib

View File

@ -1,6 +1,7 @@
INCLUDES += -I$(PKGDIRBASE)/EDHOC-C/include \ # Using -isystem instead of -I to prevent warnings for the following headers
-I$(PKGDIRBASE)/EDHOC-C/src \ INCLUDES += -isystem$(PKGDIRBASE)/EDHOC-C/include \
-I$(RIOTBASE)/pkg/edhoc-c/include \ -isystem$(PKGDIRBASE)/EDHOC-C/src \
-isystem$(RIOTBASE)/pkg/edhoc-c/include \
# #
ifneq (,$(filter edhoc-c_crypto_wolfssl,$(USEMODULE))) ifneq (,$(filter edhoc-c_crypto_wolfssl,$(USEMODULE)))

View File

@ -1,5 +1,15 @@
INCLUDES += -I$(PKGDIRBASE)/etl/include # Hack: On LLVM, use `-isystem` instead of -I to ignore warnings about the
INCLUDES += -I$(RIOTPKG)/etl/config # package's headers. On g++ (at least the AVR variant), `-system` is C
# only. But luckily, g++ does not emit the warnings we need to ignore
# anyway.
ifeq (llvm,$(TOOLCHAIN))
INCLUDES += -isystem$(PKGDIRBASE)/etl/include
INCLUDES += -isystem$(RIOTPKG)/etl/config
else
INCLUDES += -I$(PKGDIRBASE)/etl/include
INCLUDES += -I$(RIOTPKG)/etl/config
endif
# There's nothing to build in this package, it's used as a header only library. # There's nothing to build in this package, it's used as a header only library.
# So it's declared as a pseudo-module # So it's declared as a pseudo-module

View File

@ -1,16 +1,17 @@
INCLUDES += -I$(PKGDIRBASE)/gecko_sdk/dist/common/inc # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -I$(PKGDIRBASE)/gecko_sdk/dist/emlib/inc INCLUDES += -isystem$(PKGDIRBASE)/gecko_sdk/dist/common/inc
INCLUDES += -I$(PKGDIRBASE)/gecko_sdk/dist/emlib-extra/inc INCLUDES += -isystem$(PKGDIRBASE)/gecko_sdk/dist/emlib/inc
INCLUDES += -isystem$(PKGDIRBASE)/gecko_sdk/dist/emlib-extra/inc
ifneq (,$(filter gecko_sdk_librail,$(USEMODULE))) ifneq (,$(filter gecko_sdk_librail,$(USEMODULE)))
ARCHIVES += $(BINDIR)/gecko_sdk_librail.a ARCHIVES += $(BINDIR)/gecko_sdk_librail.a
INCLUDES += -I$(PKGDIRBASE)/gecko_sdk/dist/radio/rail_lib/common INCLUDES += -isystem$(PKGDIRBASE)/gecko_sdk/dist/radio/rail_lib/common
INCLUDES += -I$(PKGDIRBASE)/gecko_sdk/dist/radio/rail_lib/chip/efr32/$(EFM32_LIBRAIL_HEADER_NAME) INCLUDES += -isystem$(PKGDIRBASE)/gecko_sdk/dist/radio/rail_lib/chip/efr32/$(EFM32_LIBRAIL_HEADER_NAME)
endif endif
ifneq (,$(filter gecko_sdk_librail_pa,$(USEMODULE))) ifneq (,$(filter gecko_sdk_librail_pa,$(USEMODULE)))
INCLUDES += -I$(PKGDIRBASE)/gecko_sdk/dist/radio/rail_lib/plugin/pa-conversions INCLUDES += -isystem$(PKGDIRBASE)/gecko_sdk/dist/radio/rail_lib/plugin/pa-conversions
INCLUDES += -I$(PKGDIRBASE)/gecko_sdk/dist/radio/rail_lib/plugin/pa-conversions/$(EFM32_LIBRAIL_PA_HEADER_NAME)/config INCLUDES += -isystem$(PKGDIRBASE)/gecko_sdk/dist/radio/rail_lib/plugin/pa-conversions/$(EFM32_LIBRAIL_PA_HEADER_NAME)/config
endif endif
ifeq ($(CPU_CORE),cortex-m33) ifeq ($(CPU_CORE),cortex-m33)

View File

@ -1,5 +1,6 @@
INCLUDES += -I$(PKGDIRBASE)/libcose/include \ # using -isystem to avoid warnings about these headers
-I$(RIOTBASE)/pkg/libcose/include \ INCLUDES += -isystem$(PKGDIRBASE)/libcose/include \
-isystem$(RIOTBASE)/pkg/libcose/include \
# #
CFLAGS += -DUSE_CBOR_CONTEXT CFLAGS += -DUSE_CBOR_CONTEXT

View File

@ -1,4 +1,5 @@
INCLUDES += -I$(PKGDIRBASE)/lorabasicsmodem \ # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -isystem$(PKGDIRBASE)/lorabasicsmodem \
# #
ifneq (,$(filter lorabasics_driver_sx1280_hal,$(USEMODULE))) ifneq (,$(filter lorabasics_driver_sx1280_hal,$(USEMODULE)))

View File

@ -1,3 +1,4 @@
INCLUDES += -I$(PKGDIRBASE)/lua # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -I$(RIOTPKG)/lua/include INCLUDES += -isystem$(PKGDIRBASE)/lua
INCLUDES += -isystem$(RIOTPKG)/lua/include
DIRS += $(RIOTPKG)/lua/contrib DIRS += $(RIOTPKG)/lua/contrib

View File

@ -182,14 +182,14 @@ LUALIB_API int lua_riot_openlibs(lua_State *L, uint16_t modmask);
* or to manually reset the heap (only if there's no other thread using it). * or to manually reset the heap (only if there's no other thread using it).
* *
* @param modname name of the module. * @param modname name of the module.
* @param memory @see lua_riot_newstate() * @param memory See @ref lua_riot_newstate()
* @param mem_size @see lua_riot_newstate() * @param mem_size See @ref lua_riot_newstate()
* @param modmask @see lua_riot_newstate() * @param modmask See @ref lua_riot_newstate()
* @param[out] retval Value returned by the lua code, if it is a number, * @param[out] retval Value returned by the lua code, if it is a number,
* or zero if no value is returned or the value is not * or zero if no value is returned or the value is not
* a number. If retval is null, the value is not stored. * a number. If retval is null, the value is not stored.
* *
* @return An error code ( @see LUAR_ERRORS). LUAR_EXIT indicates no error. * @return An error code ( See @ref LUAR_ERRORS). LUAR_EXIT indicates no error.
*/ */
LUALIB_API int lua_riot_do_module(const char *modname, void *memory, size_t mem_size, LUALIB_API int lua_riot_do_module(const char *modname, void *memory, size_t mem_size,
uint16_t modmask, int *retval); uint16_t modmask, int *retval);
@ -200,16 +200,16 @@ LUALIB_API int lua_riot_do_module(const char *modname, void *memory, size_t mem_
* Only text data (i.e. lua source code) can be loaded by this function. The * Only text data (i.e. lua source code) can be loaded by this function. The
* lua interpreter is not robust against corrupt binary code. * lua interpreter is not robust against corrupt binary code.
* *
* @see lua_riot_do_module() for more information on internal errors. * See @ref lua_riot_do_module() for more information on internal errors.
* *
* @param buf Text data (lua source code). * @param buf Text data (lua source code).
* @param buflen Size of the text data in bytes. If buf is * @param buflen Size of the text data in bytes. If buf is
* a zero-terminated string, the zero must not be counted. * a zero-terminated string, the zero must not be counted.
* @param memory @see lua_riot_newstate() * @param memory See @ref lua_riot_newstate()
* @param mem_size @see lua_riot_newstate() * @param mem_size See @ref lua_riot_newstate()
* @param modmask @see lua_riot_newstate() * @param modmask See @ref lua_riot_newstate()
* @param[out] retval @see lua_riot_do_module() * @param[out] retval See @ref lua_riot_do_module()
* @return @see lua_riot_do_module(). * @return See @ref lua_riot_do_module().
*/ */
LUALIB_API int lua_riot_do_buffer(const uint8_t *buf, size_t buflen, void *memory, LUALIB_API int lua_riot_do_buffer(const uint8_t *buf, size_t buflen, void *memory,
size_t mem_size, uint16_t modmask, int *retval); size_t mem_size, uint16_t modmask, int *retval);

View File

@ -1,5 +1,6 @@
INCLUDES += -I$(PKGDIRBASE)/lv_drivers \ # Using -isystem instead of -I to prevent warnings for the following headers
-I$(RIOTBASE)/pkg/lv_drivers/include \ INCLUDES += -isystem$(PKGDIRBASE)/lv_drivers \
-isystem$(RIOTBASE)/pkg/lv_drivers/include \
# #
# Don't use relative includes in lv_drivers, already set in LVGL package # Don't use relative includes in lv_drivers, already set in LVGL package

View File

@ -1,5 +1,6 @@
INCLUDES += -I$(RIOTBASE)/pkg/lvgl/include # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -I$(PKGDIRBASE) INCLUDES += -isystem$(RIOTBASE)/pkg/lvgl/include
INCLUDES += -isystem$(PKGDIRBASE)
# Don't use relative includes in lvgl # Don't use relative includes in lvgl
CFLAGS += -DLV_CONF_INCLUDE_SIMPLE CFLAGS += -DLV_CONF_INCLUDE_SIMPLE

View File

@ -1,8 +1,9 @@
INCLUDES += -I$(RIOTPKG)/mynewt-core/include \ # Using -isystem instead of -I to prevent warnings for the following headers
-I$(PKGDIRBASE)/mynewt-core/kernel/os/include \ INCLUDES += -isystem$(RIOTPKG)/mynewt-core/include \
-I$(PKGDIRBASE)/mynewt-core/hw/hal/include \ -isystem$(PKGDIRBASE)/mynewt-core/kernel/os/include \
-I$(PKGDIRBASE)/mynewt-core/util/mem/include \ -isystem$(PKGDIRBASE)/mynewt-core/hw/hal/include \
-I$(PKGDIRBASE)/mynewt-core/sys/stats/stub/include \ -isystem$(PKGDIRBASE)/mynewt-core/util/mem/include \
-isystem$(PKGDIRBASE)/mynewt-core/sys/stats/stub/include \
# #
DIRS += $(RIOTPKG)/mynewt-core/contrib \ DIRS += $(RIOTPKG)/mynewt-core/contrib \

View File

@ -1,7 +1,8 @@
NIMIBASE = -I$(PKGDIRBASE)/nimble # Using -isystem instead of -I to prevent warnings for the following headers
NIMIBASE = -isystem$(PKGDIRBASE)/nimble
# include RIOT glue code headers # include RIOT glue code headers
INCLUDES += -I$(RIOTPKG)/nimble/contrib/include INCLUDES += -isystem$(RIOTPKG)/nimble/contrib/include
# include generic nimble headers # include generic nimble headers
INCLUDES += $(NIMIBASE)/nimble/include INCLUDES += $(NIMIBASE)/nimble/include
@ -11,7 +12,7 @@ ifneq (,$(filter nimble_npl_riot,$(USEMODULE)))
INCLUDES += $(NIMIBASE)/porting/npl/riot/include INCLUDES += $(NIMIBASE)/porting/npl/riot/include
else else
INCLUDES += $(NIMIBASE)/porting/npl/riot/include/npl_syscfg INCLUDES += $(NIMIBASE)/porting/npl/riot/include/npl_syscfg
INCLUDES += -I$(RIOTPKG)/nimble/npl/include INCLUDES += -isystem$(RIOTPKG)/nimble/npl/include
endif endif
INCLUDES += $(NIMIBASE)/porting/nimble/include INCLUDES += $(NIMIBASE)/porting/nimble/include
@ -85,16 +86,16 @@ endif
# include additional headers for RIOT specific NimBLE submodules # include additional headers for RIOT specific NimBLE submodules
ifneq (,$(filter nimble_addr,$(USEMODULE))) ifneq (,$(filter nimble_addr,$(USEMODULE)))
INCLUDES += -I$(RIOTPKG)/nimble/addr/include INCLUDES += -isystem$(RIOTPKG)/nimble/addr/include
endif endif
ifneq (,$(filter nimble_autoadv,$(USEMODULE))) ifneq (,$(filter nimble_autoadv,$(USEMODULE)))
INCLUDES += -I$(RIOTPKG)/nimble/autoadv/include INCLUDES += -isystem$(RIOTPKG)/nimble/autoadv/include
DIRS += $(RIOTPKG)/nimble/autoadv DIRS += $(RIOTPKG)/nimble/autoadv
endif endif
ifneq (,$(filter nimble_autoconn,$(USEMODULE))) ifneq (,$(filter nimble_autoconn,$(USEMODULE)))
INCLUDES += -I$(RIOTPKG)/nimble/autoconn/include INCLUDES += -isystem$(RIOTPKG)/nimble/autoconn/include
endif endif
ifneq (,$(filter nimble_adv_ext,$(USEMODULE))) ifneq (,$(filter nimble_adv_ext,$(USEMODULE)))
@ -124,7 +125,7 @@ else
endif endif
ifneq (,$(filter nimble_netif,$(USEMODULE))) ifneq (,$(filter nimble_netif,$(USEMODULE)))
INCLUDES += -I$(RIOTPKG)/nimble/netif/include INCLUDES += -isystem$(RIOTPKG)/nimble/netif/include
# configure NimBLE's internals # configure NimBLE's internals
NIMBLE_MAX_CONN ?= 3 NIMBLE_MAX_CONN ?= 3
@ -166,17 +167,17 @@ else
endif endif
ifneq (,$(filter nimble_rpble,$(USEMODULE))) ifneq (,$(filter nimble_rpble,$(USEMODULE)))
INCLUDES += -I$(RIOTPKG)/nimble/rpble/include INCLUDES += -isystem$(RIOTPKG)/nimble/rpble/include
endif endif
ifneq (,$(filter nimble_scanlist,$(USEMODULE))) ifneq (,$(filter nimble_scanlist,$(USEMODULE)))
INCLUDES += -I$(RIOTPKG)/nimble/scanlist/include INCLUDES += -isystem$(RIOTPKG)/nimble/scanlist/include
endif endif
ifneq (,$(filter nimble_scanner,$(USEMODULE))) ifneq (,$(filter nimble_scanner,$(USEMODULE)))
INCLUDES += -I$(RIOTPKG)/nimble/scanner/include INCLUDES += -isystem$(RIOTPKG)/nimble/scanner/include
endif endif
ifneq (,$(filter nimble_statconn,$(USEMODULE))) ifneq (,$(filter nimble_statconn,$(USEMODULE)))
INCLUDES += -I$(RIOTPKG)/nimble/statconn/include INCLUDES += -isystem$(RIOTPKG)/nimble/statconn/include
endif endif

View File

@ -1,4 +1,5 @@
INCLUDES += -I$(PKGDIRBASE)/opendsme # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -I$(RIOTBASE)/pkg/opendsme/include INCLUDES += -isystem$(PKGDIRBASE)/opendsme
INCLUDES += -isystem$(RIOTBASE)/pkg/opendsme/include
DIRS += $(RIOTBASE)/pkg/opendsme/contrib DIRS += $(RIOTBASE)/pkg/opendsme/contrib

View File

@ -15,32 +15,33 @@ PSEUDOMODULES += openwsn_serial \
DIRS += $(RIOTBASE)/pkg/openwsn/contrib DIRS += $(RIOTBASE)/pkg/openwsn/contrib
INCLUDES += -I$(PKGDIRBASE)/openwsn \ # Using -isystem instead of -I to prevent warnings for the following headers
-I$(PKGDIRBASE)/openwsn/kernel \ INCLUDES += -isystem$(PKGDIRBASE)/openwsn \
-I$(PKGDIRBASE)/openwsn/inc \ -isystem$(PKGDIRBASE)/openwsn/kernel \
-I$(PKGDIRBASE)/openwsn/drivers/common \ -isystem$(PKGDIRBASE)/openwsn/inc \
-I$(PKGDIRBASE)/openwsn/drivers/common/crypto \ -isystem$(PKGDIRBASE)/openwsn/drivers/common \
-I$(PKGDIRBASE)/openwsn/bsp/boards/ \ -isystem$(PKGDIRBASE)/openwsn/drivers/common/crypto \
-I$(PKGDIRBASE)/openwsn/openstack/ \ -isystem$(PKGDIRBASE)/openwsn/bsp/boards/ \
-I$(PKGDIRBASE)/openwsn/openstack/02a-MAClow \ -isystem$(PKGDIRBASE)/openwsn/openstack/ \
-I$(PKGDIRBASE)/openwsn/openstack/02b-MAChigh \ -isystem$(PKGDIRBASE)/openwsn/openstack/02a-MAClow \
-I$(PKGDIRBASE)/openwsn/openstack/03a-IPHC \ -isystem$(PKGDIRBASE)/openwsn/openstack/02b-MAChigh \
-I$(PKGDIRBASE)/openwsn/openstack/03b-IPv6 \ -isystem$(PKGDIRBASE)/openwsn/openstack/03a-IPHC \
-I$(PKGDIRBASE)/openwsn/openstack/04-TRAN \ -isystem$(PKGDIRBASE)/openwsn/openstack/03b-IPv6 \
-I$(PKGDIRBASE)/openwsn/openstack/cross-layers \ -isystem$(PKGDIRBASE)/openwsn/openstack/04-TRAN \
-I$(PKGDIRBASE)/openwsn/openapps \ -isystem$(PKGDIRBASE)/openwsn/openstack/cross-layers \
-I$(PKGDIRBASE)/openwsn/openapps/cjoin \ -isystem$(PKGDIRBASE)/openwsn/openapps \
-I$(PKGDIRBASE)/openwsn/openweb \ -isystem$(PKGDIRBASE)/openwsn/openapps/cjoin \
-I$(PKGDIRBASE)/openwsn/openweb/opencoap \ -isystem$(PKGDIRBASE)/openwsn/openweb \
-I$(RIOTBASE)/pkg/openwsn/include \ -isystem$(PKGDIRBASE)/openwsn/openweb/opencoap \
-isystem$(RIOTBASE)/pkg/openwsn/include \
ifneq (,$(filter openwsn_riotos,$(USEMODULE))) ifneq (,$(filter openwsn_riotos,$(USEMODULE)))
INCLUDES += -I$(RIOTBASE)/pkg/openwsn/scheduler INCLUDES += -isystem$(RIOTBASE)/pkg/openwsn/scheduler
DIRS += $(RIOTBASE)/pkg/openwsn/scheduler DIRS += $(RIOTBASE)/pkg/openwsn/scheduler
endif endif
ifneq (,$(filter openwsn_sock_udp,$(USEMODULE))) ifneq (,$(filter openwsn_sock_udp,$(USEMODULE)))
INCLUDES += -I$(RIOTBASE)/pkg/openwsn/sock INCLUDES += -isystem$(RIOTBASE)/pkg/openwsn/sock
DIRS += $(RIOTBASE)/pkg/openwsn/sock DIRS += $(RIOTBASE)/pkg/openwsn/sock
endif endif

View File

@ -1,6 +1,7 @@
INCLUDES += -I$(PKGDIRBASE)/paho-mqtt/MQTTClient-C/src/ # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -I$(PKGDIRBASE)/paho-mqtt/MQTTPacket/src INCLUDES += -isystem$(PKGDIRBASE)/paho-mqtt/MQTTClient-C/src/
INCLUDES += -I$(RIOTBASE)/pkg/paho-mqtt/include INCLUDES += -isystem$(PKGDIRBASE)/paho-mqtt/MQTTPacket/src
INCLUDES += -isystem$(RIOTBASE)/pkg/paho-mqtt/include
DIRS += $(RIOTBASE)/pkg/paho-mqtt/contrib DIRS += $(RIOTBASE)/pkg/paho-mqtt/contrib

View File

@ -1,3 +1,4 @@
INCLUDES += -I$(PKGDIRBASE)/relic/include # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -I$(BINDIR)/pkg-build/relic/include INCLUDES += -isystem$(PKGDIRBASE)/relic/include
INCLUDES += -isystem$(BINDIR)/pkg-build/relic/include
ARCHIVES += $(BINDIR)/relic.a ARCHIVES += $(BINDIR)/relic.a

View File

@ -5,10 +5,11 @@ PKG_LICENSE=BSD-3-Clause
include $(RIOTBASE)/pkg/pkg.mk include $(RIOTBASE)/pkg/pkg.mk
INCLUDES += -I$(PKGDIRBASE)/semtech-loramac/src/mac \ # Use -isystem instead of -I to disable warnings for these headers
-I$(PKGDIRBASE)/semtech-loramac/src/boards/mcu \ INCLUDES += -isystem$(PKGDIRBASE)/semtech-loramac/src/mac \
-I$(PKGDIRBASE)/semtech-loramac/src/system/crypto \ -isystem$(PKGDIRBASE)/semtech-loramac/src/boards/mcu \
-I$(PKGDIRBASE)/semtech-loramac/src -isystem$(PKGDIRBASE)/semtech-loramac/src/system/crypto \
-isystem$(PKGDIRBASE)/semtech-loramac/src
LORAMAC_MODULES = loramac_arch loramac_crypto loramac_mac loramac_region LORAMAC_MODULES = loramac_arch loramac_crypto loramac_mac loramac_region

View File

@ -1,4 +1,5 @@
INCLUDES += -I$(RIOTBASE)/pkg/semtech-loramac/include # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -isystem$(RIOTBASE)/pkg/semtech-loramac/include
DIRS += $(RIOTBASE)/pkg/semtech-loramac/contrib DIRS += $(RIOTBASE)/pkg/semtech-loramac/contrib

View File

@ -1,9 +1,10 @@
MODULE := semtech_loramac_contrib MODULE := semtech_loramac_contrib
INCLUDES += -I$(PKGDIRBASE)/semtech-loramac/src/mac \ # Use -isystem instead of -I to disable warnings about these headers
-I$(PKGDIRBASE)/semtech-loramac/src/boards \ INCLUDES += -isystem$(PKGDIRBASE)/semtech-loramac/src/mac \
-I$(PKGDIRBASE)/semtech-loramac/src/radio \ -isystem$(PKGDIRBASE)/semtech-loramac/src/boards \
-I$(PKGDIRBASE)/semtech-loramac/src/system/crypto \ -isystem$(PKGDIRBASE)/semtech-loramac/src/radio \
-I$(PKGDIRBASE)/semtech-loramac/src -isystem$(PKGDIRBASE)/semtech-loramac/src/system/crypto \
-isystem$(PKGDIRBASE)/semtech-loramac/src
include $(RIOTBASE)/Makefile.base include $(RIOTBASE)/Makefile.base

View File

@ -1 +1,2 @@
INCLUDES += -I$(PKGDIRBASE)/tinycrypt/lib/include # Using -isyste instead of -I to avoid warnings about these headers
INCLUDES += -isystem$(PKGDIRBASE)/tinycrypt/lib/include

View File

@ -1,13 +1,14 @@
PKG_BUILDDIR ?= $(PKGDIRBASE)/tinydtls PKG_BUILDDIR ?= $(PKGDIRBASE)/tinydtls
INCLUDES += -I$(PKG_BUILDDIR) # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -isystem$(PKG_BUILDDIR)
ifeq ($(TOOLCHAIN), llvm) ifeq ($(TOOLCHAIN), llvm)
CFLAGS += -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function CFLAGS += -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function
endif endif
INCLUDES += -I$(RIOTBASE)/pkg/tinydtls/include INCLUDES += -isystem$(RIOTBASE)/pkg/tinydtls/include
INCLUDES += -I$(PKG_BUILDDIR) INCLUDES += -isystem$(PKG_BUILDDIR)
# Mandatory for tinyDTLS # Mandatory for tinyDTLS
CFLAGS += -DDTLSv12 -DWITH_SHA256 CFLAGS += -DDTLSv12 -DWITH_SHA256

View File

@ -1 +1,2 @@
INCLUDES += -I$(PKGDIRBASE)/umorse # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -isystem$(PKGDIRBASE)/umorse

View File

@ -1,17 +1,18 @@
INCLUDES += -I$(PKGDIRBASE)/uwb-core/hw/drivers/uwb/include/ \ # Using -isystem instead of -I to prevent warnings for the following headers
-I$(PKGDIRBASE)/uwb-core/lib/euclid/include \ INCLUDES += -isystem$(PKGDIRBASE)/uwb-core/hw/drivers/uwb/include/ \
-I$(PKGDIRBASE)/uwb-core/lib/dsp/include \ -isystem$(PKGDIRBASE)/uwb-core/lib/euclid/include \
-I$(PKGDIRBASE)/uwb-core/lib/json/include \ -isystem$(PKGDIRBASE)/uwb-core/lib/dsp/include \
-I$(PKGDIRBASE)/uwb-core/lib/rng_math/include \ -isystem$(PKGDIRBASE)/uwb-core/lib/json/include \
-I$(PKGDIRBASE)/uwb-core/lib/twr_ss/include \ -isystem$(PKGDIRBASE)/uwb-core/lib/rng_math/include \
-I$(PKGDIRBASE)/uwb-core/lib/twr_ss_ext/include \ -isystem$(PKGDIRBASE)/uwb-core/lib/twr_ss/include \
-I$(PKGDIRBASE)/uwb-core/lib/twr_ss_ack/include \ -isystem$(PKGDIRBASE)/uwb-core/lib/twr_ss_ext/include \
-I$(PKGDIRBASE)/uwb-core/lib/twr_ds/include \ -isystem$(PKGDIRBASE)/uwb-core/lib/twr_ss_ack/include \
-I$(PKGDIRBASE)/uwb-core/lib/twr_ds_ext/include \ -isystem$(PKGDIRBASE)/uwb-core/lib/twr_ds/include \
-I$(PKGDIRBASE)/uwb-core/lib/uwb_rng/include \ -isystem$(PKGDIRBASE)/uwb-core/lib/twr_ds_ext/include \
-I$(PKGDIRBASE)/uwb-core/porting/dpl/riot/include/ \ -isystem$(PKGDIRBASE)/uwb-core/lib/uwb_rng/include \
-I$(PKGDIRBASE)/uwb-core/sys/uwbcfg/include \ -isystem$(PKGDIRBASE)/uwb-core/porting/dpl/riot/include/ \
-I$(RIOTPKG)/uwb-core/include \ -isystem$(PKGDIRBASE)/uwb-core/sys/uwbcfg/include \
-isystem$(RIOTPKG)/uwb-core/include \
# #
PSEUDOMODULES += uwb-core_dpl PSEUDOMODULES += uwb-core_dpl

View File

@ -1,10 +1,11 @@
DIRS += $(RIOTBASE)/pkg/wakaama/contrib DIRS += $(RIOTBASE)/pkg/wakaama/contrib
INCLUDES += -I$(RIOTBASE)/pkg/wakaama/include # Using -isystem instead of -I to prevent warnings for the following headers
INCLUDES += -I$(PKGDIRBASE)/wakaama/include INCLUDES += -isystem$(RIOTBASE)/pkg/wakaama/include
INCLUDES += -I$(PKGDIRBASE)/wakaama/core INCLUDES += -isystem$(PKGDIRBASE)/wakaama/include
INCLUDES += -I$(PKGDIRBASE)/wakaama/data INCLUDES += -isystem$(PKGDIRBASE)/wakaama/core
INCLUDES += -I$(PKGDIRBASE)/wakaama/coap/er-coap-13 INCLUDES += -isystem$(PKGDIRBASE)/wakaama/data
INCLUDES += -isystem$(PKGDIRBASE)/wakaama/coap/er-coap-13
# NOTE: Use wakaama in client mode # NOTE: Use wakaama in client mode
CFLAGS += -DLWM2M_CLIENT_MODE CFLAGS += -DLWM2M_CLIENT_MODE