kleaf: Add factory config and flag

Use --config=factory for factory builds. Modules can enable factory
features by checking //private/devices/google/common:factory_build.

Bug: 351739558
Change-Id: I00c3d7f6cd79795b46ff5faa023e3ce557e4da4f
Signed-off-by: Jacky Liu <[email protected]>
Signed-off-by: Robin Peng <[email protected]>
2 files changed
tree: 4e9b343831701cd5691d0602907221599be87a56
  1. debug/
  2. kleaf/
  3. sepolicy/
  4. bazel.WORKSPACE
  5. BUILD.bazel
  6. device.bazelrc
  7. merge-from-pixel-6.1-zuma.sh
  8. README.md
  9. update_symbol_list.sh
README.md

Building with Bazel

# Files are copied to out/raviole/dist
$ tools/bazel run --config=raviole //private/devices/google/raviole:gs101_raviole_dist

See build/kernel/kleaf/README.md for details.

ABI monitoring with Bazel

Note: ABI monitoring is not supported on android-mainline branch.

# Compare ABI and build files for distribution
$ tools/bazel build --config=raviole //private/devices/google/raviole:gs101_raviole_abi

# Update symbol list aosp/android/abi_gki_aarch64_pixel
$ tools/bazel run --config=raviole //private/devices/google/raviole:gs101_raviole_abi_update_symbol_list

# Update ABI aosp/android/abi_gki_aarch64.xml
$ tools/bazel run //aosp:kernel_aarch64_abi_update