Kleaf Cheatsheet
Building
Just vmlinux and in-tree modules etc. ( = make
)
$ tools/bazel build //common:kernel_aarch64
All GKI artifacts for distribution
$ tools/bazel run //common:kernel_aarch64_dist
Keep intermediate build artifacts (for example *.o
files) in out/cache/
$ tools/bazel build --config=local //common:kernel_aarch64
ABI monitoring
Building all artifacts
$ tools/bazel run //common:kernel_aarch64_abi_dist
Update symbol list
$ tools/bazel run //common:kernel_aarch64_abi_update_symbol_list
Update ABI definition
$ tools/bazel run //common:kernel_aarch64_abi_update
LTO
--lto={none,thin,default,full}
$ bazel run --lto=none //common:kernel_aarch64_dist