mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
make.py fix indent
This commit is contained in:
parent
5e2e9338d2
commit
cb38580400
1 changed files with 19 additions and 19 deletions
38
make.py
38
make.py
|
@ -145,27 +145,27 @@ CPU type: {}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
""".format(platform_name, args.target, top_class.__name__, soc.cpu_type)
|
""".format(platform_name, args.target, top_class.__name__, soc.cpu_type)
|
||||||
if isinstance(soc.cpu_or_bridge, CPU):
|
if isinstance(soc.cpu_or_bridge, CPU):
|
||||||
cpu_mak = cpuif.get_cpu_mak(soc.cpu_type)
|
cpu_mak = cpuif.get_cpu_mak(soc.cpu_type)
|
||||||
write_to_file("software/include/generated/cpu.mak", cpu_mak)
|
write_to_file("software/include/generated/cpu.mak", cpu_mak)
|
||||||
linker_output_format = cpuif.get_linker_output_format(soc.cpu_type)
|
linker_output_format = cpuif.get_linker_output_format(soc.cpu_type)
|
||||||
write_to_file("software/include/generated/output_format.ld", linker_output_format)
|
write_to_file("software/include/generated/output_format.ld", linker_output_format)
|
||||||
|
|
||||||
linker_regions = cpuif.get_linker_regions(soc.memory_regions)
|
linker_regions = cpuif.get_linker_regions(soc.memory_regions)
|
||||||
write_to_file("software/include/generated/regions.ld", boilerplate + linker_regions)
|
write_to_file("software/include/generated/regions.ld", boilerplate + linker_regions)
|
||||||
|
|
||||||
for sdram_phy in ["sdrphy", "ddrphy"]:
|
for sdram_phy in ["sdrphy", "ddrphy"]:
|
||||||
if hasattr(soc, sdram_phy):
|
if hasattr(soc, sdram_phy):
|
||||||
sdram_phy_header = initsequence.get_sdram_phy_header(getattr(soc, sdram_phy))
|
sdram_phy_header = initsequence.get_sdram_phy_header(getattr(soc, sdram_phy))
|
||||||
write_to_file("software/include/generated/sdram_phy.h", boilerplate + sdram_phy_header)
|
write_to_file("software/include/generated/sdram_phy.h", boilerplate + sdram_phy_header)
|
||||||
try:
|
try:
|
||||||
flash_boot_address = soc.flash_boot_address
|
flash_boot_address = soc.flash_boot_address
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
flash_boot_address = None
|
flash_boot_address = None
|
||||||
mem_header = cpuif.get_mem_header(soc.memory_regions, flash_boot_address)
|
mem_header = cpuif.get_mem_header(soc.memory_regions, flash_boot_address)
|
||||||
write_to_file("software/include/generated/mem.h", boilerplate + mem_header)
|
write_to_file("software/include/generated/mem.h", boilerplate + mem_header)
|
||||||
csr_header = cpuif.get_csr_header(soc.csr_regions, soc.interrupt_map)
|
csr_header = cpuif.get_csr_header(soc.csr_regions, soc.interrupt_map)
|
||||||
write_to_file("software/include/generated/csr.h", boilerplate + csr_header)
|
write_to_file("software/include/generated/csr.h", boilerplate + csr_header)
|
||||||
|
|
||||||
if actions["build-csr-csv"]:
|
if actions["build-csr-csv"]:
|
||||||
csr_csv = cpuif.get_csr_csv(soc.csr_regions)
|
csr_csv = cpuif.get_csr_csv(soc.csr_regions)
|
||||||
|
|
Loading…
Reference in a new issue