summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes
diff options
context:
space:
mode:
authorGeorge Liu <liuxiwei@inspur.com>2021-05-28 11:12:04 +0300
committerGeorge Liu <liuxiwei@inspur.com>2021-06-03 04:22:24 +0300
commit77a1904b1833cd3b70b0dfd68671745eaacc9b19 (patch)
treed07483d8c486b2ce4543d9c9d0eba10d99d8d074 /meta-phosphor/classes
parentbb9160afb99eaf8646a963195d2d9b7b3ecd8e81 (diff)
downloadopenbmc-77a1904b1833cd3b70b0dfd68671745eaacc9b19.tar.xz
image_type_phosphor: fix signatures generation
- We will hit a problem intermittently when we build image-bmc: We have 2 tasks running in parallel, the `do_generate_static` and `do_generate_static_alltar`. Both specify to use the same work directory, and both call to generate the signature files: do_generate_static_tar[dirs] = " ${S}/static" do_generate_static_alltar[dirs] = "${S}/static" Depending on timing, one task can remove the `image-full` file from the directory and the other task won't find it, and cause built failed. Error message: image-full: No such file or directory. - Resolves openbmc/openbmc#3797 Tested: built obmc-phopshor-image successfully. Temporarily solve openbmc/issues/3797 Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I7147f6c8db4f3a2a0c0c9bd54ac384ee8882b233
Diffstat (limited to 'meta-phosphor/classes')
-rw-r--r--meta-phosphor/classes/image_types_phosphor.bbclass1
1 files changed, 0 insertions, 1 deletions
diff --git a/meta-phosphor/classes/image_types_phosphor.bbclass b/meta-phosphor/classes/image_types_phosphor.bbclass
index 1ec8706cb..c347fdba3 100644
--- a/meta-phosphor/classes/image_types_phosphor.bbclass
+++ b/meta-phosphor/classes/image_types_phosphor.bbclass
@@ -338,7 +338,6 @@ make_signatures() {
cat $sort_signature_files > image-full
openssl dgst -sha256 -sign ${SIGNING_KEY} -out image-full.sig image-full
signature_files="${signature_files} image-full.sig"
- rm -rf image-full
fi
}