Skip to content

Commit

Permalink
soc/integration/soc: Move adding constant for identifier directly to …
Browse files Browse the repository at this point in the history
…add_identifier method.
  • Loading branch information
enjoy-digital committed May 30, 2024
1 parent d9332da commit 72854b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions litex/soc/integration/soc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion litex/soc/integration/soc_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 72854b8

Please # to comment.