diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2015-10-14 16:46:39 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-24 12:17:11 +0100 |
commit | 7ea2f8aca832433f448a79d103c945a63ac6474b (patch) | |
tree | 08c52098d92f25435d9208637cc8ff1f8697306d | |
parent | 3533552050d0f91b669c6939755c5f6efefa9d58 (diff) | |
download | openembedded-core-7ea2f8aca832433f448a79d103c945a63ac6474b.tar.gz openembedded-core-7ea2f8aca832433f448a79d103c945a63ac6474b.tar.bz2 openembedded-core-7ea2f8aca832433f448a79d103c945a63ac6474b.zip |
sign_rpm.bbclass: introduce GPG_PATH variable
This bitbake configuration variable can be used to define the gpg home
directory.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-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 0aa4cd841c..23aea42ba3 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 |