do not attempt to build SDRAM PHY header when SDRAM is not present

This commit is contained in:
Sebastien Bourdeauducq 2013-11-24 23:51:29 +01:00
parent b212e0279d
commit 08b09fb02a
1 changed files with 3 additions and 2 deletions

View File

@ -64,6 +64,7 @@ def main():
write_to_file("software/include/generated/regions.ld", boilerplate + linker_header)
csr_header = cpuif.get_csr_header(soc.csr_base, soc.csrbankarray, soc.interrupt_map)
write_to_file("software/include/generated/csr.h", boilerplate + csr_header)
if hasattr(soc, "ddrphy"):
sdram_phy_header = initsequence.get_sdram_phy_header(soc.ddrphy)
write_to_file("software/include/generated/sdram_phy.h", boilerplate + sdram_phy_header)
if args.csr_csv: