summaryrefslogtreecommitdiffstats
path: root/meta/classes/sign_rpm.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sign_rpm.bbclass')
-rw-r--r--meta/classes/sign_rpm.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/sign_rpm.bbclass b/meta/classes/sign_rpm.bbclass
index c49406c74d..6796780ee4 100644
--- a/meta/classes/sign_rpm.bbclass
+++ b/meta/classes/sign_rpm.bbclass
@@ -19,9 +19,12 @@
19# GPG_BIN 19# GPG_BIN
20# Optional variable for specifying the gpg binary/wrapper to use for 20# Optional variable for specifying the gpg binary/wrapper to use for
21# signing. 21# signing.
22# RPM_GPG_SIGN_CHUNK
23# Optional variable indicating the number of packages used per gpg
24# invocation
22# GPG_PATH 25# GPG_PATH
23# Optional variable for specifying the gnupg "home" directory: 26# Optional variable for specifying the gnupg "home" directory:
24# 27
25inherit sanity 28inherit sanity
26 29
27RPM_SIGN_PACKAGES='1' 30RPM_SIGN_PACKAGES='1'
@@ -29,6 +32,7 @@ RPM_SIGN_FILES ?= '0'
29RPM_GPG_BACKEND ?= 'local' 32RPM_GPG_BACKEND ?= 'local'
30# SHA-256 is used by default 33# SHA-256 is used by default
31RPM_FILE_CHECKSUM_DIGEST ?= '8' 34RPM_FILE_CHECKSUM_DIGEST ?= '8'
35RPM_GPG_SIGN_CHUNK ?= "${BB_NUMBER_THREADS}"
32 36
33 37
34python () { 38python () {
@@ -56,6 +60,7 @@ python sign_rpm () {
56 d.getVar('RPM_GPG_NAME'), 60 d.getVar('RPM_GPG_NAME'),
57 d.getVar('RPM_GPG_PASSPHRASE'), 61 d.getVar('RPM_GPG_PASSPHRASE'),
58 d.getVar('RPM_FILE_CHECKSUM_DIGEST'), 62 d.getVar('RPM_FILE_CHECKSUM_DIGEST'),
63 int(d.getVar('RPM_GPG_SIGN_CHUNK')),
59 d.getVar('RPM_FSK_PATH'), 64 d.getVar('RPM_FSK_PATH'),
60 d.getVar('RPM_FSK_PASSWORD')) 65 d.getVar('RPM_FSK_PASSWORD'))
61} 66}