David Ng | ac007db | 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, |
Prateek Sood | 13e5f68 | 2019-11-05 15:59:43 -0800 | [diff] [blame] | 6 | }, |
David Ng | ac007db | 2018-05-03 19:36:14 -0700 | [diff] [blame] | 7 | } |
| 8 | |
Prateek Sood | 13e5f68 | 2019-11-05 15:59:43 -0800 | [diff] [blame] | 9 | genrule { |
| 10 | name: "gen-headers_install.sh", |
| 11 | srcs: ["scripts/headers_install.sh"], |
Prateek Sood | 13e5f68 | 2019-11-05 15:59:43 -0800 | [diff] [blame] | 12 | out: ["headers_install.sh"], |
Bill Peckham | a6248a1 | 2021-01-26 13:06:41 -0800 | [diff] [blame] | 13 | cmd: "sed 's+scripts/unifdef+$$LOC_UNIFDEF+g' $(in) > $(out)", |
David Ng | ac007db | 2018-05-03 19:36:14 -0700 | [diff] [blame] | 14 | } |
| 15 | |
Prateek Sood | 13e5f68 | 2019-11-05 15:59:43 -0800 | [diff] [blame] | 16 | cc_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. |
| 26 | kernel_headers_verbose = "" |
| 27 | |
| 28 | build = ["gen_headers_arm.bp", "gen_headers_arm64.bp"] |
| 29 | |
David Ng | ac007db | 2018-05-03 19:36:14 -0700 | [diff] [blame] | 30 | cc_library_headers { |
Prateek Sood | 13e5f68 | 2019-11-05 15:59:43 -0800 | [diff] [blame] | 31 | 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 Ng | ac007db | 2018-05-03 19:36:14 -0700 | [diff] [blame] | 44 | } |