mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
qemu: use ccache
readme: improve build variants
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user