Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ This project automates the building of custom Firecracker. It supports building
- Edit `firecracker_versions.txt` to specify which kernel versions to build (one per line, e.g., `<last_tag-prelease>-<first-8-letters-of-the-specific-commit>`).

2. **Build:**

```sh
make build
# or directly
./build.sh
```

The built kernels will be placed in `builds/vmlinux-<version>/vmlinux.bin`.

## Development Workflow

- On every push, GitHub Actions will automatically build the kernels and save it as an artifact.

## License

This project is licensed under the Apache License 2.0. See [LICENSE](LICENSE) for details.
This project is licensed under the Apache License 2.0. See [LICENSE](LICENSE) for details.
6 changes: 4 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -euo pipefail

FIRECRACKER_REPO_URL="https://github.com/e2b-dev/firecracker.git"

function build_version {
local version=$1
echo "Starting build for Firecracker commit: $version"
Expand All @@ -22,12 +24,12 @@ function build_version {
}

echo "Cloning the Firecracker repository"
git clone https://github.com/firecracker-microvm/firecracker.git firecracker
git clone $FIRECRACKER_REPO_URL firecracker
cd firecracker

grep -v '^ *#' <../firecracker_versions.txt | while IFS= read -r version; do
build_version "$version"
done

cd ..
rm -rf firecracker
rm -rf firecracker
4 changes: 3 additions & 1 deletion firecracker_versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
v1.10.1
v1.12.1
v1.12.1
v1.10.1_99e280c5
v1.12.1_0bb99c51
Loading