Skip to contentSkip to conversation

package/libsodium: add config for full build

PATCH New Adrien Gallouët 2 participants 2 messages Sep 30, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 package/libsodium: add config for full build

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.

---
Changes v4 -> v5:
- also use --disable-minimal

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 |  6 ++++++
 2 files changed, 18 insertions(+)
package/libsodium/Config.in +12 -0
index 47b9bb350c..518b0532ed 100644
@@ -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
package/libsodium/libsodium.mk +6 -0
index a94a8271c5..a8e0f79149 100644
@@ -14,5 +14,11 @@ ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
 LIBSODIUM_CONF_OPTS += --disable-pie
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSODIUM_FULL),y)
+LIBSODIUM_CONF_OPTS += --disable-minimal
+else
+LIBSODIUM_CONF_OPTS += --enable-minimal
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 1 line
2.19.1
#1 lore raw

PATCH v5 1/1 package/libsodium: add config for full build

Quoted 9 lines · On Mon, 30 Sep 2019 15:34:16 +0000 Adrien Gallou?t <[email protected]> wrote:

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.

---
Changes v4 -> v5:
- also use --disable-minimal

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com