From 72854b8bef3af6899d4cc1a2e2786f573b32a15c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 30 May 2024 09:19:24 +0200 Subject: [PATCH] soc/integration/soc: Move adding constant for identifier directly to add_identifier method. --- litex/soc/integration/soc.py | 1 + litex/soc/integration/soc_core.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 8fc806fa2e..394485f759 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -1473,6 +1473,7 @@ def add_identifier(self, name="identifier", identifier="LiteX SoC", with_build_t else: self.add_config("BIOS_NO_BUILD_TIME") self.add_module(name=name, module=Identifier(identifier)) + self.add_constant(name, identifier) # Add UART ------------------------------------------------------------------------------------- def add_uart(self, name="uart", uart_name="serial", baudrate=115200, fifo_depth=16): diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index 14e3b53bed..34a430bfca 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -247,7 +247,6 @@ def __init__(self, platform, clk_freq, # Add Identifier. if ident != "": self.add_identifier("identifier", identifier=ident, with_build_time=ident_version) - self.add_constant("identifier", ident) # Add UARTBone. if with_uartbone: