-
Notifications
You must be signed in to change notification settings - Fork 0
/
anorak.bzl
263 lines (256 loc) · 11.2 KB
/
anorak.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
load(":image_opts.bzl", "boot_image_opts")
load(":msm_kernel_la.bzl", "define_msm_la")
load(":target_variants.bzl", "la_variants")
target_name = "anorak"
def define_anorak():
_anorak_in_tree_modules = [
# keep sorted
"drivers/base/regmap/qti-regmap-debugfs.ko",
"drivers/bus/mhi/devices/mhi_dev_dtr.ko",
"drivers/bus/mhi/devices/mhi_dev_uci.ko",
"drivers/bus/mhi/host/mhi.ko",
"drivers/clk/qcom/camcc-anorak.ko",
"drivers/clk/qcom/clk-dummy.ko",
"drivers/clk/qcom/clk-qcom.ko",
"drivers/clk/qcom/clk-rpmh.ko",
"drivers/clk/qcom/debugcc-anorak.ko",
"drivers/clk/qcom/dispcc0-anorak.ko",
"drivers/clk/qcom/dispcc1-anorak.ko",
"drivers/clk/qcom/gcc-anorak.ko",
"drivers/clk/qcom/gdsc-regulator.ko",
"drivers/clk/qcom/gpucc-anorak.ko",
"drivers/clk/qcom/videocc-anorak.ko",
"drivers/cpufreq/qcom-cpufreq-hw.ko",
"drivers/cpufreq/qcom-cpufreq-hw-debug.ko",
"drivers/cpuidle/governors/qcom_lpm.ko",
"drivers/dma-buf/heaps/qcom_dma_heaps.ko",
"drivers/dma/qcom/bam_dma.ko",
"drivers/dma/qcom/msm_gpi.ko",
"drivers/edac/kryo_arm64_edac.ko",
"drivers/edac/qcom_edac.ko",
"drivers/firmware/qcom-scm.ko",
"drivers/gpu/drm/display/drm_display_helper.ko",
"drivers/gpu/drm/display/drm_dp_aux_bus.ko",
"drivers/hwspinlock/qcom_hwspinlock.ko",
"drivers/hwtracing/coresight/coresight.ko",
"drivers/hwtracing/coresight/coresight-csr.ko",
"drivers/hwtracing/coresight/coresight-cti.ko",
"drivers/hwtracing/coresight/coresight-dummy.ko",
"drivers/hwtracing/coresight/coresight-funnel.ko",
"drivers/hwtracing/coresight/coresight-hwevent.ko",
"drivers/hwtracing/coresight/coresight-remote-etm.ko",
"drivers/hwtracing/coresight/coresight-replicator.ko",
"drivers/hwtracing/coresight/coresight-stm.ko",
"drivers/hwtracing/coresight/coresight-tgu.ko",
"drivers/hwtracing/coresight/coresight-tmc.ko",
"drivers/hwtracing/coresight/coresight-tmc-sec.ko",
"drivers/hwtracing/coresight/coresight-tpda.ko",
"drivers/hwtracing/coresight/coresight-tpdm.ko",
"drivers/hwtracing/stm/stm_console.ko",
"drivers/hwtracing/stm/stm_core.ko",
"drivers/hwtracing/stm/stm_ftrace.ko",
"drivers/hwtracing/stm/stm_p_ost.ko",
"drivers/i2c/busses/i2c-msm-geni.ko",
"drivers/iio/adc/qcom-spmi-adc5-gen3.ko",
"drivers/iio/adc/qcom-vadc-common.ko",
"drivers/input/misc/pm8941-pwrkey.ko",
"drivers/input/misc/qcom-hv-haptics.ko",
"drivers/interconnect/qcom/icc-bcm-voter.ko",
"drivers/interconnect/qcom/icc-debug.ko",
"drivers/interconnect/qcom/icc-rpmh.ko",
"drivers/interconnect/qcom/qnoc-anorak.ko",
"drivers/interconnect/qcom/qnoc-qos.ko",
"drivers/iommu/arm/arm-smmu/arm_smmu.ko",
"drivers/iommu/iommu-logger.ko",
"drivers/iommu/msm_dma_iommu_mapping.ko",
"drivers/iommu/qcom_iommu_debug.ko",
"drivers/iommu/qcom_iommu_util.ko",
"drivers/irqchip/msm_show_resume_irq.ko",
"drivers/irqchip/qcom-pdc.ko",
"drivers/leds/leds-qti-flash.ko",
"drivers/leds/leds-qti-tri-led.ko",
"drivers/mailbox/msm_qmp.ko",
"drivers/mailbox/qcom-ipcc.ko",
"drivers/mfd/qcom-spmi-pmic.ko",
"drivers/mmc/host/cqhci.ko",
"drivers/mmc/host/sdhci-msm.ko",
"drivers/nvme/host/sdexpress.ko",
"drivers/nvmem/nvmem_qcom-spmi-sdam.ko",
"drivers/nvmem/nvmem_qfprom.ko",
"drivers/pci/controller/pci-msm-drv.ko",
"drivers/perf/qcom_llcc_pmu.ko",
"drivers/phy/qualcomm/phy-qcom-ufs.ko",
"drivers/phy/qualcomm/phy-qcom-ufs-qmp-v4.ko",
"drivers/phy/qualcomm/phy-qcom-ufs-qmp-v4-waipio.ko",
"drivers/pinctrl/qcom/pinctrl-anorak.ko",
"drivers/pinctrl/qcom/pinctrl-msm.ko",
"drivers/pinctrl/qcom/pinctrl-spmi-gpio.ko",
"drivers/pinctrl/qcom/pinctrl-spmi-mpp.ko",
"drivers/power/reset/qcom-dload-mode.ko",
"drivers/power/reset/qcom-pon.ko",
"drivers/power/reset/qcom-reboot-reason.ko",
"drivers/power/reset/reboot-mode.ko",
"drivers/power/supply/qti_battery_charger.ko",
"drivers/powercap/qti_epm_hardware.ko",
"drivers/pwm/pwm-qcom.ko",
"drivers/pwm/pwm-qti-lpg.ko",
"drivers/regulator/ap72200-regulator.ko",
"drivers/regulator/debug-regulator.ko",
"drivers/regulator/proxy-consumer.ko",
"drivers/regulator/qti-fixed-regulator.ko",
"drivers/regulator/qti-ocp-notifier.ko",
"drivers/regulator/rpmh-regulator.ko",
"drivers/remoteproc/qcom_pil_info.ko",
"drivers/remoteproc/qcom_q6v5.ko",
"drivers/remoteproc/qcom_q6v5_pas.ko",
"drivers/remoteproc/qcom_spss.ko",
"drivers/remoteproc/qcom_sysmon.ko",
"drivers/remoteproc/rproc_qcom_common.ko",
"drivers/rpmsg/glink_pkt.ko",
"drivers/rpmsg/qcom_glink.ko",
"drivers/rpmsg/qcom_glink_smem.ko",
"drivers/rpmsg/qcom_glink_spss.ko",
"drivers/rpmsg/qcom_smd.ko",
"drivers/rtc/rtc-pm8xxx.ko",
"drivers/scsi/sg.ko",
"drivers/slimbus/slim-qcom-ngd-ctrl.ko",
"drivers/slimbus/slimbus.ko",
"drivers/soc/qcom/altmode-glink.ko",
"drivers/soc/qcom/boot_stats.ko",
"drivers/soc/qcom/charger-ulog-glink.ko",
"drivers/soc/qcom/cmd-db.ko",
"drivers/soc/qcom/core_hang_detect.ko",
"drivers/soc/qcom/crypto-qti.ko",
"drivers/soc/qcom/dcc_v2.ko",
"drivers/soc/qcom/dcvs/bwmon.ko",
"drivers/soc/qcom/dcvs/bwprof.ko",
"drivers/soc/qcom/dcvs/dcvs_fp.ko",
"drivers/soc/qcom/dcvs/memlat.ko",
"drivers/soc/qcom/dcvs/qcom-dcvs.ko",
"drivers/soc/qcom/dcvs/qcom-pmu-lib.ko",
"drivers/soc/qcom/debug_symbol.ko",
"drivers/soc/qcom/eud.ko",
"drivers/soc/qcom/glink_probe.ko",
"drivers/soc/qcom/hwkm.ko",
"drivers/soc/qcom/llcc-qcom.ko",
"drivers/soc/qcom/llcc_perfmon.ko",
"drivers/soc/qcom/mdt_loader.ko",
"drivers/soc/qcom/mem-hooks.ko",
"drivers/soc/qcom/mem-offline.ko",
"drivers/soc/qcom/mem_buf/mem_buf.ko",
"drivers/soc/qcom/mem_buf/mem_buf_dev.ko",
"drivers/soc/qcom/memory_dump_v2.ko",
"drivers/soc/qcom/minidump.ko",
"drivers/soc/qcom/msm_performance.ko",
"drivers/soc/qcom/panel_event_notifier.ko",
"drivers/soc/qcom/pdr_interface.ko",
"drivers/soc/qcom/pmic-glink-debug.ko",
"drivers/soc/qcom/pmic-pon-log.ko",
"drivers/soc/qcom/pmic_glink.ko",
"drivers/soc/qcom/qcom_aoss.ko",
"drivers/soc/qcom/qcom_cpu_vendor_hooks.ko",
"drivers/soc/qcom/qcom_cpucp.ko",
"drivers/soc/qcom/qcom_cpuss_sleep_stats.ko",
"drivers/soc/qcom/qcom_logbuf_vendor_hooks.ko",
"drivers/soc/qcom/qcom_ramdump.ko",
"drivers/soc/qcom/qcom_rpmh.ko",
"drivers/soc/qcom/qcom_soc_wdt.ko",
"drivers/soc/qcom/qcom_stats.ko",
"drivers/soc/qcom/qcom_va_minidump.ko",
"drivers/soc/qcom/qcom_wdt_core.ko",
"drivers/soc/qcom/qfprom-sys.ko",
"drivers/soc/qcom/qmi_helpers.ko",
"drivers/soc/qcom/qsee_ipc_irq_bridge.ko",
"drivers/soc/qcom/qti_battery_debug.ko",
"drivers/soc/qcom/rq_stats.ko",
"drivers/soc/qcom/secure_buffer.ko",
"drivers/soc/qcom/smem.ko",
"drivers/soc/qcom/smp2p.ko",
"drivers/soc/qcom/smp2p_sleepstate.ko",
"drivers/soc/qcom/socinfo.ko",
"drivers/soc/qcom/sps/sps_drv.ko",
"drivers/soc/qcom/sys_pm_vx.ko",
"drivers/soc/qcom/sysmon_subsystem_stats.ko",
"drivers/soc/qcom/tmecom/tmecom-intf.ko",
"drivers/spi/spi-msm-geni.ko",
"drivers/spmi/spmi-pmic-arb.ko",
"drivers/spmi/spmi-pmic-arb-debug.ko",
"drivers/thermal/qcom/bcl_pmic5.ko",
"drivers/thermal/qcom/bcl_soc.ko",
"drivers/thermal/qcom/cpu_hotplug.ko",
"drivers/thermal/qcom/ddr_cdev.ko",
"drivers/thermal/qcom/max31760_fan.ko",
"drivers/thermal/qcom/qcom-spmi-temp-alarm.ko",
"drivers/thermal/qcom/qcom_tsens.ko",
"drivers/thermal/qcom/qti_cpufreq_cdev.ko",
"drivers/thermal/qcom/qti_devfreq_cdev.ko",
"drivers/thermal/qcom/qti_qmi_cdev.ko",
"drivers/thermal/qcom/qti_qmi_sensor_v2.ko",
"drivers/thermal/qcom/qti_userspace_cdev.ko",
"drivers/thermal/qcom/thermal_config.ko",
"drivers/thermal/qcom/thermal_pause.ko",
"drivers/tty/serial/msm_geni_serial.ko",
"drivers/ufs/host/ufs_qcom.ko",
"drivers/ufs/host/ufshcd-crypto-qti.ko",
"drivers/usb/dwc3/dwc3-msm.ko",
"drivers/usb/gadget/function/usb_f_ccid.ko",
"drivers/usb/gadget/function/usb_f_cdev.ko",
"drivers/usb/gadget/function/usb_f_diag.ko",
"drivers/usb/gadget/function/usb_f_gsi.ko",
"drivers/usb/gadget/function/usb_f_qdss.ko",
"drivers/usb/misc/ehset.ko",
"drivers/usb/misc/lvstest.ko",
"drivers/usb/phy/phy-generic.ko",
"drivers/usb/phy/phy-msm-snps-hs.ko",
"drivers/usb/phy/phy-msm-ssusb-qmp.ko",
"drivers/usb/redriver/nb7vpq904m.ko",
"drivers/usb/redriver/redriver.ko",
"drivers/usb/typec/ucsi/ucsi_glink.ko",
"drivers/virt/gunyah/gh_msgq.ko",
"drivers/virt/gunyah/gh_rm_drv.ko",
"drivers/virt/gunyah/gh_virt_wdt.ko",
"kernel/msm_sysstats.ko",
"kernel/sched/walt/sched-walt.ko",
"kernel/trace/qcom_ipc_logging.ko",
"net/mac80211/mac80211.ko",
"net/qrtr/qrtr.ko",
"net/qrtr/qrtr-mhi.ko",
"net/qrtr/qrtr-smd.ko",
"net/wireless/cfg80211.ko",
"sound/usb/snd-usb-audio-qmi.ko",
]
_anorak_consolidate_in_tree_modules = _anorak_in_tree_modules + [
# keep sorted
"drivers/hwtracing/coresight/coresight-etm4x.ko",
"drivers/misc/lkdtm/lkdtm.ko",
"kernel/sched/walt/sched-walt-debug.ko",
]
kernel_vendor_cmdline_extras = [
# do not sort
"console=ttyMSM0,115200n8",
"qcom_geni_serial.con_enabled=1",
"bootconfig",
]
for variant in la_variants:
board_kernel_cmdline_extras = []
board_bootconfig_extras = []
if variant == "consolidate":
mod_list = _anorak_consolidate_in_tree_modules
else:
mod_list = _anorak_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,0x00998000",
kernel_vendor_cmdline_extras = kernel_vendor_cmdline_extras,
board_kernel_cmdline_extras = board_kernel_cmdline_extras,
board_bootconfig_extras = board_bootconfig_extras,
),
#TODO: Need to enable this
#dpm_overlay = True,
)