-
Notifications
You must be signed in to change notification settings - Fork 6
/
autoghgvm.bzl
65 lines (61 loc) · 2.36 KB
/
autoghgvm.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
load(":target_variants.bzl", "lxc_variants")
load(":msm_kernel_lagvm.bzl", "define_msm_lagvm")
load(":image_opts.bzl", "boot_image_opts")
target_name = "autoghgvm"
def define_autoghgvm():
_autoghgvm_in_tree_modules = [
# keep sorted
"arch/arm64/gunyah/gh_arm_drv.ko",
"drivers/block/virtio_blk.ko",
"drivers/clk/qcom/clk-dummy.ko",
"drivers/clk/qcom/clk-qcom.ko",
"drivers/dma-buf/heaps/qcom_dma_heaps.ko",
"drivers/firmware/qcom-scm.ko",
"drivers/i2c/busses/i2c-msm-geni.ko",
"drivers/iommu/arm/arm-smmu/arm_smmu.ko",
"drivers/iommu/iommu-logger.ko",
"drivers/iommu/qcom_iommu_debug.ko",
"drivers/iommu/qcom_iommu_util.ko",
"drivers/net/net_failover.ko",
"drivers/net/virtio_net.ko",
"drivers/pinctrl/qcom/pinctrl-lemans.ko",
"drivers/pinctrl/qcom/pinctrl-msm.ko",
"drivers/soc/qcom/hab/msm_hab.ko",
"drivers/soc/qcom/hgsl/qcom_hgsl.ko",
"drivers/soc/qcom/mem_buf/mem_buf.ko",
"drivers/soc/qcom/mem_buf/mem_buf_dev.ko",
"drivers/soc/qcom/qcom_wdt_core.ko",
"drivers/soc/qcom/rename_devices.ko",
"drivers/spi/spi-msm-geni.ko",
"drivers/spi/spidev.ko",
"drivers/tty/hvc/hvc_gunyah.ko",
"drivers/tty/serial/msm_geni_serial.ko",
"drivers/virt/gunyah/gh_ctrl.ko",
"drivers/virt/gunyah/gh_dbl.ko",
"drivers/virt/gunyah/gh_msgq.ko",
"drivers/virt/gunyah/gh_rm_drv.ko",
"drivers/virt/gunyah/gh_virt_wdt.ko",
"drivers/virtio/virtio_input.ko",
"drivers/virtio/virtio_mmio.ko",
"kernel/trace/qcom_ipc_logging.ko",
"net/core/failover.ko",
]
for variant in lxc_variants:
mod_list = _autoghgvm_in_tree_modules
define_msm_lagvm(
msm_target = target_name,
variant = variant,
in_tree_module_list = mod_list,
boot_image_opts = boot_image_opts(
boot_partition_size = 0x4000000,
boot_image_header_version = 2,
base_address = 0x80000000,
page_size = 4096,
kernel_vendor_cmdline_extras = [
# do not sort
"console=hvc0",
"androidboot.first_stage_console=1",
"bootconfig",
],
),
)