Skip to content

Commit

Permalink
Merge pull request #239 from matttbe/readme-O
Browse files Browse the repository at this point in the history
README: recommended way to build in a separate dir and CCache
  • Loading branch information
arighi authored Feb 26, 2025
2 parents d8fcb80 + 53eb5f6 commit 1c53f32
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,21 @@ Examples
$ vng --build --arch arm64 --root /opt/chroot/arm64/
```

- Build the kernel using a separate build directory, and run it, in verbose:
```
$ mkdir -p .virtme/build
$ vng O=.virtme/build --build --verbose
$ vng O=.virtme/build --verbose
```

- Accelerate the kernel rebuilds using CCache (if installed):
```
$ PATH="/usr/lib/ccache:${PATH}" \
KBUILD_BUILD_TIMESTAMP=0 \
vng --build
# or export the two variables before, see 'man ccache' for more details
```

- Execute `uname -r` inside a kernel recompiled in the current directory and
send the output to cowsay on the host:
```
Expand Down

0 comments on commit 1c53f32

Please sign in to comment.