2018-05-03 20:36:14 -06:00
|
|
|
cc_binary_host {
|
|
|
|
name: "unifdef",
|
|
|
|
srcs: ["scripts/unifdef.c"],
|
|
|
|
sanitize: {
|
|
|
|
never: true,
|
2019-11-12 19:58:00 -07:00
|
|
|
},
|
2018-05-03 20:36:14 -06:00
|
|
|
}
|
|
|
|
|
2019-11-05 16:59:43 -07:00
|
|
|
genrule {
|
2019-11-12 19:58:00 -07:00
|
|
|
name: "gen-headers_install.sh",
|
|
|
|
srcs: ["scripts/headers_install.sh"],
|
|
|
|
tools: ["unifdef"],
|
2019-11-05 16:59:43 -07:00
|
|
|
out: ["headers_install.sh"],
|
2019-11-12 19:58:00 -07:00
|
|
|
cmd: "sed 's+scripts/unifdef+$(location unifdef)+g' $(in) > $(out)",
|
|
|
|
}
|
2018-05-03 20:36:14 -06:00
|
|
|
|
2019-11-12 19:58:00 -07:00
|
|
|
cc_prebuilt_binary {
|
|
|
|
name: "headers_install.sh",
|
|
|
|
device_supported: false,
|
|
|
|
host_supported: true,
|
|
|
|
srcs: [":gen-headers_install.sh"],
|
|
|
|
}
|
2018-05-03 20:36:14 -06:00
|
|
|
|
2019-11-05 16:59:43 -07:00
|
|
|
// Use the following for verbose output from kernel_headers.py.
|
|
|
|
// kernel_headers_verbose = "--verbose "
|
|
|
|
// Use the following for minimal output from kernel_headers.py.
|
|
|
|
kernel_headers_verbose = ""
|
2018-05-03 20:36:14 -06:00
|
|
|
|
2019-11-05 16:59:43 -07:00
|
|
|
build = ["gen_headers_arm.bp", "gen_headers_arm64.bp"]
|
2019-11-12 19:58:00 -07:00
|
|
|
|
|
|
|
cc_library_headers {
|
2019-11-05 16:59:43 -07:00
|
|
|
name: "qti_kernel_headers",
|
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
generated_headers: ["qti_generate_kernel_headers_arm"],
|
|
|
|
export_generated_headers: ["qti_generate_kernel_headers_arm"],
|
|
|
|
},
|
|
|
|
arm64: {
|
|
|
|
generated_headers: ["qti_generate_kernel_headers_arm64"],
|
|
|
|
export_generated_headers: ["qti_generate_kernel_headers_arm64"],
|
|
|
|
},
|
|
|
|
},
|
2019-11-12 19:58:00 -07:00
|
|
|
vendor: true,
|
|
|
|
recovery_available: true,
|
|
|
|
}
|