From ba3802dce77a13e42d7f20673e518e62c8ad40a0 Mon Sep 17 00:00:00 2001 From: James Wainwright Date: Fri, 7 Feb 2025 11:16:15 +0000 Subject: [PATCH] [bazel] Disable QEMU flashgen ELF sanity checks Signed-off-by: James Wainwright --- rules/opentitan/qemu.bzl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rules/opentitan/qemu.bzl b/rules/opentitan/qemu.bzl index f4b204263f266..c359c42546540 100644 --- a/rules/opentitan/qemu.bzl +++ b/rules/opentitan/qemu.bzl @@ -184,6 +184,11 @@ def gen_flash(ctx, **kwargs): firmware_bin.path, "-X", firmware_elf.path, + # Skip `flashgen`'s ELF/binary mtime checks - it will fail if the + # binary is older than the ELF which usually suggests that the + # binary has not been regenerated, however Bazel often messes with + # mtimes causing false negatives. + "--ignore-time", out.path, ], mnemonic = "FlashGen",