From ffdcbc535598c44675f59f9ca44e4125da5f4633 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Thu, 15 Jun 2017 18:11:58 +0800 Subject: [PATCH] =?UTF-8?q?libsodium:=20don=E2=80=99t=20link=20tests=20whe?= =?UTF-8?q?n=20TEST=5FALL=3D1=20is=20used?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently libsodium tests add about 800kB to the binary, which is too much for a partition table constrained to 2MB. Disable libsodium tests until we start building multiple unit test apps for different subsets. --- components/libsodium/test/component.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/libsodium/test/component.mk b/components/libsodium/test/component.mk index c23c32b6e..ec8a3e932 100644 --- a/components/libsodium/test/component.mk +++ b/components/libsodium/test/component.mk @@ -4,7 +4,11 @@ LS_TESTDIR := ../libsodium/test/default +ifdef TESTS_ALL +$(info not linking libsodium tests, use 'TEST_COMPONENTS=libsodium' to test it) +else COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive +endif # TESTS_ALL COMPONENT_SRCDIRS := . $(LS_TESTDIR)