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

68 lines
2.0 KiB
Makefile
Raw Normal View History

2018-05-24 11:36:20 +02:00
PKG_NAME = nimble
PKG_URL = https://github.com/apache/mynewt-nimble.git
PKG_VERSION = a7b3c939146e735b59d55bff740c906bde6f86f9
2018-05-24 11:36:20 +02:00
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.
2018-05-24 11:36:20 +02:00
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
2018-05-24 11:36:20 +02:00
2019-02-22 13:55:16 +01:00
SUBMODS := $(filter nimble_%,$(USEMODULE))
2018-05-24 11:36:20 +02:00
.PHONY: all
2019-02-22 13:55:16 +01:00
all: git-download $(SUBMODS)
# blue code and RIOT port modules
nimble_riot_contrib:
"$(MAKE)" -C $(TDIR)/contrib/
nimble_porting_nimble:
"$(MAKE)" -C $(PDIR)/porting/nimble/src/ -f $(TDIR)/porting.nimble.mk
nimble_npl_riot:
"$(MAKE)" -C $(PDIR)/porting/npl/riot/src/ -f $(TDIR)/porting.npl.riot.mk
# host modules
nimble_host:
2018-05-24 11:36:20 +02:00
"$(MAKE)" -C $(PDIR)/nimble/host/src/ -f $(TDIR)/nimble.host.mk
2019-02-22 13:55:16 +01:00
nimble_host_util:
2018-05-24 11:36:20 +02:00
"$(MAKE)" -C $(PDIR)/nimble/host/util/src/ -f $(TDIR)/nimble.host.util.mk
2019-02-22 13:55:16 +01:00
nimble_host_store_ram:
2018-05-24 11:36:20 +02:00
"$(MAKE)" -C $(PDIR)/nimble/host/store/ram/src/ -f $(TDIR)/nimble.host.store.ram.mk
2019-02-22 13:55:16 +01:00
nimble_tinycrypt:
"$(MAKE)" -C $(PDIR)/ext/tinycrypt/src/ -f $(TDIR)/ext.tinycrypt.mk
# service implementations
nimble_svc_gap:
"$(MAKE)" -C $(PDIR)/nimble/host/services/gap/src/ -f $(TDIR)/svc.gap.mk
nimble_svc_gatt:
"$(MAKE)" -C $(PDIR)/nimble/host/services/gatt/src/ -f $(TDIR)/svc.gatt.mk
# controller specific modules
nimble_transport_ram:
2018-05-24 11:36:20 +02:00
"$(MAKE)" -C $(PDIR)/nimble/transport/ram/src/ -f $(TDIR)/transport.ram.mk
2019-02-22 13:55:16 +01:00
nimble_controller:
2018-05-24 11:36:20 +02:00
"$(MAKE)" -C $(PDIR)/nimble/controller/src/ -f $(TDIR)/controller.mk
2019-02-22 13:55:16 +01:00
nimble_drivers_nrf52:
"$(MAKE)" -C $(PDIR)/nimble/drivers/nrf52/src/ -f $(TDIR)/drivers.nrf52.mk
2018-05-24 11:36:20 +02:00
include $(RIOTBASE)/pkg/pkg.mk