kleaf: extract_symbol with GKI modules objects

Due to change f67eea6aa43b30326960b39fe5f4c99c1519b86a
(kleaf: Do not include GKI modules in default output of
//common:kernel_aarch64.) and relevant changes, GKI modules
are no longer listed as default outputs of the GKI kernel
//common:kernel_aarch64, causing the `in_tree_modules` list
to be empty in extracted_symbols rule. Backporting this change
fixes the issue by also extracting the full modules_staging_dir,
which contains all GKI modules.

Bug: 246716067
Test: manual (bazel run //common:kernel_aarch64_abi_update_symbol_list,
  see no change)
Signed-off-by: Yifan Hong <elsk@google.com>

----

Original commit message:

To partition between GKI and vendor modules on the fly;
we need to pass GKI modules from the base_kernel build
in addition to vendor modules. Remove passing the list
and pass the modules instead from the base_kernel
first and then the vendor modules overwriting the modules
from the base build being overridden.

Bug: 245404948
Bug: 232431411
Test: TH

Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: I2f40943d0d4f0a65cc7ab47a5064caff7fbf39b4
5 files changed