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
This commit is contained in:
Ramji Jiyani
2022-04-27 16:20:12 -07:00
committed by Todd Kjos
parent 0c05ac83cb
commit 2f72cfb4a4
5 changed files with 160 additions and 1 deletions

View File

@@ -24,7 +24,20 @@ load("//build/kernel/kleaf:common_kernels.bzl", "define_common_kernels", "define
# 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(