diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-01-25 14:21:34 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-26 22:31:58 +0000 |
commit | bb971577ab308caf7177d4bda290d1fe5ab842db (patch) | |
tree | 49c1811106a9b58717dcfd3c6fe4e4810341c1b3 /meta/classes/sign_package_feed.bbclass | |
parent | aadb879e5b302e405e05443f56611c17868d10b6 (diff) | |
download | poky-bb971577ab308caf7177d4bda290d1fe5ab842db.tar.gz |
meta/lib: new module for handling GPG signing
Add a new Python module (oe.gpg_sign) for handling GPG signing
operations, i.e. currently package and package feed signing. The purpose
is to be able to more easily support various signing backends and to be
able to centralise signing functionality into one place (e.g. package
signing and sstate signing). Currently, only local signing with gpg is
implemented.
[YOCTO #8755]
(From OE-Core rev: 9b3dc1bd4b8336423a3f8f7db0ab5fa6fa0e7257)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sign_package_feed.bbclass')
-rw-r--r-- | meta/classes/sign_package_feed.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/sign_package_feed.bbclass b/meta/classes/sign_package_feed.bbclass index d89bc0b195..d5df8afb9f 100644 --- a/meta/classes/sign_package_feed.bbclass +++ b/meta/classes/sign_package_feed.bbclass | |||
@@ -6,6 +6,10 @@ | |||
6 | # Path to a file containing the passphrase of the signing key. | 6 | # Path to a file containing the passphrase of the signing key. |
7 | # PACKAGE_FEED_GPG_NAME | 7 | # PACKAGE_FEED_GPG_NAME |
8 | # Name of the key to sign with. May be key id or key name. | 8 | # Name of the key to sign with. May be key id or key name. |
9 | # PACKAGE_FEED_GPG_BACKEND | ||
10 | # Optional variable for specifying the backend to use for signing. | ||
11 | # Currently the only available option is 'local', i.e. local signing | ||
12 | # on the build host. | ||
9 | # GPG_BIN | 13 | # GPG_BIN |
10 | # Optional variable for specifying the gpg binary/wrapper to use for | 14 | # Optional variable for specifying the gpg binary/wrapper to use for |
11 | # signing. | 15 | # signing. |
@@ -15,6 +19,8 @@ | |||
15 | inherit sanity | 19 | inherit sanity |
16 | 20 | ||
17 | PACKAGE_FEED_SIGN = '1' | 21 | PACKAGE_FEED_SIGN = '1' |
22 | PACKAGE_FEED_GPG_BACKEND ?= 'local' | ||
23 | |||
18 | 24 | ||
19 | python () { | 25 | python () { |
20 | # Check sanity of configuration | 26 | # Check sanity of configuration |