CIP-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [isar-cip-core][PATCH] Fix file timestamps are not reproducible for EFI certificates
@ 2026-09-18  8:50 Shivanand.Kunijadar
  2026-09-18 10:54 ` [cip-dev] " MOESSBAUER, Felix
  0 siblings, 1 reply; 12+ messages in thread
From: Shivanand.Kunijadar @ 2026-09-18  8:50 UTC (permalink / raw)
  To: cip-dev, jan.kiszka
  Cc: Shivanand Kunijadar, kazuhiro.hayashi.f74, kumar.dinesh.h95

From: Shivanand Kunijadar <Shivanand.Kunijadar@toshiba-tsip.com>

Closes https://gitlab.com/cip-project/cip-core/isar-cip-core/-/work_items/162

Signed-off-by: Shivanand Kunijadar <Shivanand.Kunijadar@toshiba-tsip.com>
---
 .../secure-boot-efi-certs/single-key-to-efi-certs_0.1.bb  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/recipes-devtools/secure-boot-efi-certs/single-key-to-efi-certs_0.1.bb b/recipes-devtools/secure-boot-efi-certs/single-key-to-efi-certs_0.1.bb
index 263f794..6a5357d 100644
--- a/recipes-devtools/secure-boot-efi-certs/single-key-to-efi-certs_0.1.bb
+++ b/recipes-devtools/secure-boot-efi-certs/single-key-to-efi-certs_0.1.bb
@@ -24,6 +24,12 @@ DPKG_ARCH = "all"
 
 do_prepare_build() {
     deb_debianize
+    if [ -n "${SOURCE_DATE_EPOCH}" ]; then
+        timestamp="$(TZ=UTC date -d @${SOURCE_DATE_EPOCH} '+%Y-%m-%d %H:%M:%S')"
+        timestamp_opt="-t \"$timestamp\""
+    else
+        timestamp_opt=""
+    fi
 
     cat <<EOF > ${S}/debian/${BPN}.install
 db.auth usr/share/secure-boot-efi-certs
@@ -35,7 +41,7 @@ EOF
 
 override_dh_auto_build:
 	cert-to-efi-sig-list /usr/share/secure-boot-secrets/secure-boot.pem PK.esl
-	sign-efi-sig-list -k /usr/share/secure-boot-secrets/secure-boot.key \
+	sign-efi-sig-list ${timestamp_opt} -k /usr/share/secure-boot-secrets/secure-boot.key \
 	    -c /usr/share/secure-boot-secrets/secure-boot.pem PK PK.esl PK.auth
 	cp PK.auth KEK.auth
 	cp PK.auth db.auth
-- 
2.39.5




^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-09-21  8:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-18  8:50 [isar-cip-core][PATCH] Fix file timestamps are not reproducible for EFI certificates Shivanand.Kunijadar
2026-09-18 10:54 ` [cip-dev] " MOESSBAUER, Felix
2026-09-18 11:01   ` Jan Kiszka
2026-09-18 11:21     ` MOESSBAUER, Felix
2026-09-19 11:13       ` Kunijadar Shivanand
2026-09-21  5:16       ` [cip-dev] " Jan Kiszka
2026-09-21  7:37         ` MOESSBAUER, Felix
2026-09-21  7:49           ` Jan Kiszka
2026-09-21  7:53             ` MOESSBAUER, Felix
2026-09-21  7:59               ` Jan Kiszka
2026-09-21  8:07                 ` MOESSBAUER, Felix
2026-09-21  8:11                   ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox