summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Lee <timlee660101@gmail.com>2023-06-15 10:24:13 +0300
committerPatrick Williams <patrick@stwcx.xyz>2023-06-16 19:44:12 +0300
commitd44525947397478f2cde687b8c6cbc9f7716afd3 (patch)
treea39cadbc92468f727414b77d1c86b18082cbcc00
parent38c87707ed39389970a8ee74727026c17c8431fa (diff)
downloadopenbmc-d44525947397478f2cde687b8c6cbc9f7716afd3.tar.xz
meta-phosphor: npcm8xx.bbclass: sign images for TIP mode only
For NO TIP mode there is no need for signatures at all. Expected result: | TIP_IMAGE = True | TIP_IMAGE = False | | SECURED_IMAGE = True | Need sign | No need sign | | SECURED_IMAGE = False | No need sign | No need sign Signed-off-by: Tim Lee <timlee660101@gmail.com> Change-Id: Ia48960732f9090f46f1944ee6bd51c1f0b121abe
-rw-r--r--meta-phosphor/classes/image_types_phosphor_nuvoton_npcm8xx.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-phosphor/classes/image_types_phosphor_nuvoton_npcm8xx.bbclass b/meta-phosphor/classes/image_types_phosphor_nuvoton_npcm8xx.bbclass
index eb78494b05..86c54f5eb1 100644
--- a/meta-phosphor/classes/image_types_phosphor_nuvoton_npcm8xx.bbclass
+++ b/meta-phosphor/classes/image_types_phosphor_nuvoton_npcm8xx.bbclass
@@ -91,9 +91,9 @@ check_keys() {
fi
}
-# Sign images for secure os be enabled
+# Sign images for secure os be enabled and TIP mode only
do_sign_binary() {
- if [ "${SECURED_IMAGE}" != "True" ]; then
+ if [ "${SECURED_IMAGE}" != "True" -o "${TIP_IMAGE}" != "True" ]; then
return
fi
checked=`check_keys`