-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge all the peripherals code to single package and extracted the rpi code from the sdl code
- Loading branch information
Showing
62 changed files
with
1,160 additions
and
1,644 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
[target.armv7-unknown-linux-gnueabihf] | ||
pre-build = [ | ||
"echo deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi >> /etc/apt/sources.list", | ||
"touch /etc/apt/sources.list.d/raspi.list", | ||
"echo deb http://archive.raspberrypi.org/debian/ buster main >> /etc/apt/sources.list.d/raspi.list", | ||
"apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9165938D90FDDD2E", | ||
"apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 82B129927FA3303E", | ||
"dpkg --add-architecture armhf", | ||
"apt-get update", | ||
"apt-get install -y libraspberrypi-dev" | ||
] |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[config] | ||
default_to_workspace = false | ||
|
||
[tasks.all] | ||
dependencies = ["test", "sdl", "rpios", "rpi_baremetal"] | ||
|
||
[tasks.test] | ||
command = "cargo" | ||
args = ["test", "--package", "lib_gb"] | ||
|
||
[tasks.sdl] | ||
command = "cargo" | ||
args = ["build", "--release", "--package", "gb"] | ||
|
||
[tasks.sdl.linux] | ||
args = ["build", "--release", "--package", "gb", "--no-default-features"] | ||
dependencies = ["install_sdl2_linux"] | ||
|
||
[tasks.install_sdl2_linux] | ||
script = ["sudo apt-get install -y libsdl2-dev"] | ||
|
||
[tasks.rpios] | ||
install_crate = {crate_name = "cross", binary = "cross", test_arg = "-h"} | ||
command = "cross" | ||
args = ["build", "--release", "--target", "armv7-unknown-linux-gnueabihf", "--bin", "rpios","--no-default-features", "--features", "std"] | ||
|
||
[tasks.rpi_baremetal] | ||
toolchain = "nightly" | ||
install_crate = "cargo-binutils" | ||
command = "rust-objcopy" | ||
args = ["target/armv7a-none-eabihf/release/baremetal", "-O", "binary", "kernel7.img"] | ||
dependencies = ["build_rpi_baremetal","install_llvm_tools"] | ||
|
||
[tasks.build_rpi_baremetal] | ||
toolchain = "nightly" | ||
cwd = "./rpi/" | ||
command = "cargo" | ||
args = ["build", "--release", "--target", "armv7a-none-eabihf","--package", "rpi", "--bin", "baremetal", "-Z", "build-std=core", "--no-default-features", "--features", "rpi4"] | ||
|
||
[tasks.install_llvm_tools] | ||
toolchain = "nightly" | ||
install_crate = {rustup_component_name = "llvm-tools-preview"} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.