To enable signing RPM packages, you must set up the
following configurations in either your
local.config
or
distro.config
file:
# Inherit sign_rpm.bbclass to enable signing functionality INHERIT += " sign_rpm" # Define the GPG key that will be used for signing. RPM_GPG_NAME = "key_name
" # Provide passphrase for the key RPM_GPG_PASSPHRASE = "passphrase
"
key_name
and
passphrase
Aside from the
RPM_GPG_NAME
and
RPM_GPG_PASSPHRASE
variables in the
previous example, two optional variables related to signing
exist:
GPG_BIN
:
Specifies a gpg
binary/wrapper
that is executed when the package is signed.
GPG_PATH
:
Specifies the gpg
home
directory used when the package is signed.