Skip to content

Commit

Permalink
Remove cargo xbuild (#83)
Browse files Browse the repository at this point in the history
* Add nanowait based on calibrated rdtsc

* Add spin_loop_hint

* Update dependencies

* Update cargo config

* Add rlibc dependency to fix compilation bug

* Remove cargo xbuild

* Update crates

* Update readme
  • Loading branch information
vinc authored Jul 31, 2020
1 parent 51a1b77 commit f97191b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .cargo/config → .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[unstable]
build-std = ["core", "compiler_builtins", "alloc"]

[build]
target = "x86_64-moros.json"

Expand Down
19 changes: 13 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ uart_16550 = "0.2.7"
volatile = "0.2.6"
x86_64 = "0.11.1"
vte = "0.8.0"
rlibc = "1.0.0"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ setup:
rustup default nightly
rustup component add rust-src
rustup component add llvm-tools-preview
cargo install cargo-xbuild bootimage
cargo install bootimage

output = vga
keyboard = qwerty
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ Install tools:
$ rustup default nightly
$ rustup component add rust-src
$ rustup component add llvm-tools-preview
$ cargo install cargo-xbuild bootimage
$ cargo install bootimage

Clone repo:

$ git clone https://github.com/vinc/moros
$ cd moros


## Usage
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![no_std]
#![no_main]

extern crate rlibc; // TODO: See https://github.com/rust-lang/wg-cargo-std-aware/issues/53
extern crate alloc;

use bootloader::{entry_point, BootInfo};
Expand Down

0 comments on commit f97191b

Please sign in to comment.