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"], |
David Ng | ac007db | 2018-05-03 19:36:14 -0700 | [diff] [blame] | 12 | tools: ["unifdef"], |
Prateek Sood | 13e5f68 | 2019-11-05 15:59:43 -0800 | [diff] [blame^] | 13 | out: ["headers_install.sh"], |
| 14 | cmd: "sed 's+scripts/unifdef+$(location unifdef)+g' $(in) > $(out)", |
David Ng | ac007db | 2018-05-03 19:36:14 -0700 | [diff] [blame] | 15 | } |
| 16 | |
Prateek Sood | 13e5f68 | 2019-11-05 15:59:43 -0800 | [diff] [blame^] | 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 | |
| 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 = "" |
| 28 | |
| 29 | build = ["gen_headers_arm.bp", "gen_headers_arm64.bp"] |
| 30 | |
David Ng | ac007db | 2018-05-03 19:36:14 -0700 | [diff] [blame] | 31 | cc_library_headers { |
Prateek Sood | 13e5f68 | 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 | }, |
| 43 | vendor: true, |
| 44 | recovery_available: true, |
David Ng | ac007db | 2018-05-03 19:36:14 -0700 | [diff] [blame] | 45 | } |