blob: 9ae0264ca52c336e0460a519bbd00ab104d3e9a3 [file] [log] [blame]
David Ngac007db2018-05-03 19:36:14 -07001cc_binary_host {
2 name: "unifdef",
3 srcs: ["scripts/unifdef.c"],
4 sanitize: {
5 never: true,
Prateek Sood13e5f682019-11-05 15:59:43 -08006 },
David Ngac007db2018-05-03 19:36:14 -07007}
8
Prateek Sood13e5f682019-11-05 15:59:43 -08009genrule {
10 name: "gen-headers_install.sh",
11 srcs: ["scripts/headers_install.sh"],
Prateek Sood13e5f682019-11-05 15:59:43 -080012 out: ["headers_install.sh"],
Bill Peckhama6248a12021-01-26 13:06:41 -080013 cmd: "sed 's+scripts/unifdef+$$LOC_UNIFDEF+g' $(in) > $(out)",
David Ngac007db2018-05-03 19:36:14 -070014}
15
Prateek Sood13e5f682019-11-05 15:59:43 -080016cc_prebuilt_binary {
17 name: "headers_install.sh",
18 device_supported: false,
19 host_supported: true,
20 srcs: [":gen-headers_install.sh"],
21}
22
23// Use the following for verbose output from kernel_headers.py.
24// kernel_headers_verbose = "--verbose "
25// Use the following for minimal output from kernel_headers.py.
26kernel_headers_verbose = ""
27
28build = ["gen_headers_arm.bp", "gen_headers_arm64.bp"]
29
David Ngac007db2018-05-03 19:36:14 -070030cc_library_headers {
Prateek Sood13e5f682019-11-05 15:59:43 -080031 name: "qti_kernel_headers",
32 arch: {
33 arm: {
34 generated_headers: ["qti_generate_kernel_headers_arm"],
35 export_generated_headers: ["qti_generate_kernel_headers_arm"],
36 },
37 arm64: {
38 generated_headers: ["qti_generate_kernel_headers_arm64"],
39 export_generated_headers: ["qti_generate_kernel_headers_arm64"],
40 },
41 },
42 vendor: true,
43 recovery_available: true,
David Ngac007db2018-05-03 19:36:14 -070044}