-
Notifications
You must be signed in to change notification settings - Fork 7
Home
A human readable kernel that can be used for experimentation and potentially some real world scenarios.
-
Download binutils-2.24 from ftp://ftp.gnu.org/gnu/binutils
-
Untar the contents - say at /path/to/binutils-2.24
-
Go to /path/to/binutils-2.24 and run the configure script as follows
./configure --prefix=/path/to/binutils/install --target=x86_64-linux-gnu --disable-nls --disable-werror
make
make install
- Set the following environment variables (assuming that build went through successfully in step 3)
ARCHIVE=/path/to/binutils/install/bin/x86_64-linux-gnu-ar
LINKEDITOR=/path/to/binutils/install/bin/x86_64-linux-gnu-ld
I have not tried with it but pre-built binutils can be found here - http://crossgcc.rts-software.org/doku.php?id=compiling_for_linux
-
Download both Linux and Mac nightly binaries from http://www.rust-lang.org/install.html
-
Uzip the contents under a common directory - say, /path/to/RUST. So, /path/to/RUST will contain the following subdirectories rust-nightly-x86_64-unknown-linux-gnu and rust-nightly-x86_64-apple-darwin
-
Edit Rules.inc and update RUST_ROOT=/path/to/RUST
That's it, just hit make and kernel build should go through.
-
Download Linux nightly binaries from http://www.rust-lang.org/install.html
-
Uzip the contents under a common directory - say, /path/to/RUST. So, /path/to/RUST will contain the following subdirectory rust-nightly-x86_64-unknown-linux-gnu
-
Edit Rules.inc and update RUST_ROOT=/path/to/RUST
That's it, just hit make and kernel build should go through.
make run
make run assumes that qemu-system-x86_64 is present in the path. You can get qemu from here