* [Buildroot] [PATCH 1/1] gnupg: option to include RSA support.
@ 2013-09-28 20:02 Peter Sanford
2013-09-29 16:20 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Peter Sanford @ 2013-09-28 20:02 UTC (permalink / raw)
To: buildroot
gnupg is compiled with --enable-minimal flag. This produces a binary that only
supports ElGamal and DSA public key algorithms.
RSA has been the default for `gpg --gen-key` since 2009, so it makes sense to
be able to build a gnupg binary that supports it.
Signed-off-by: Peter Sanford <psanford@nearbuysystems.com>
---
package/gnupg/Config.in | 5 +++++
package/gnupg/gnupg.mk | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/package/gnupg/Config.in b/package/gnupg/Config.in
index 8ddffaa..8b57771 100644
--- a/package/gnupg/Config.in
+++ b/package/gnupg/Config.in
@@ -15,6 +15,11 @@ config BR2_PACKAGE_GNUPG
if BR2_PACKAGE_GNUPG
+config BR2_PACKAGE_GNUPG_RSA
+ bool "RSA support"
+ help
+ Support for RSA public key algorithm
+
config BR2_PACKAGE_GNUPG_GPGV
bool "gpgv"
help
diff --git a/package/gnupg/gnupg.mk b/package/gnupg/gnupg.mk
index f0c4b03..ddbec4f 100644
--- a/package/gnupg/gnupg.mk
+++ b/package/gnupg/gnupg.mk
@@ -31,6 +31,10 @@ else
GNUPG_CONF_OPT += --without-readline
endif
+ifeq ($(BR2_PACKAGE_GNUPG_RSA),y)
+GNUPG_CONF_OPT += --enable-rsa
+endif
+
ifneq ($(BR2_PACKAGE_GNUPG_GPGV),y)
define GNUPG_REMOVE_GPGV
rm -f $(TARGET_DIR)/usr/bin/gpgv \
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] gnupg: option to include RSA support.
2013-09-28 20:02 [Buildroot] [PATCH 1/1] gnupg: option to include RSA support Peter Sanford
@ 2013-09-29 16:20 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2013-09-29 16:20 UTC (permalink / raw)
To: buildroot
Dear Peter Sanford,
Thanks! Some comments below.
On Sat, 28 Sep 2013 13:02:13 -0700, Peter Sanford wrote:
> +config BR2_PACKAGE_GNUPG_RSA
> + bool "RSA support"
> + help
> + Support for RSA public key algorithm
The indentation here is not good: it should be one tab before "bool"
and "help", and one tab+two spaces before the help text. See the
Buildroot manual and other examples throughout the Buildroot tree.
> +ifeq ($(BR2_PACKAGE_GNUPG_RSA),y)
> +GNUPG_CONF_OPT += --enable-rsa
> +endif
We generally like to have an "else" clause that explicitly disables the
option when not enabled, i.e:
else
GNUPG_CONF_OPT += --disable-rsa
endif
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-29 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-28 20:02 [Buildroot] [PATCH 1/1] gnupg: option to include RSA support Peter Sanford
2013-09-29 16:20 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox