hackndev / zinc

The bare metal stack for rust
zinc.rs
Apache License 2.0
1k stars 100 forks source link

Generate layout.ld from templates + data #408

Open mcoffin opened 7 years ago

mcoffin commented 7 years ago

Fix #329

Obvously, k20 is still a special case, but I think this gives a good base on which to build a generator that will work generically accross all supported MCUs. (We still have #109) to track the k20 layout in.

I would make an attempt, but I don't have a k20 board or anything, so maybe @bgamari could take a look at some additions to this generator?

I think the way forward is to have like flash_config: Option[McuFlashConfig] in McuLayout and then struct McuFlashConfig { ... } elsewhere... but that could be a naive solution that I just came up with at first glance.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 85.657% when pulling c3e54e6e96ce500fbb4714029cdac715f60bd825 on mcoffin:layout-mcu#329 into 64aa605167813f8e360ce6173109acb632dee33b on hackndev:master.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 85.657% when pulling c3e54e6e96ce500fbb4714029cdac715f60bd825 on mcoffin:layout-mcu#329 into 64aa605167813f8e360ce6173109acb632dee33b on hackndev:master.

mcoffin commented 7 years ago

Looks like rebuilding everything for every example is starting to bit us in the butt a little. Might have to split each example in to it's own travis matrix now, which would... suck to say the least. Or at least provide a way to build example subsets until we could finally use cargo's [[example]] again.

mcoffin commented 7 years ago

@farcaller I'm gonna hold off on this until we can fix the build times issue, especially since it doesn't truly add a ton of value quite yet until the generator can get more advanced.