From 6a33b1c9e1666adc7707195c70fa4b0639247b53 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Thu, 28 Nov 2024 18:10:59 +0100 Subject: [PATCH] [HACK] Always transition to earlgrey in golden toolchain Unfortunately, opentitantool is far from compiling with darjeeling due to many explicit dependencies on earlgrey. At the same time, opentitantool provides many operations which are not earlgrey-specific at all such as flash image generation, signing, modid checks, etc This commit introduces a necessary hack: in the host transition for the golden toolchain, always set the top to earlgrey. This way we can ensure that opentitantool will compile. For now this does not introduce any problem but this is not a proper fix. Signed-off-by: Amaury Pouly --- rules/host.bzl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rules/host.bzl b/rules/host.bzl index 434713d9bcd7e6..fb940edf176d48 100644 --- a/rules/host.bzl +++ b/rules/host.bzl @@ -23,6 +23,9 @@ def _host_tools_transition_impl(settings, attr): "//hw/bitstream/universal:rom": "//hw/bitstream/universal:none", "//hw/bitstream/universal:otp": "//hw/bitstream/universal:none", "//hw/bitstream/universal:env": "//hw/bitstream/universal:none", + # WARNING This is a horrible hack: when we transition to host, we pretend + # that this is earlgrey so opentitantool can compile... + "//hw/top": "earlgrey", } return ret @@ -39,5 +42,6 @@ host_tools_transition = transition( "//hw/bitstream/universal:rom", "//hw/bitstream/universal:otp", "//hw/bitstream/universal:env", + "//hw/top", ], )