From: Ivan Grokhotkov Date: Mon, 13 Aug 2018 14:38:37 +0000 (+0300) Subject: bt: build unit tests only when CONFIG_BT_ENABLED=1 X-Git-Tag: v3.2-beta1~304^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fca0273559b9de8b64eee8a5e08459d25ec7e20;p=esp-idf bt: build unit tests only when CONFIG_BT_ENABLED=1 --- diff --git a/components/bt/test/component.mk b/components/bt/test/component.mk index 5dd172bdb7..55e05e4239 100644 --- a/components/bt/test/component.mk +++ b/components/bt/test/component.mk @@ -1,5 +1,5 @@ -# -#Component Makefile -# - +ifdef CONFIG_BT_ENABLED COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive +else +COMPONENT_CONFIG_ONLY := 1 +endif