forked from wbthomason/ironkernel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PrimeCell UART impl, updated to rust-master
Updated the UART implementation and modified the 926 to use it. Also have updated to use rust's master branch, will try to maintain compatibilty therewith. Some odd fixes to do so (instance: extracting core.bc from libcore*.rlib doesn't work, so compiling core.bc on its own.)
- Loading branch information
Showing
10 changed files
with
166 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
arch=arm | ||
RUST_ROOT := /usr | ||
RUST_ROOT := /home/cceckman/rust-master | ||
LLVM_ROOT := /usr | ||
GCC_PREFIX := /usr/bin/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f3147a9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rust master accepts multiple output types. Pass
--emit=bc,link
(
--crate-type=rlib
is implied inrust-core/core/lib.rs
, and--emit=link
seems to be default)f3147a9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check out https://gist.github.com/cceckman/9613442 -
--emit bc,link
seems to produce a different core.bc than just--emit bc
, though please check me on that.f3147a9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created issue rust-lang/rust#12992; hopefully someone can verify as a rustc bug or not.
f3147a9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll use llvm-dis to check that.It's a rustc bug.