From: "Adrien Gallouët" <adrien@gallouet.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 1/1] package/libsodium: add config for full build
Date: Sun, 22 Sep 2019 20:04:10 +0000 [thread overview]
Message-ID: <20190922200409.30555-1-adrien@gallouet.fr> (raw)
A new default option is added to build all functions.
Signed-off-by: Adrien Gallou?t <adrien@gallouet.fr>
---
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
next reply other threads:[~2019-09-22 20:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-22 20:04 Adrien Gallouët [this message]
2019-09-23 7:24 ` [Buildroot] [PATCH v3 1/1] package/libsodium: add config for full build Thomas Petazzoni
2019-09-23 9:58 ` Adrien Gallouët
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190922200409.30555-1-adrien@gallouet.fr \
--to=adrien@gallouet.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox