Support downloading prebuilt GKI fips140.ko

Add build options and flags to toggle downloading GKI fips140.ko
which is enabled by default in this change.

Currently there's a limitation that we can only download the file
and place it in output directory; however, the `modules.load` doesn't
include this module. Therefore, the `fips140.ko` won't be loaded
at boot time with the images generated in kernel source tree.

In order to load the module at boot time, it should be placed in
AOSP kernel prebuilt directory and re-pack the images.

Bug: 331791671
Change-Id: I9a7a8dedb4cfc4b4492d45db5d50d7fc468c41dc
Signed-off-by: Qian-Hao Huang <[email protected]>
3 files changed
tree: cfbb24bc9a44f3af39217c5fdfe8bfa311a41227
  1. bazel.WORKSPACE
  2. BUILD.bazel
  3. build.config.blktest
  4. build.config.debug_api
  5. build.config.debug_kmemleak
  6. build.config.debug_locking
  7. build.config.debug_memory
  8. build.config.debug_memory_accounting
  9. build.config.kasan
  10. build.config.khwasan
  11. debug_all_defconfig
  12. device.bazelrc
  13. device_build_configs.bzl
  14. function_tracer_defconfig
  15. merge-from-pixel-6.1-zuma.sh
  16. README.md
  17. update_symbol_list.sh
README.md

Building with Bazel (recommended)

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

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

Disable LTO

Note: This only works on raviole-mainline branch.

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

ABI monitoring with Bazel (recommended)

Note: ABI monitoring is not supported on raviole-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

# Copy files to distribution
$ tools/bazel run --config=raviole //private/devices/google/raviole:gs101_raviole_abi_dist