Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v4 1/1] package/libsodium: add config for full build
@ 2019-09-23  8:29 Adrien Gallouët
  2019-09-28 21:19 ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Adrien Gallouët @ 2019-09-23  8:29 UTC (permalink / raw)
  To: buildroot

A new option is added to build all functions.

This option was implicitly used before, so it is activated by default to
avoid unpleasant surprises.

Signed-off-by: Adrien Gallou?t <adrien@gallouet.fr>

---
Changes v3 -> v4:
  - better commit log (suggested by Thomas Petazzoni)

Changes v2 -> v3:
  - add a better help (suggested by Arnout Vandecappelle)

Changes v1 -> v2:
  - full build (suggested by Arnout Vandecappelle)
---
 package/libsodium/Config.in    | 12 ++++++++++++
 package/libsodium/libsodium.mk |  4 ++++
 2 files changed, 16 insertions(+)

diff --git a/package/libsodium/Config.in b/package/libsodium/Config.in
index 47b9bb350c..518b0532ed 100644
--- a/package/libsodium/Config.in
+++ b/package/libsodium/Config.in
@@ -4,3 +4,15 @@ config BR2_PACKAGE_LIBSODIUM
 	  A modern and easy-to-use crypto library.
 
 	  http://libsodium.org/
+
+if BR2_PACKAGE_LIBSODIUM
+
+config BR2_PACKAGE_LIBSODIUM_FULL
+	bool "all functions"
+	default y
+	help
+	  Build all seldom used and obsolete functions. Without
+	  this option, only the minimal set of normally used
+	  functions is built.
+
+endif
diff --git a/package/libsodium/libsodium.mk b/package/libsodium/libsodium.mk
index a94a8271c5..9afa09ff37 100644
--- a/package/libsodium/libsodium.mk
+++ b/package/libsodium/libsodium.mk
@@ -14,5 +14,9 @@ ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
 LIBSODIUM_CONF_OPTS += --disable-pie
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSODIUM_FULL),)
+LIBSODIUM_CONF_OPTS += --enable-minimal
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-10-24  8:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-23  8:29 [Buildroot] [PATCH v4 1/1] package/libsodium: add config for full build Adrien Gallouët
2019-09-28 21:19 ` Thomas Petazzoni
2019-09-28 21:49   ` Adrien Gallouët
2019-09-29  7:04     ` Thomas Petazzoni
2019-09-29 10:51       ` Arnout Vandecappelle
2019-09-30 12:04         ` Peter Korsgaard
2019-09-30 12:29         ` Thomas Petazzoni
2019-10-24  8:30         ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox