summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-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