David Ng | 8b728eb | 2018-05-03 19:36:14 -0700 | [diff] [blame] | 1 | cc_binary_host { |
| 2 | name: "unifdef", |
| 3 | srcs: ["scripts/unifdef.c"], |
| 4 | sanitize: { |
| 5 | never: true, |
Rishabh Bhatnagar | 6b33ac49 | 2019-11-12 18:58:00 -0800 | [diff] [blame] | 6 | }, |
| 7 | } |
| 8 | |
Justin DeMartino | cc39738 | 2019-11-05 15:59:43 -0800 | [diff] [blame] | 9 | genrule { |
Rishabh Bhatnagar | 6b33ac49 | 2019-11-12 18:58:00 -0800 | [diff] [blame] | 10 | name: "gen-headers_install.sh", |
| 11 | srcs: ["scripts/headers_install.sh"], |
Justin DeMartino | cc39738 | 2019-11-05 15:59:43 -0800 | [diff] [blame] | 12 | out: ["headers_install.sh"], |
Bill Peckham | 6d29c924 | 2021-01-26 13:06:41 -0800 | [diff] [blame] | 13 | // (Ie3b8c36b7d60bd950c28bac566e04f43de78cf98,b/178500203) |
| 14 | cmd: "sed 's+scripts/unifdef+$$LOC_UNIFDEF+g' $(in) > $(out)", |
Rishabh Bhatnagar | 6b33ac49 | 2019-11-12 18:58:00 -0800 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | cc_prebuilt_binary { |
| 18 | name: "headers_install.sh", |
| 19 | device_supported: false, |
| 20 | host_supported: true, |
| 21 | srcs: [":gen-headers_install.sh"], |
| 22 | } |
| 23 | |
Justin DeMartino | cc39738 | 2019-11-05 15:59:43 -0800 | [diff] [blame] | 24 | // 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. |
| 27 | kernel_headers_verbose = "" |
David Ng | 8b728eb | 2018-05-03 19:36:14 -0700 | [diff] [blame] | 28 | |
Justin DeMartino | cc39738 | 2019-11-05 15:59:43 -0800 | [diff] [blame] | 29 | build = ["gen_headers_arm.bp", "gen_headers_arm64.bp"] |
David Ng | 8b728eb | 2018-05-03 19:36:14 -0700 | [diff] [blame] | 30 | |
| 31 | cc_library_headers { |
Justin DeMartino | cc39738 | 2019-11-05 15:59:43 -0800 | [diff] [blame] | 32 | 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 Bhatnagar | 6b33ac49 | 2019-11-12 18:58:00 -0800 | [diff] [blame] | 43 | vendor: true, |
| 44 | recovery_available: true, |
| 45 | } |