qemu: use ccache

readme: improve build variants
This commit is contained in:
Ciro Santilli
2018-09-14 16:56:12 +01:00
parent 40b5c5a023
commit 7f81db9a46
4 changed files with 13 additions and 8 deletions

View File

@@ -9305,6 +9305,7 @@ For example, if you want to keep two builds around, one for the latest Linux ver
....
./build-buildroot
git -C "$(./getvar linux_src_dir)" fetch --tags --unshallow
git -C "$(./getvar linux_src_dir)" checkout v4.16
./build-buildroot --linux-build-id v4.16
git -C "$(./getvar linux_src_dir)" checkout -
@@ -9312,7 +9313,9 @@ git -C "$(./getvar linux_src_dir)" checkout -
./run --linux-build-id v4.16
....
The `-L` option should be passed to all scripts that support it, much like `-a` for the <<cpu-architecture>>, e.g. to step debug:
The `git fetch --unshallow` is needed the first time because link:configure[] only does a shallow clone of the Linux kernel to save space and time, see also: https://stackoverflow.com/questions/6802145/how-to-convert-a-git-shallow-clone-to-a-full-clone
The `--linux-build-id` option should be passed to all scripts that support it, much like `-a` for the <<cpu-architecture>>, e.g. to step debug:
.....
./rungdb --linux-build-id v4.16
@@ -9322,7 +9325,7 @@ This technique is implemented semi-hackishly by moving symlinks around inside th
==== QEMU build variants
Analogous to the <<linux-kernel-build-variants>> but with the `-Q` option instead:
Analogous to the <<linux-kernel-build-variants>> but with the `--qemu-build-id` option instead:
....
./build-qemu
@@ -9335,7 +9338,7 @@ git -C "$(./getvar qemu_src_dir)" checkout -
==== gem5 build variants
Analogous to the <<linux-kernel-build-variants>> but with the `-M` option instead:
Analogous to the <<linux-kernel-build-variants>> but with the `--gem5-build-id` option instead:
....
# Build master.