package/libsodium: add config for full build
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.
Signed-off-by Adrien Gallou?t <[email protected]>
---
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
@@ -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
@@ -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
Thomas Petazzoni
AppliedPATCH 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.
Signed-off-by Adrien Gallou?t <[email protected]>---
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