Skip to content
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

Bring target specs in line with upstream #85

Merged
merged 9 commits into from
Oct 9, 2020
Merged

Bring target specs in line with upstream #85

merged 9 commits into from
Oct 9, 2020

Conversation

Rahix
Copy link
Owner

@Rahix Rahix commented Oct 9, 2020

@explicite, I've reviewed all the changes which upstream did since I initially created these target files. I have carefully done each change as a separate commit so it is possible to retrace what happened. As far as I can tell, this does not produce any regressions in avr-hal, but let's see what CI has to say about this.

Finally fixes #32.

Rahix added 9 commits October 9, 2020 18:42
To make future diffs more readable, sort all keys in json target
spec-files alphabetically.  No changes to the content in this commit.

Signed-off-by: Rahix <rahix@rahix.de>
Signed-off-by: Rahix <rahix@rahix.de>
Signed-off-by: Rahix <rahix@rahix.de>
`target-env` and `target-vendor` are now `env` and `vendor` respectively.

Signed-off-by: Rahix <rahix@rahix.de>
Both options have the same value by default, let's not re-specify them
in each target file.

Signed-off-by: Rahix <rahix@rahix.de>
AVR targets do not have native CAS operations but the `atomic-cas`
target option defaults to true.  Explicitly set it to false.

Signed-off-by: Rahix <rahix@rahix.de>
Actually, rustc adds `-Wl,--gc-sections` by itself already so this part
is redundant.

Signed-off-by: Rahix <rahix@rahix.de>
Bring out target specs closer to upstream by using the same linker
options in the target spec files.

Signed-off-by: Rahix <rahix@rahix.de>
Fixup the remaining little bits so the sync-script generates the exact
same targets we currently use.

Signed-off-by: Rahix <rahix@rahix.de>
@Rahix
Copy link
Owner Author

Rahix commented Oct 9, 2020

CI's happy :)

@Rahix Rahix merged commit bad9277 into master Oct 9, 2020
@Rahix Rahix deleted the spec-update branch October 9, 2020 18:46
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.

Cleanup target files
1 participant