make.py fix indent
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 27 Feb 2015 17:58:36 +0000 (18:58 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 27 Feb 2015 17:58:36 +0000 (18:58 +0100)
make.py

diff --git a/make.py b/make.py
index 8e9d804e7123bfd21a7e971666e3861fbc00c3ee..0f806cfbaed3bec1f0a9f0f19f812f46c47e9dd8 100755 (executable)
--- a/make.py
+++ b/make.py
@@ -145,27 +145,27 @@ CPU type:  {}
  */
 
 """.format(platform_name, args.target, top_class.__name__, soc.cpu_type)
-       if isinstance(soc.cpu_or_bridge, CPU):
-               cpu_mak = cpuif.get_cpu_mak(soc.cpu_type)
-               write_to_file("software/include/generated/cpu.mak", cpu_mak)
-               linker_output_format = cpuif.get_linker_output_format(soc.cpu_type)
-               write_to_file("software/include/generated/output_format.ld", linker_output_format)
-
-               linker_regions = cpuif.get_linker_regions(soc.memory_regions)
-               write_to_file("software/include/generated/regions.ld", boilerplate + linker_regions)
-
-               for sdram_phy in ["sdrphy", "ddrphy"]:
-                       if hasattr(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)
-       try:
-               flash_boot_address = soc.flash_boot_address
-       except AttributeError:
-               flash_boot_address = None
-       mem_header = cpuif.get_mem_header(soc.memory_regions, flash_boot_address)
-       write_to_file("software/include/generated/mem.h", boilerplate + mem_header)
-       csr_header = cpuif.get_csr_header(soc.csr_regions, soc.interrupt_map)
-       write_to_file("software/include/generated/csr.h", boilerplate + csr_header)
+               if isinstance(soc.cpu_or_bridge, CPU):
+                       cpu_mak = cpuif.get_cpu_mak(soc.cpu_type)
+                       write_to_file("software/include/generated/cpu.mak", cpu_mak)
+                       linker_output_format = cpuif.get_linker_output_format(soc.cpu_type)
+                       write_to_file("software/include/generated/output_format.ld", linker_output_format)
+
+                       linker_regions = cpuif.get_linker_regions(soc.memory_regions)
+                       write_to_file("software/include/generated/regions.ld", boilerplate + linker_regions)
+
+                       for sdram_phy in ["sdrphy", "ddrphy"]:
+                               if hasattr(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)
+               try:
+                       flash_boot_address = soc.flash_boot_address
+               except AttributeError:
+                       flash_boot_address = None
+               mem_header = cpuif.get_mem_header(soc.memory_regions, flash_boot_address)
+               write_to_file("software/include/generated/mem.h", boilerplate + mem_header)
+               csr_header = cpuif.get_csr_header(soc.csr_regions, soc.interrupt_map)
+               write_to_file("software/include/generated/csr.h", boilerplate + csr_header)
 
        if actions["build-csr-csv"]:
                csr_csv = cpuif.get_csr_csv(soc.csr_regions)