mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
d7789c08f2
The -Wno-sometimes-uninitialized suppression seems to no longer be necessary. Removing it as it may mask a real bug. If the problem reappears, and if the comment is correct about it being only in an unused function, then instead of adding the CFLAG, it should be fixed locally via a patch.
40 lines
1.6 KiB
Makefile
40 lines
1.6 KiB
Makefile
PKG_NAME = nimble
|
|
PKG_URL = https://github.com/apache/mynewt-nimble.git
|
|
PKG_VERSION = ef58876024218e488dcbc15c8631db016241ab1f
|
|
PKG_LICENSE = Apache-2.0
|
|
|
|
TDIR = $(RIOTPKG)/$(PKG_NAME)
|
|
PDIR = $(PKG_BUILDDIR)
|
|
|
|
# NimBLE is not optimized for building with all (extra) warnings enabled. So for
|
|
# now, we disable a number of selected compiler warnings when building NimBLE.
|
|
CFLAGS += -Wno-extra
|
|
ifeq (llvm,$(TOOLCHAIN))
|
|
# the static function `ble_ll_adv_active_chanset_is_sec()` in
|
|
# `nimble/controller/src/ble_ll_adv.c` isn't used in our compilation path, so
|
|
# tell LLVM/clang not to be so pedantic with this.
|
|
CFLAGS += -Wno-unused-function
|
|
else
|
|
CFLAGS += -Wno-unused-but-set-variable
|
|
endif
|
|
|
|
.PHONY: all
|
|
|
|
all: git-download
|
|
"$(MAKE)" -C $(PDIR)/ext/tinycrypt/src/ -f $(TDIR)/ext.tinycrypt.mk
|
|
"$(MAKE)" -C $(PDIR)/nimble/host/src/ -f $(TDIR)/nimble.host.mk
|
|
"$(MAKE)" -C $(PDIR)/nimble/host/services/gap/src/ -f $(TDIR)/service.gap.mk
|
|
"$(MAKE)" -C $(PDIR)/nimble/host/services/gatt/src/ -f $(TDIR)/service.gatt.mk
|
|
"$(MAKE)" -C $(PDIR)/nimble/host/util/src/ -f $(TDIR)/nimble.host.util.mk
|
|
"$(MAKE)" -C $(PDIR)/nimble/host/store/ram/src/ -f $(TDIR)/nimble.host.store.ram.mk
|
|
"$(MAKE)" -C $(PDIR)/porting/nimble/src/ -f $(TDIR)/porting.nimble.mk
|
|
"$(MAKE)" -C $(PDIR)/porting/npl/riot/src/ -f $(TDIR)/porting.npl.riot.mk
|
|
|
|
"$(MAKE)" -C $(PDIR)/nimble/transport/ram/src/ -f $(TDIR)/transport.ram.mk
|
|
"$(MAKE)" -C $(PDIR)/nimble/controller/src/ -f $(TDIR)/controller.mk
|
|
"$(MAKE)" -C $(PDIR)/nimble/drivers/nrf52/src/ -f $(TDIR)/drivers.nrf52.mk
|
|
|
|
"$(MAKE)" -C $(TDIR)/contrib/
|
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|