From 7183b24e6582d075e86f812d4334170938d509a2 Mon Sep 17 00:00:00 2001 From: Krzysztof Bogucki Date: Wed, 5 Aug 2020 21:59:28 +0200 Subject: [PATCH] [build] add SPINEL_ENCRYPTER_LIBS option to common switches (#5334) This option allows to pass Spinel Encrypter library to predefined Makefiles for different platforms. Example usage: make -f examples/Makefile-nrf52840 SPINEL_ENCRYPTER_LIBS=my_encrypter_lib.a --- examples/common-switches.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/common-switches.mk b/examples/common-switches.mk index ad55fb470..623dec833 100644 --- a/examples/common-switches.mk +++ b/examples/common-switches.mk @@ -283,6 +283,10 @@ ifeq ($(OTNS),1) COMMONCFLAGS += -DOPENTHREAD_CONFIG_OTNS_ENABLE=1 endif +ifneq ($(SPINEL_ENCRYPTER_LIBS),) +configure_OPTIONS += --with-ncp-spinel-encrypter-libs=$(SPINEL_ENCRYPTER_LIBS) +endif + ifeq ($(FULL_LOGS),1) # HINT: Add more here, or comment out ones you do not need/want LOG_FLAGS += -DOPENTHREAD_CONFIG_LOG_LEVEL=OT_LOG_LEVEL_DEBG