]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
sign_rpm.bbclass: introduce GPG_PATH variable
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 14 Oct 2015 13:46:39 +0000 (16:46 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Oct 2015 11:17:11 +0000 (12:17 +0100)
This bitbake configuration variable can be used to define the gpg home
directory.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
meta/classes/sign_rpm.bbclass

index 0aa4cd841c3c3758c1cbb21ac16d219dd758767a..23aea42ba32ad4f4259d3ba746a7cd973c22ae74 100644 (file)
@@ -12,6 +12,8 @@
 # GPG_BIN
 #           Optional variable for specifying the gpg binary/wrapper to use for
 #           signing.
+# GPG_PATH
+#           Optional variable for specifying the gnupg "home" directory:
 #
 inherit sanity
 
@@ -41,6 +43,8 @@ def rpmsign_wrapper(d, files, passphrase, gpg_name=None):
                                "(e.g. in  ~/.oerpmmacros", d)
     if d.getVar('GPG_BIN', True):
         cmd += "--define '%%__gpg %s' " % d.getVar('GPG_BIN', True)
+    if d.getVar('GPG_PATH', True):
+        cmd += "--define '_gpg_path %s' " % d.getVar('GPG_PATH', True)
     cmd += ' '.join(files)
 
     # Need to use pexpect for feeding the passphrase