Skip to content

Commit 5ab5207

Browse files
committed
Switch to custom fc repo; Add build versions
1 parent 052ef1a commit 5ab5207

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,19 @@ This project automates the building of custom Firecracker. It supports building
1414
- 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>`).
1515

1616
2. **Build:**
17+
1718
```sh
1819
make build
1920
# or directly
2021
./build.sh
2122
```
23+
2224
The built kernels will be placed in `builds/vmlinux-<version>/vmlinux.bin`.
2325

2426
## Development Workflow
27+
2528
- On every push, GitHub Actions will automatically build the kernels and save it as an artifact.
2629

2730
## License
2831

29-
This project is licensed under the Apache License 2.0. See [LICENSE](LICENSE) for details.
32+
This project is licensed under the Apache License 2.0. See [LICENSE](LICENSE) for details.

build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -euo pipefail
44

5+
FIRECRACKER_REPO_URL="https://github.com/e2b-dev/firecracker.git"
6+
57
function build_version {
68
local version=$1
79
echo "Starting build for Firecracker commit: $version"
@@ -22,12 +24,12 @@ function build_version {
2224
}
2325

2426
echo "Cloning the Firecracker repository"
25-
git clone https://github.com/firecracker-microvm/firecracker.git firecracker
27+
git clone $FIRECRACKER_REPO_URL firecracker
2628
cd firecracker
2729

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

3234
cd ..
33-
rm -rf firecracker
35+
rm -rf firecracker

firecracker_versions.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
v1.10.1
2-
v1.12.1
2+
v1.12.1
3+
v1.10.1_99e280c5
4+
v1.12.1_0bb99c51

0 commit comments

Comments
 (0)