Skip to content

Commit

Permalink
Added Build Manual For Windows 10 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
Lavender204 committed Jun 2, 2018
1 parent 4d04162 commit 3916837
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,26 @@ Requirements to build
#### Windows 10 or later
Starting with Windows 10, you can use Ubuntu Bash. You can run it by typing C:\Windows\System32\bash.exe. For more information, please visit https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/

You need to install Rust on Ubuntu Bash. You can install Rust using the following command.
You need to install Rust, qemu, mtools on Ubuntu Bash. You can install Rust using the following command.
```
$ curl https://sh.rustup.rs -sSf | sh
$ sudo apt install qemu
$ sudo apt install mtools
```
This script will download and install the rustup-init executable for your current platform.

After the installation is complete, you should clone the SnowFlake repository.
```
$ git clone https://github.com/SnowFlake/SnowFlake.git
```
To build SnowFlake as an x86_64 target, x86_64-elf cross-compilation is required. If you do not have the x86_64-elf compiler, and your system is x86_64, you can use the 'x86_64-linux_env.sh' script.
To build SnowFlake as an x86_64 target, x86_64-elf cross-compilation is required. If you do not have the x86_64-elf compiler, and your system is x86_64, you can use the 'x86_64-linux_env.sh' script. And you should add rustup component.
```
$ cd SnowFlake
$ sh x86_64-linux_env.sh
$ cd kernel
$ rustup component add rust-src
$ cd ./../
$ make run
```

#### Windows 8.1 or lower
Expand Down

0 comments on commit 3916837

Please sign in to comment.