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
(cherry picked from commit 0fe423433bb3fa0b5003409bbd59a972e6c235e2)
This commit is contained in:
Ramji Jiyani 2022-04-27 16:20:12 -07:00
parent ef1134dd04
commit 08ae9a7975
3 changed files with 18 additions and 1 deletions

View File

@ -20,7 +20,20 @@ package(
load("//build/kernel/kleaf:constants.bzl", "aarch64_gz_outs")
load("//build/kernel/kleaf:common_kernels.bzl", "define_common_kernels", "define_db845c")
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(

View File

@ -0,0 +1,2 @@
drivers/block/zram/zram.ko
mm/zsmalloc.ko

View File

@ -110,6 +110,7 @@ CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
CONFIG_CMA=y
CONFIG_CMA_DEBUGFS=y
CONFIG_CMA_AREAS=16
CONFIG_ZSMALLOC=m
# CONFIG_ZONE_DMA is not set
CONFIG_ANON_VMA_NAME=y
CONFIG_NET=y
@ -294,6 +295,7 @@ CONFIG_ARM_SCPI_PROTOCOL=y
# CONFIG_ARM_SCPI_POWER_DOMAIN is not set
# CONFIG_EFI_ARMSTUB_DTB_LOADER is not set
CONFIG_GNSS=y
CONFIG_ZRAM=m
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=16
CONFIG_BLK_DEV_RAM=y