forked from OnePlusOSS/android_kernel_oneplus_sm8650
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blair.bzl
257 lines (252 loc) · 11 KB
/
blair.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
load(":target_variants.bzl", "la_variants")
load(":msm_kernel_la.bzl", "define_msm_la")
load(":image_opts.bzl", "boot_image_opts")
target_name = "blair"
def define_blair():
_blair_in_tree_modules = [
# keep sorted
"drivers/char/rdbg.ko",
"drivers/clk/qcom/clk-dummy.ko",
"drivers/clk/qcom/clk-qcom.ko",
"drivers/clk/qcom/clk-rpmh.ko",
"drivers/clk/qcom/clk-smd-rpm.ko",
"drivers/clk/qcom/clk-spmi-pmic-div.ko",
"drivers/clk/qcom/debugcc-blair.ko",
"drivers/clk/qcom/debugcc-holi.ko",
"drivers/clk/qcom/dispcc-blair.ko",
"drivers/clk/qcom/dispcc-holi.ko",
"drivers/clk/qcom/gcc-blair.ko",
"drivers/clk/qcom/gcc-holi.ko",
"drivers/clk/qcom/gdsc-regulator.ko",
"drivers/clk/qcom/gpucc-blair.ko",
"drivers/clk/qcom/gpucc-holi.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/firmware/qcom-scm.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_heartbeat.ko",
"drivers/hwtracing/stm/stm_p_ost.ko",
"drivers/i2c/busses/i2c-msm-geni.ko",
"drivers/i3c/master/i3c-master-msm-geni.ko",
"drivers/iio/adc/qcom-spmi-adc5.ko",
"drivers/iio/adc/qcom-vadc-common.ko",
"drivers/input/misc/pm8941-pwrkey.ko",
"drivers/input/misc/qpnp-power-on.ko",
"drivers/input/touchscreen/usbtouchscreen.ko",
"drivers/interconnect/icc-test.ko",
"drivers/interconnect/qcom/icc-debug.ko",
"drivers/interconnect/qcom/icc-rpm.ko",
"drivers/interconnect/qcom/qnoc-blair.ko",
"drivers/interconnect/qcom/qnoc-holi.ko",
"drivers/interconnect/qcom/qnoc-qos-rpm.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/irq-qcom-mpm.ko",
"drivers/irqchip/msm_show_resume_irq.ko",
"drivers/irqchip/qcom-mpm.ko",
"drivers/leds/leds-aw2016.ko",
"drivers/leds/leds-qpnp-flash-v2.ko",
"drivers/leds/leds-qpnp-vibrator-ldo.ko",
"drivers/leds/leds-qti-tri-led.ko",
"drivers/mailbox/msm_qmp.ko",
"drivers/mailbox/qcom-ipcc.ko",
"drivers/mfd/qcom-i2c-pmic.ko",
"drivers/mfd/qcom-spmi-pmic.ko",
"drivers/mmc/host/cqhci.ko",
"drivers/mmc/host/sdhci-msm.ko",
"drivers/nvmem/nvmem_qcom-spmi-sdam.ko",
"drivers/nvmem/nvmem_qfprom.ko",
"drivers/perf/qcom_llcc_pmu.ko",
"drivers/phy/qualcomm/phy-qcom-ufs.ko",
"drivers/phy/qualcomm/phy-qcom-ufs-qmp-v3.ko",
"drivers/phy/qualcomm/phy-qcom-ufs-qmp-v4.ko",
"drivers/phy/qualcomm/phy-qcom-ufs-qmp-v4-blair.ko",
"drivers/phy/qualcomm/phy-qcom-ufs-qmp-v4-kalama.ko",
"drivers/phy/qualcomm/phy-qcom-ufs-qmp-v4-pineapple.ko",
"drivers/phy/qualcomm/phy-qcom-ufs-qmp-v4-waipio.ko",
"drivers/phy/qualcomm/phy-qcom-ufs-qrbtc-sdm845.ko",
"drivers/pinctrl/qcom/pinctrl-blair.ko",
"drivers/pinctrl/qcom/pinctrl-holi.ko",
"drivers/pinctrl/qcom/pinctrl-msm.ko",
"drivers/pinctrl/qcom/pinctrl-spmi-gpio.ko",
"drivers/pinctrl/qcom/pinctrl-spmi-mpp.ko",
"drivers/power/reset/msm-poweroff.ko",
"drivers/power/reset/qcom-dload-mode.ko",
"drivers/power/reset/qcom-pon.ko",
"drivers/power/reset/reboot-mode.ko",
"drivers/power/supply/qcom/qcom-qpnp-qg.ko",
"drivers/power/supply/qcom/qcom-smb1355-charger.ko",
"drivers/power/supply/qcom/qcom-smb1398-charger.ko",
"drivers/power/supply/qcom/qpnp-smb5-main.ko",
"drivers/pwm/pwm-qti-lpg.ko",
"drivers/regulator/debug-regulator.ko",
"drivers/regulator/proxy-consumer.ko",
"drivers/regulator/qcom_pm8008-regulator.ko",
"drivers/regulator/qpnp-amoled-regulator.ko",
"drivers/regulator/qpnp-lcdb-regulator.ko",
"drivers/regulator/qti-fixed-regulator.ko",
"drivers/regulator/refgen.ko",
"drivers/regulator/rpm-smd-regulator.ko",
"drivers/regulator/stub-regulator.ko",
"drivers/remoteproc/qcom_pil_info.ko",
"drivers/remoteproc/qcom_q6v5.ko",
"drivers/remoteproc/qcom_q6v5_pas.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_rpm.ko",
"drivers/rpmsg/qcom_glink_smem.ko",
"drivers/rpmsg/qcom_glink_spss.ko",
"drivers/rpmsg/rpm-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/boot_stats.ko",
"drivers/soc/qcom/cdsprm.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/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/gic_intr_routing.ko",
"drivers/soc/qcom/glink_probe.ko",
"drivers/soc/qcom/hung_task_enh.ko",
"drivers/soc/qcom/hwkm_v1.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/memshare/heap_mem_ext_v01.ko",
"drivers/soc/qcom/memshare/msm_memshare.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/qcom_cpu_vendor_hooks.ko",
"drivers/soc/qcom/qcom_logbuf_boot_log.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/rpm_master_stat.ko",
"drivers/soc/qcom/rpmhpd.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/smsm.ko",
"drivers/soc/qcom/socinfo.ko",
"drivers/soc/qcom/sps/sps_drv.ko",
"drivers/spi/spi-msm-geni.ko",
"drivers/spi/spidev.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/cx_ipeak_cdev.ko",
"drivers/thermal/qcom/msm-tsens-driver.ko",
"drivers/thermal/qcom/qcom-spmi-temp-alarm.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/rpm_smd_cooling_device.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/uio/msm_sharedmem/msm_sharedmem.ko",
"drivers/usb/dwc3/dwc3-msm.ko",
"drivers/usb/gadget/function/f_fs_ipc_log.ko",
"drivers/usb/gadget/function/usb_f_ccid.ko",
"drivers/usb/gadget/function/usb_f_cdev.ko",
"drivers/usb/gadget/function/usb_f_gsi.ko",
"drivers/usb/gadget/function/usb_f_qdss.ko",
"drivers/usb/misc/ehset.ko",
"drivers/usb/pd/qpnp-pdphy.ko",
"drivers/usb/pd/usbpd.ko",
"drivers/usb/phy/phy-generic.ko",
"drivers/usb/phy/phy-msm-qusb.ko",
"drivers/usb/phy/phy-msm-qusb-v2.ko",
"drivers/usb/phy/phy-msm-snps-hs.ko",
"drivers/usb/phy/phy-msm-ssusb-qmp.ko",
"drivers/usb/phy/phy-qcom-emu.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-smd.ko",
"net/wireless/cfg80211.ko",
"sound/usb/snd-usb-audio-qmi.ko",
]
_blair_consolidate_in_tree_modules = _blair_in_tree_modules + [
# keep sorted
"drivers/hwtracing/coresight/coresight-etm4x.ko",
"drivers/misc/lkdtm/lkdtm.ko",
"kernel/locking/locktorture.ko",
"kernel/rcu/rcutorture.ko",
"kernel/sched/walt/sched-walt-debug.ko",
"kernel/torture.ko",
"lib/atomic64_test.ko",
"lib/test_user_copy.ko",
]
for variant in la_variants:
if variant == "consolidate":
mod_list = _blair_consolidate_in_tree_modules
else:
mod_list = _blair_in_tree_modules
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,0x4c8c000",
kernel_vendor_cmdline_extras = [
# do not sort
"console=ttyMSM0,115200n8",
"qcom_geni_serial.con_enabled=1",
"bootconfig",
],
),
)