m-labs / migen

A Python toolbox for building complex digital hardware
https://m-labs.hk/migen
Other
1.19k stars 209 forks source link

mkdir_noerror() don't create multideph directories #47

Closed rogeriomm closed 7 years ago

rogeriomm commented 8 years ago

At "https://github.com/m-labs/migen/blob/master/migen/build/tools.py#L8" mkdir_noerror() is not capable to make multideph directories. "os.makedirs()" can do this

sbourdeauducq commented 8 years ago

Ok. Why is it a problem?

rogeriomm commented 8 years ago

I'm creating a new builder based on "https://github.com/m-labs/misoc/blob/master/misoc/integration/builder.py" that generate a SOC that uses an external ARM Cortex M4 instead the MISOC HDL processor. On my "builder_arm.py" file I call "self.soc.build(build_dir="stm32/gateware)" and it fails because the "./stm32" directory don't exist. It appears to me that "soc.build()" must work with multidepth directories