treewide: replace static mentions of repo name with dynamic ones
This does change the CONFIG_QEMU_FIRMWAREPATH to "/nonexistant", but
since we are using OVMF everywhere anyway this should behave the same.
Closes monogon-dev/monogon#343
Change-Id: I865e5ba5e62579c3ff1f31a25e46cbcb78dba688
Reviewed-on: https://review.monogon.dev/c/monogon/+/3450
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
Tested-by: Jenkins CI
diff --git a/third_party/qemu/patches/bazel_support.patch b/third_party/qemu/patches/bazel_support.patch
index 2b2c66a..9c78ff8 100644
--- a/third_party/qemu/patches/bazel_support.patch
+++ b/third_party/qemu/patches/bazel_support.patch
@@ -1684,7 +1684,7 @@
+def _impl_cc_qemu_trace(ctx):
+ outs = []
+ for src in ctx.files.srcs:
-+ name = src.path.replace("external/_main~_repo_rules~qemu/", "").replace("/trace-events", "").replace("/", "_")
++ name = src.path.replace(ctx.label.workspace_root + "/", "").replace("/trace-events", "").replace("/", "_")
+ if name == "trace-events":
+ name = "root"
+ trace_h = ctx.actions.declare_file("trace-{}.h".format(name))