soc/integration/soc: Move adding constant for identifier directly to add_identifier method.

This commit is contained in:
Florent Kermarrec 2024-05-30 09:19:24 +02:00
parent d9332da433
commit 72854b8bef
2 changed files with 1 additions and 1 deletions

View File

@ -1473,6 +1473,7 @@ class LiteXSoC(SoC):
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):

View File

@ -247,7 +247,6 @@ class SoCCore(LiteXSoC):
# 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: