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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
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
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))