integration/soc: set build_name to platform.name when not specified.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 21 May 2020 07:05:45 +0000 (09:05 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 21 May 2020 07:05:45 +0000 (09:05 +0200)
litex/soc/integration/soc.py

index a31a3a63edd5801112a6ae8ce73bd411f5d8fe42..8d5c27975feff535d1e823447214c51bc31eb338 100644 (file)
@@ -931,6 +931,8 @@ class SoC(Module):
 
     # SoC build ------------------------------------------------------------------------------------
     def build(self, *args, **kwargs):
+        self.build_name = kwargs.pop("build_name", self.platform.name)
+        kwargs.update({"build_name": self.build_name})
         return self.platform.build(self, *args, **kwargs)
 
 # LiteXSoC -----------------------------------------------------------------------------------------