Skip to content

Commit

Permalink
README: example with CCache
Browse files Browse the repository at this point in the history
CCache is often used to accelerate the kernel rebuilds.

It is not difficult to use it, but people might not think about it, and
setting KBUILD_BUILD_TIMESTAMP=0 to increase the cache hits might not be
well known.

Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Feb 26, 2025
1 parent 37241b5 commit 53eb5f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ Examples
$ 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 53eb5f6

Please sign in to comment.