summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2015-10-14 16:46:39 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-27 07:24:24 +0000
commitb682fca7befaeb7b08ac6104cc7041a389bd0ed0 (patch)
treebc319b0f8f5e1ca9ab2bc1fb42259b34e237c009 /meta
parent8ccbc26e604efbabb8ed95508c920618f1505f32 (diff)
downloadpoky-b682fca7befaeb7b08ac6104cc7041a389bd0ed0.tar.gz
sign_rpm.bbclass: introduce GPG_PATH variable
This bitbake configuration variable can be used to define the gpg home directory. (From OE-Core rev: 7ea2f8aca832433f448a79d103c945a63ac6474b) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sign_rpm.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sign_rpm.bbclass b/meta/classes/sign_rpm.bbclass
index 0aa4cd841c..23aea42ba3 100644
--- a/meta/classes/sign_rpm.bbclass
+++ b/meta/classes/sign_rpm.bbclass
@@ -12,6 +12,8 @@
12# GPG_BIN 12# GPG_BIN
13# Optional variable for specifying the gpg binary/wrapper to use for 13# Optional variable for specifying the gpg binary/wrapper to use for
14# signing. 14# signing.
15# GPG_PATH
16# Optional variable for specifying the gnupg "home" directory:
15# 17#
16inherit sanity 18inherit sanity
17 19
@@ -41,6 +43,8 @@ def rpmsign_wrapper(d, files, passphrase, gpg_name=None):
41 "(e.g. in ~/.oerpmmacros", d) 43 "(e.g. in ~/.oerpmmacros", d)
42 if d.getVar('GPG_BIN', True): 44 if d.getVar('GPG_BIN', True):
43 cmd += "--define '%%__gpg %s' " % d.getVar('GPG_BIN', True) 45 cmd += "--define '%%__gpg %s' " % d.getVar('GPG_BIN', True)
46 if d.getVar('GPG_PATH', True):
47 cmd += "--define '_gpg_path %s' " % d.getVar('GPG_PATH', True)
44 cmd += ' '.join(files) 48 cmd += ' '.join(files)
45 49
46 # Need to use pexpect for feeding the passphrase 50 # Need to use pexpect for feeding the passphrase