]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
gnupg: add option for AES cipher
authorPeter Korsgaard <peter@korsgaard.com>
Thu, 2 Jul 2015 15:30:24 +0000 (17:30 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 2 Jul 2015 15:30:24 +0000 (17:30 +0200)
Similar to our RSA option. Enabling this adds ~17K to the gpg binary (ARMv7):

ls -lah output/target/usr/bin/gpg{.orig,}
-rwxr-xr-x 1 peko peko 532K Jul  2 17:29 output/target/usr/bin/gpg
-rwxr-xr-x 1 peko peko 515K Jul  2 17:29 output/target/usr/bin/gpg.orig

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gnupg/Config.in
package/gnupg/gnupg.mk

index 1dc27a47c66aaf52a91ba0f7eed2877c60755efd..30f215fed88da37538858103999d96b9c9c8537f 100644 (file)
@@ -16,6 +16,11 @@ config BR2_PACKAGE_GNUPG
 
 if BR2_PACKAGE_GNUPG
 
+config BR2_PACKAGE_GNUPG_AES
+       bool "AES support"
+       help
+         Support for the AES cipher
+
 config BR2_PACKAGE_GNUPG_RSA
        bool "RSA support"
        help
index 94f5d896aa92e487c97b75a8aa98ea7ccb7a359a..f358fa36f548e9b8d15080e4da79f870a1c7829c 100644 (file)
@@ -31,6 +31,12 @@ else
 GNUPG_CONF_OPTS += --without-readline
 endif
 
+ifeq ($(BR2_PACKAGE_GNUPG_AES),y)
+GNUPG_CONF_OPTS += --enable-aes
+else
+GNUPG_CONF_OPTS += --disable-aes
+endif
+
 ifeq ($(BR2_PACKAGE_GNUPG_RSA),y)
 GNUPG_CONF_OPTS += --enable-rsa
 else