Release builds on automated build servers must have --config=release
set. Example:
$ tools/bazel run --config=release //common:kernel_aarch64_dist -- --dist_dir=out/dist
NOTE: The flag is set for builds on ci.android.com.
With --config=release
, the build tries to embed SCM version to the artifacts. However, additional work may be needed to embed the correct SCM version, especially for external kernel_module()
s.
See scmversion.md for details.