-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
165 lines (155 loc) · 5.28 KB
/
BUILD.bazel
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
package(
default_visibility = [
"//visibility:public",
],
)
load("//build/kernel/kleaf:kernel.bzl", "ddk_headers")
ddk_headers(
name = "camera_uapi_headers",
hdrs = glob(["include/uapi/camera/**/*.h"]),
includes = [
"include/uapi/camera",
"include/uapi/camera/media",
],
)
driver_header_globs = [
"drivers/**/*.h",
"drivers/camera_main.h",
"dt-bindings/msm-camera.h",
"drivers/cam_sensor_module/zte_io/*.h",
"drivers/cam_sensor_module/cam_ois/*.h",
"vl53L1/*.h",
"vl53L1/inc/*.h",
"vl53L1/protected/inc/*.h",
]
# Generated list with: find drivers -type f -name '*.h' -printf '"%h",\n' | sort -u
driver_includes = [
"drivers",
"drivers/cam_cdm",
"drivers/cam_core",
"drivers/cam_cpas",
"drivers/cam_cpas/cpas_top",
"drivers/cam_cpas/include",
"drivers/cam_cre",
"drivers/cam_cre/cam_cre_hw_mgr",
"drivers/cam_cre/cam_cre_hw_mgr/cre_hw",
"drivers/cam_cre/cam_cre_hw_mgr/cre_hw/bus_rd",
"drivers/cam_cre/cam_cre_hw_mgr/cre_hw/bus_wr",
"drivers/cam_cre/cam_cre_hw_mgr/cre_hw/include",
"drivers/cam_cre/cam_cre_hw_mgr/cre_hw/top",
"drivers/cam_cust",
"drivers/cam_cust/cam_custom_hw_mgr",
"drivers/cam_cust/cam_custom_hw_mgr/cam_custom_csid",
"drivers/cam_cust/cam_custom_hw_mgr/cam_custom_hw1",
"drivers/cam_cust/cam_custom_hw_mgr/include",
"drivers/cam_fd",
"drivers/cam_fd/fd_hw_mgr",
"drivers/cam_fd/fd_hw_mgr/fd_hw",
"drivers/cam_icp",
"drivers/cam_icp/fw_inc",
"drivers/cam_icp/icp_hw/bps_hw",
"drivers/cam_icp/icp_hw/icp_hw_mgr",
"drivers/cam_icp/icp_hw/icp_hw_mgr/include",
"drivers/cam_icp/icp_hw/icp_proc",
"drivers/cam_icp/icp_hw/icp_proc/icp_common",
"drivers/cam_icp/icp_hw/icp_proc/icp_v1_hw",
"drivers/cam_icp/icp_hw/icp_proc/icp_v2_hw",
"drivers/cam_icp/icp_hw/include",
"drivers/cam_icp/icp_hw/ipe_hw",
"drivers/cam_icp/icp_hw/ofe_hw",
"drivers/cam_isp",
"drivers/cam_isp/isp_hw_mgr",
"drivers/cam_isp/isp_hw_mgr/hw_utils/include",
"drivers/cam_isp/isp_hw_mgr/hw_utils/irq_controller",
"drivers/cam_isp/isp_hw_mgr/include",
"drivers/cam_isp/isp_hw_mgr/isp_hw/ife_csid_hw",
"drivers/cam_isp/isp_hw_mgr/isp_hw/include",
"drivers/cam_isp/isp_hw_mgr/isp_hw/ppi_hw",
"drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw",
"drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus",
"drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_bus/include",
"drivers/cam_isp/isp_hw_mgr/isp_hw/sfe_hw/sfe_top",
"drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_csid_hw",
"drivers/cam_isp/isp_hw_mgr/isp_hw/tfe_hw",
"drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw",
"drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe17x",
"drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus",
"drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_bus/include",
"drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top",
"drivers/cam_isp/isp_hw_mgr/isp_hw/vfe_hw/vfe_top/include",
"drivers/cam_jpeg",
"drivers/cam_jpeg/jpeg_hw",
"drivers/cam_jpeg/jpeg_hw/include",
"drivers/cam_jpeg/jpeg_hw/jpeg_dma_hw",
"drivers/cam_jpeg/jpeg_hw/jpeg_enc_hw",
"drivers/cam_lrme",
"drivers/cam_lrme/lrme_hw_mgr",
"drivers/cam_lrme/lrme_hw_mgr/lrme_hw",
"drivers/cam_ope",
"drivers/cam_ope/ope_hw_mgr",
"drivers/cam_ope/ope_hw_mgr/ope_hw",
"drivers/cam_ope/ope_hw_mgr/ope_hw/bus_rd",
"drivers/cam_ope/ope_hw_mgr/ope_hw/bus_wr",
"drivers/cam_ope/ope_hw_mgr/ope_hw/top",
"drivers/cam_presil/inc",
"drivers/cam_req_mgr",
"drivers/cam_sensor_module/cam_actuator",
"drivers/cam_sensor_module/cam_cci",
"drivers/cam_sensor_module/cam_csiphy",
"drivers/cam_sensor_module/cam_csiphy/include",
"drivers/cam_sensor_module/cam_eeprom",
"drivers/cam_sensor_module/cam_flash",
"drivers/cam_sensor_module/cam_ois",
"drivers/cam_sensor_module/cam_res_mgr",
"drivers/cam_sensor_module/cam_sensor",
"drivers/cam_sensor_module/cam_sensor_io",
"drivers/cam_sensor_module/cam_sensor_utils",
"drivers/cam_sensor_module/cam_tpg",
"drivers/cam_sensor_module/cam_tpg/tpg_hw",
"drivers/cam_sensor_module/cam_tpg/tpg_hw/tpg_hw_v_1_0",
"drivers/cam_sensor_module/cam_tpg/tpg_hw/tpg_hw_v_1_2",
"drivers/cam_sensor_module/cam_tpg/tpg_hw/tpg_hw_v_1_3",
"drivers/cam_sensor_module/cam_tpg/tpg_hw/tpg_hw_v_1_4",
"drivers/cam_smmu",
"drivers/cam_sync",
"drivers/cam_utils",
"drivers/cam_sensor_module/zte_io",
"vl53L1",
"vl53L1/inc",
"vl53L1/ipp",
"vl53L1/protected/src",
"vl53L1/protected/inc",
"vl53L1/src",
]
ddk_headers(
name = "camera_src_headers",
hdrs = glob(driver_header_globs),
includes = driver_includes + [
".",
],
)
ddk_headers(
name = "camera_headers",
hdrs = [
":camera_src_headers",
":camera_uapi_headers",
],
)
genrule(
name = "camera_banner_header",
srcs = [],
outs = ["cam_generated.h"],
cmd = """
{
printf '#define CAMERA_COMPILE_TIME "%s"\n' "$$(date)"
printf '#define CAMERA_COMPILE_BY "%s"\n' "$$(whoami)"
printf '#define CAMERA_COMPILE_HOST "%s"\n' "$$(uname -n)"
} > "$@"
"""
)
ddk_headers(
name = "camera_banner",
hdrs = [":camera_banner_header"],
)
load(":camera_modules.bzl", "define_camera_module")
define_camera_module()