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"],
|
2019-11-05 16:59:43 -07:00
|
|
|
out: ["headers_install.sh"],
|
2021-01-26 14:06:41 -07:00
|
|
|
// (Ie3b8c36b7d60bd950c28bac566e04f43de78cf98,b/178500203)
|
|
|
|
cmd: "sed 's+scripts/unifdef+$$LOC_UNIFDEF+g' $(in) > $(out)",
|
2019-11-12 19:58:00 -07:00
|
|
|
}
|
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,
|
|
|
|
}
|