soc/integration/builder: Now generates exports by default to output_dir with default name unless explicitly specified.

This commit is contained in:
Florent Kermarrec 2024-06-12 11:44:34 +02:00
parent 6ed61e11bc
commit 8d8dd117b6
2 changed files with 6 additions and 5 deletions

View File

@ -6,6 +6,7 @@
[> Added
--------
- cpu/vexiiriscv : Added initial support.
- builder : Added default generation of exports with default names to output_dir.
[> Changed
----------

View File

@ -108,11 +108,11 @@ class Builder:
self.compile_gateware = compile_gateware
self.build_backend = build_backend
# Exports.
self.csr_csv = csr_csv
self.csr_json = csr_json
self.csr_svd = csr_svd
self.memory_x = memory_x
# Exports (Generated by default to output_dir with default name unless explicitly specified).
self.csr_csv = csr_csv if csr_csv else os.path.join(self.output_dir, "csr.csv")
self.csr_json = csr_json if csr_json else os.path.join(self.output_dir, "csr.json")
self.csr_svd = csr_svd if csr_svd else os.path.join(self.output_dir, "csr.svd")
self.memory_x = memory_x if memory_x else os.path.join(self.output_dir, "memory.x")
# BIOS.
self.bios_lto = bios_lto