Compile zram/zsmalloc as unprotected vendor_dlkm. While at it update corresponding system_dlkm in blocklist so that only vendor_dlkm modules are loaded. Change-Id: I620215fa42e4b8009e3b504ac4e3db84ac178023 Signed-off-by: Wasim Nazir <quic_wasimn@quicinc.com>
24 lines
705 B
Python
24 lines
705 B
Python
# Add unprotected modules corresponding to each platform
|
|
_unprotected_modules_map = {
|
|
"pitti": [
|
|
# keep sorted
|
|
"drivers/block/zram/zram.ko",
|
|
"mm/zsmalloc.ko",
|
|
],
|
|
}
|
|
|
|
def get_unprotected_vendor_modules_list(msm_target = None):
|
|
""" Provides the list of unprotected vendor modules.
|
|
|
|
Args:
|
|
msm_target: name of target platform (e.g. "pitti").
|
|
|
|
Returns:
|
|
The list of unprotected vendor modules for the given msm_target.
|
|
"""
|
|
unprotected_modules_list = []
|
|
for t, m in _unprotected_modules_map.items():
|
|
if msm_target in t:
|
|
unprotected_modules_list = [] + _unprotected_modules_map[msm_target]
|
|
return unprotected_modules_list
|