From 0fbb0e6310d8e79c2ea934ab016b685edb931d98 Mon Sep 17 00:00:00 2001 From: Jiacheng Guo Date: Fri, 28 Dec 2018 07:59:55 +0800 Subject: [PATCH] [posix-app] enhance build switches (#3404) --- src/posix/Makefile-posix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/posix/Makefile-posix b/src/posix/Makefile-posix index d108a3d67..3478fe244 100644 --- a/src/posix/Makefile-posix +++ b/src/posix/Makefile-posix @@ -32,6 +32,9 @@ COVERAGE ?= 0 DEBUG ?= 0 +DISABLE_BUILTIN_MBEDTLS ?= 0 +DISABLE_EXECUTABLE ?= 0 +SNTP_CLIENT ?= 0 ECHO := @echo MAKE := make @@ -73,6 +76,18 @@ ifeq ($(COVERAGE),1) configure_OPTIONS += --enable-coverage endif +ifeq ($(DISABLE_BUILTIN_MBEDTLS), 1) +configure_OPTIONS += --disable-builtin-mbedtls +endif + +ifeq ($(DISABLE_EXECUTABLE), 1) +configure_OPTIONS += --enable-executable=no +endif + +ifeq (${SNTP_CLIENT}, 1) +configure_OPTIONS += --enable-sntp-client +endif + TopSourceDir := $(dir $(shell readlink $(firstword $(MAKEFILE_LIST))))../.. AbsTopSourceDir := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))../..