mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 00:32:12 +02:00
signing-keys: Make signing keys the only publisher of keys
Previously the keys were put into the os-release package. The package indexing code was also deploying the keys rather than only using the keys. This change makes signing-keys.bb the only publisher of the keys and also uses standard tasks that already have sstate. (From OE-Core rev: 1e38068ac38dfd067655dfd41464e28439179306) Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
64ab17b707
commit
7bb9e8ddbf
@@ -27,12 +27,7 @@ python () {
|
||||
for var in ('PACKAGE_FEED_GPG_NAME', 'PACKAGE_FEED_GPG_PASSPHRASE_FILE'):
|
||||
if not d.getVar(var, True):
|
||||
raise_sanity_error("You need to define %s in the config" % var, d)
|
||||
|
||||
# Set expected location of the public key
|
||||
d.setVar('PACKAGE_FEED_GPG_PUBKEY',
|
||||
os.path.join(d.getVar('STAGING_ETCDIR_NATIVE', False),
|
||||
'PACKAGE-FEED-GPG-PUBKEY'))
|
||||
}
|
||||
|
||||
do_package_index[depends] += "signing-keys:do_export_public_keys"
|
||||
do_rootfs[depends] += "signing-keys:do_export_public_keys"
|
||||
do_package_index[depends] += "signing-keys:do_deploy"
|
||||
do_rootfs[depends] += "signing-keys:do_populate_sysroot"
|
||||
|
||||
@@ -28,8 +28,11 @@ python () {
|
||||
raise_sanity_error("You need to define %s in the config" % var, d)
|
||||
|
||||
# Set the expected location of the public key
|
||||
d.setVar('RPM_GPG_PUBKEY', os.path.join(d.getVar('STAGING_ETCDIR_NATIVE', False),
|
||||
'RPM-GPG-PUBKEY'))
|
||||
d.setVar('RPM_GPG_PUBKEY', os.path.join(d.getVar('STAGING_DIR_TARGET', False),
|
||||
d.getVar('sysconfdir', False),
|
||||
'pki',
|
||||
'rpm-gpg',
|
||||
'RPM-GPG-KEY-${DISTRO_VERSION}'))
|
||||
}
|
||||
|
||||
python sign_rpm () {
|
||||
@@ -44,5 +47,5 @@ python sign_rpm () {
|
||||
d.getVar('RPM_GPG_PASSPHRASE_FILE', True))
|
||||
}
|
||||
|
||||
do_package_index[depends] += "signing-keys:do_export_public_keys"
|
||||
do_rootfs[depends] += "signing-keys:do_export_public_keys"
|
||||
do_package_index[depends] += "signing-keys:do_deploy"
|
||||
do_rootfs[depends] += "signing-keys:do_populate_sysroot"
|
||||
|
||||
Reference in New Issue
Block a user