blob: 3d5382bfbd4777d623b7fcc97468fc91a0cec2b7 [file] [log] [blame]
David Ng8b728eb2018-05-03 19:36:14 -07001cc_binary_host {
2 name: "unifdef",
3 srcs: ["scripts/unifdef.c"],
4 sanitize: {
5 never: true,
Rishabh Bhatnagar6b33ac492019-11-12 18:58:00 -08006 },
7}
8
Justin DeMartinocc397382019-11-05 15:59:43 -08009genrule {
Rishabh Bhatnagar6b33ac492019-11-12 18:58:00 -080010 name: "gen-headers_install.sh",
11 srcs: ["scripts/headers_install.sh"],
Justin DeMartinocc397382019-11-05 15:59:43 -080012 out: ["headers_install.sh"],
Bill Peckham6d29c9242021-01-26 13:06:41 -080013 // (Ie3b8c36b7d60bd950c28bac566e04f43de78cf98,b/178500203)
14 cmd: "sed 's+scripts/unifdef+$$LOC_UNIFDEF+g' $(in) > $(out)",
Rishabh Bhatnagar6b33ac492019-11-12 18:58:00 -080015}
16
17cc_prebuilt_binary {
18 name: "headers_install.sh",
19 device_supported: false,
20 host_supported: true,
21 srcs: [":gen-headers_install.sh"],
22}
23
Justin DeMartinocc397382019-11-05 15:59:43 -080024// Use the following for verbose output from kernel_headers.py.
25// kernel_headers_verbose = "--verbose "
26// Use the following for minimal output from kernel_headers.py.
27kernel_headers_verbose = ""
David Ng8b728eb2018-05-03 19:36:14 -070028
Justin DeMartinocc397382019-11-05 15:59:43 -080029build = ["gen_headers_arm.bp", "gen_headers_arm64.bp"]
David Ng8b728eb2018-05-03 19:36:14 -070030
31cc_library_headers {
Justin DeMartinocc397382019-11-05 15:59:43 -080032 name: "qti_kernel_headers",
33 arch: {
34 arm: {
35 generated_headers: ["qti_generate_kernel_headers_arm"],
36 export_generated_headers: ["qti_generate_kernel_headers_arm"],
37 },
38 arm64: {
39 generated_headers: ["qti_generate_kernel_headers_arm64"],
40 export_generated_headers: ["qti_generate_kernel_headers_arm64"],
41 },
42 },
Rishabh Bhatnagar6b33ac492019-11-12 18:58:00 -080043 vendor: true,
44 recovery_available: true,
45}