integration/builder: generate flash_boot address to csv
authorMateusz Holenko <mholenko@antmicro.com>
Wed, 5 Jun 2019 15:27:27 +0000 (17:27 +0200)
committerMateusz Holenko <mholenko@antmicro.com>
Wed, 5 Jun 2019 15:37:23 +0000 (17:37 +0200)
litex/soc/integration/builder.py

index 8aecd3912731a10aa0507b88af9c310ab156c15d..c9b75ef3ecf8ad1d6edabf5939aeb448888fbcf0 100755 (executable)
@@ -125,6 +125,10 @@ class Builder:
         if shadow_base:
             constants.append(('shadow_base',  shadow_base))
 
+        flash_boot_address = getattr(self.soc, "flash_boot_address", None)
+        if flash_boot_address:
+            constants.append(('flash_boot_address',  flash_boot_address))
+
         csr_dir = os.path.dirname(os.path.realpath(self.csr_csv))
         os.makedirs(csr_dir, exist_ok=True)
         write_to_file(