1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/openthread: fix compilation with LLVM

This commit is contained in:
Marian Buschsieweke 2023-05-20 19:53:38 +02:00 committed by Marian Buschsieweke
parent a95be634d1
commit 855380ee3a
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -26,15 +26,26 @@ endif
OT_COAP ?= ON OT_COAP ?= ON
OT_C_FLAGS = $(CFLAGS_CPU) OT_C_FLAGS = $(CFLAGS_CPU)
OT_C_FLAGS += -fdata-sections -ffunction-sections -Os OT_C_FLAGS += -fdata-sections
OT_C_FLAGS += -Wno-implicit-fallthrough -Wno-unused-parameter OT_C_FLAGS += -ffunction-sections -Os
OT_CXXFLAGS += -Wno-class-memaccess -DOPENTHREAD_TARGET_RIOT OT_C_FLAGS += -ffunction-sections
OT_C_FLAGS += -fshort-enums
OT_C_FLAGS += -Wno-implicit-fallthrough
OT_C_FLAGS += -Wno-unused-parameter
OT_CXXFLAGS += -Wno-class-memaccess
OT_CXXFLAGS += -DOPENTHREAD_TARGET_RIOT
OT_MODULES_ARCHIVES = $(addsuffix .a,$(addprefix $(BINDIR)/,$(OT_MODULES))) OT_MODULES_ARCHIVES = $(addsuffix .a,$(addprefix $(BINDIR)/,$(OT_MODULES)))
OT_CORE_LIB_DIR = $(PKG_BUILD_DIR)/src/core OT_CORE_LIB_DIR = $(PKG_BUILD_DIR)/src/core
OT_CLI_LIB_DIR = $(PKG_BUILD_DIR)/src/cli OT_CLI_LIB_DIR = $(PKG_BUILD_DIR)/src/cli
OT_MBEDCRYPTO_LIB_DIR = $(PKG_BUILD_DIR)/third_party/mbedtls/repo/library OT_MBEDCRYPTO_LIB_DIR = $(PKG_BUILD_DIR)/third_party/mbedtls/repo/library
ifeq (llvm,$(TOOLCHAIN))
OT_C_FLAGS += -target $(TARGET_ARCH_LLVM)
OT_C_FLAGS += $(GCC_C_INCLUDES)
OT_CXXFLAGS += $(GCC_CXX_INCLUDES)
endif
all: $(OT_MODULES_ARCHIVES) all: $(OT_MODULES_ARCHIVES)
@: @: