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:
parent
a95be634d1
commit
855380ee3a
@ -26,15 +26,26 @@ endif
|
||||
OT_COAP ?= ON
|
||||
|
||||
OT_C_FLAGS = $(CFLAGS_CPU)
|
||||
OT_C_FLAGS += -fdata-sections -ffunction-sections -Os
|
||||
OT_C_FLAGS += -Wno-implicit-fallthrough -Wno-unused-parameter
|
||||
OT_CXXFLAGS += -Wno-class-memaccess -DOPENTHREAD_TARGET_RIOT
|
||||
OT_C_FLAGS += -fdata-sections
|
||||
OT_C_FLAGS += -ffunction-sections -Os
|
||||
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_CORE_LIB_DIR = $(PKG_BUILD_DIR)/src/core
|
||||
OT_CLI_LIB_DIR = $(PKG_BUILD_DIR)/src/cli
|
||||
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)
|
||||
@:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user