Skip to content

cortex-m: generate code that compiles on stable #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 12, 2018
Merged

Conversation

japaric
Copy link
Member

@japaric japaric commented Apr 26, 2018

This is still missing some stuff:

  • svd2rust must now generate an interrupts.x linker script and a build script that puts the linker script somewhere the linker can find it. See regenerate using svd2rust v0.13.0 japaric/stm32f103xx#24 for a sample of what those files look like.

  • we have to decide how to organize the svd2rust output. It probably makes sense to generate 3 files on $PWD (lib.rs, build.rs, interrupts.x) for Cortex-M and a single lib.rs for the other targets.

  • I probably broke the other targets; need to test them

@japaric japaric force-pushed the stable-cortex-m branch from 9711d03 to b3f536f Compare May 12, 2018 17:05
@japaric japaric changed the title [WIP] cortex-m: generate code that compiles on stable cortex-m: generate code that compiles on stable May 12, 2018
@japaric
Copy link
Member Author

japaric commented May 12, 2018

bors r+

bors bot added a commit that referenced this pull request May 12, 2018
203: cortex-m: generate code that compiles on stable r=japaric a=japaric

This is still missing some stuff:

- svd2rust must now generate an interrupts.x linker script and a build script that puts the linker script somewhere the linker can find it. See japaric/stm32f103xx#24 for a sample of what those files look like.

- we have to decide how to organize the svd2rust output. It probably makes sense to generate 3 files on $PWD (lib.rs, build.rs, interrupts.x) for Cortex-M and a single lib.rs for the other targets.

- I probably broke the other targets; need to test them

Co-authored-by: Jorge Aparicio <[email protected]>
@japaric
Copy link
Member Author

japaric commented May 12, 2018

@jamesmunns heads up. This PR breaks svd2rust-regress because svd2rust now emits three files in the current directory instead of dumping the generated code to stdout.

@bors
Copy link
Contributor

bors bot commented May 12, 2018

Build failed

@japaric
Copy link
Member Author

japaric commented May 12, 2018

bors r+

bors bot added a commit that referenced this pull request May 12, 2018
203: cortex-m: generate code that compiles on stable r=japaric a=japaric

This is still missing some stuff:

- svd2rust must now generate an interrupts.x linker script and a build script that puts the linker script somewhere the linker can find it. See japaric/stm32f103xx#24 for a sample of what those files look like.

- we have to decide how to organize the svd2rust output. It probably makes sense to generate 3 files on $PWD (lib.rs, build.rs, interrupts.x) for Cortex-M and a single lib.rs for the other targets.

- I probably broke the other targets; need to test them

Co-authored-by: Jorge Aparicio <[email protected]>
@japaric
Copy link
Member Author

japaric commented May 12, 2018

All the vendor tests passed locally so merging manually.

@japaric japaric merged commit 0185571 into master May 12, 2018
@bors
Copy link
Contributor

bors bot commented May 12, 2018

Build failed

@japaric japaric deleted the stable-cortex-m branch May 12, 2018 17:55
bors bot added a commit to rust-embedded/cortex-m-quickstart that referenced this pull request May 12, 2018
29: use less unstable dependencies r=japaric a=japaric

This PR and the ones at the bottom reduce the number of unstable features needed for Cortex-M development to a single one: `lang = "panic_fmt"`, which already has a path towards stabilization and which we hope to get on stable by 1.28.

[Check out the temporary documentation](https://japaric.github.io/cortex-m-quickstart/cortex_m_quickstart/index.html) (we still need more docs) to try out this preview. 

We would love your input on [these unresolved questions](rust-embedded/cortex-m-rt#69 (comment))

This PR depends on:

- rust-embedded/cortex-m-rt#69
- rust-embedded/cortex-m#88
- rust-embedded/panic-semihosting#2
- rust-embedded/svd2rust#203
- japaric/stm32f103xx#24

Co-authored-by: Jorge Aparicio <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant