2018-05-24 11:36:20 +02:00
|
|
|
PKG_NAME = nimble
|
|
|
|
PKG_URL = https://github.com/apache/mynewt-nimble.git
|
2018-10-19 12:20:19 +02:00
|
|
|
PKG_VERSION = ef58876024218e488dcbc15c8631db016241ab1f
|
2018-05-24 11:36:20 +02:00
|
|
|
PKG_LICENSE = Apache-2.0
|
|
|
|
|
|
|
|
TDIR = $(RIOTPKG)/$(PKG_NAME)
|
|
|
|
PDIR = $(PKG_BUILDDIR)
|
|
|
|
|
2018-10-18 14:36:35 +02:00
|
|
|
# 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.
|
2018-05-24 11:36:20 +02:00
|
|
|
CFLAGS += -Wno-extra
|
2018-10-18 14:36:35 +02:00
|
|
|
ifeq (llvm,$(TOOLCHAIN))
|
2018-08-14 14:39:11 +02:00
|
|
|
# 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
|
2018-10-18 14:36:35 +02:00
|
|
|
else
|
|
|
|
CFLAGS += -Wno-unused-but-set-variable
|
2018-08-14 14:39:11 +02:00
|
|
|
endif
|
2018-05-24 11:36:20 +02:00
|
|
|
|
|
|
|
.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
|