Skip to content

Commit e4595f8

Browse files
m4txmetti
authored andcommitted
Initial commit of RITM
Signed-off-by: Mateusz Maćkowski <mmac@google.com> Signed-off-by: Matthias Maennich <maennich@google.com>
0 parents  commit e4595f8

File tree

16 files changed

+988
-0
lines changed

16 files changed

+988
-0
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build]
2+
target = "aarch64-unknown-none"

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/workflows/rust.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v5
16+
- name: Install aarch64 toolchain
17+
uses: dtolnay/rust-toolchain@v1
18+
with:
19+
toolchain: stable
20+
targets: aarch64-unknown-none
21+
- name: Build for QEMU
22+
run: make build.qemu
23+
- name: Run clippy
24+
run: make clippy
25+
26+
format:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v5
30+
- name: Format Rust code
31+
run: cargo fmt --all -- --check

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

CONTRIBUTING.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# How to contribute
2+
3+
We'd love to accept your patches and contributions to this project.
4+
5+
## Before you begin
6+
7+
### Sign our Contributor License Agreement
8+
9+
Contributions to this project must be accompanied by a
10+
[Contributor License Agreement](https://cla.developers.google.com/about) (CLA).
11+
You (or your employer) retain the copyright to your contribution; this simply
12+
gives us permission to use and redistribute your contributions as part of the
13+
project.
14+
15+
If you or your current employer have already signed the Google CLA (even if it
16+
was for a different project), you probably don't need to do it again.
17+
18+
Visit <https://cla.developers.google.com/> to see your current agreements or to
19+
sign a new one.
20+
21+
### Review our community guidelines
22+
23+
This project follows
24+
[Google's Open Source Community Guidelines](https://opensource.google/conduct/).
25+
26+
## Contribution process
27+
28+
### Code reviews
29+
30+
All submissions, including submissions by project members, require review. We
31+
use GitHub pull requests for this purpose. Consult
32+
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
33+
information on using pull requests.

Cargo.lock

Lines changed: 214 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "ritm"
3+
version = "0.1.0"
4+
edition = "2024"
5+
license = "MIT OR Apache-2.0"
6+
description = "An example of combining various libraries for aarch64 OS development."
7+
authors = ["Mateusz Maćkowski <mmac@google.com>"]
8+
repository = "https://github.com/google/ritm"
9+
keywords = ["arm", "aarch64", "cortex-a", "osdev"]
10+
categories = ["embedded", "no-std"]
11+
12+
[dependencies]
13+
aarch64-paging = { version = "0.10", default-features = false }
14+
aarch64-rt = { version = "0.2", features = ["el2", "exceptions", "initial-pagetable", "psci"], default-features = false }
15+
arm-pl011-uart = "0.3"
16+
buddy_system_allocator = { version = "0.11", default-features = false, features = ["alloc", "use_spin"] }
17+
smccc = "0.2"

0 commit comments

Comments
 (0)