af3839c345
Add initial files to build Seraph with bazel. Change-Id: I5e9677c43a0a31ddec8c0808c22af7f054b8107c Signed-off-by: Navya Vemula <quic_nvemula@quicinc.com>
53 lines
1.6 KiB
Python
53 lines
1.6 KiB
Python
load(":target_variants.bzl", "la_variants")
|
|
load(":msm_kernel_la.bzl", "define_msm_la")
|
|
load(":image_opts.bzl", "boot_image_opts")
|
|
|
|
target_name = "seraph"
|
|
|
|
def define_seraph():
|
|
_seraph_in_tree_modules = [
|
|
# keep sorted
|
|
# TODO: Need to add GKI modules
|
|
]
|
|
|
|
_seraph_consolidate_in_tree_modules = _seraph_in_tree_modules + [
|
|
# keep sorted
|
|
"drivers/misc/lkdtm/lkdtm.ko",
|
|
"kernel/locking/locktorture.ko",
|
|
"kernel/rcu/rcutorture.ko",
|
|
"kernel/torture.ko",
|
|
"lib/atomic64_test.ko",
|
|
"lib/test_user_copy.ko",
|
|
]
|
|
|
|
kernel_vendor_cmdline_extras = [
|
|
# do not sort
|
|
"console=ttyMSM0,115200n8",
|
|
"qcom_geni_serial.con_enabled=1",
|
|
"bootconfig",
|
|
]
|
|
|
|
board_kernel_cmdline_extras = []
|
|
board_bootconfig_extras = []
|
|
|
|
for variant in la_variants:
|
|
if variant == "consolidate":
|
|
mod_list = _seraph_consolidate_in_tree_modules
|
|
else:
|
|
mod_list = _seraph_in_tree_modules
|
|
board_kernel_cmdline_extras += ["nosoftlockup"]
|
|
kernel_vendor_cmdline_extras += ["nosoftlockup"]
|
|
board_bootconfig_extras += ["androidboot.console=0"]
|
|
|
|
define_msm_la(
|
|
msm_target = target_name,
|
|
variant = variant,
|
|
in_tree_module_list = mod_list,
|
|
boot_image_opts = boot_image_opts(
|
|
earlycon_addr = "qcom_geni,0x00884000",
|
|
kernel_vendor_cmdline_extras = kernel_vendor_cmdline_extras,
|
|
board_kernel_cmdline_extras = board_kernel_cmdline_extras,
|
|
board_bootconfig_extras = board_bootconfig_extras,
|
|
),
|
|
)
|