ANDROID: GKI: ZSMALLOC & ZRAM as modules for arm64
Enable zram and zsmalloc (dependency for zram) as
unprotected modules for aarch64. These are already
being used as modules by the vendor currently; so
needs to be unprotected.
Bug: 230519159
Test: TH
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Change-Id: I7c617c1a24f6e083301cbed67d0d323388cbd622
diff --git a/BUILD.bazel b/BUILD.bazel
index 64e231c..75a2378 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -24,7 +24,20 @@
# glob(["android/abi_gki_aarch64*"]) differs from
# KMI_SYMBOL_LIST + ADDITIONAL_KMI_SYMBOL_LISTS in build.config.gki.aarch64,
# or TRIM_NONLISTED_KMI changes, override kmi_configs here.
-define_common_kernels()
+define_common_kernels(target_configs = {
+ "kernel_aarch64": {
+ "module_outs": [
+ "drivers/block/zram/zram.ko",
+ "mm/zsmalloc.ko",
+ ],
+ },
+ "kernel_aarch64_debug": {
+ "module_outs": [
+ "drivers/block/zram/zram.ko",
+ "mm/zsmalloc.ko",
+ ],
+ },
+})
# Sync with build.config.db845c
define_db845c(