targets/pipistrello: add argparse functions consistent with kc705

This commit is contained in:
Sebastien Bourdeauducq 2015-11-04 00:29:56 +08:00
parent 421fe08770
commit c5dadf27ff
1 changed files with 7 additions and 2 deletions

View File

@ -130,13 +130,18 @@ class BaseSoC(SoCSDRAM):
self.flash_boot_address = 0x180000 self.flash_boot_address = 0x180000
self.register_rom(self.spiflash.bus, 0x1000000) self.register_rom(self.spiflash.bus, 0x1000000)
soc_pipistrello_args = soc_sdram_args
soc_pipistrello_argdict = soc_sdram_argdict
def main(): def main():
parser = argparse.ArgumentParser(description="MiSoC port to the Pipistrello") parser = argparse.ArgumentParser(description="MiSoC port to the Pipistrello")
builder_args(parser) builder_args(parser)
soc_sdram_args(parser) soc_pipistrello_args(parser)
args = parser.parse_args() args = parser.parse_args()
soc = BaseSoC(**soc_sdram_argdict(args)) soc = BaseSoC(**soc_pipistrello_argdict(args))
builder = Builder(soc, **builder_argdict(args)) builder = Builder(soc, **builder_argdict(args))
builder.build() builder.build()