diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/sign_rpm.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sign_rpm.bbclass b/meta/classes/sign_rpm.bbclass index 0aa4cd841c3..23aea42ba32 100644 --- a/meta/classes/sign_rpm.bbclass +++ b/meta/classes/sign_rpm.bbclass @@ -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 |