2019-11-13 14:23:33 -05:00
|
|
|
cc_binary_host {
|
|
|
|
name: "unifdef",
|
|
|
|
srcs: ["scripts/unifdef.c"],
|
|
|
|
sanitize: {
|
|
|
|
never: true,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2019-11-05 18:59:43 -05:00
|
|
|
genrule {
|
2019-11-13 14:23:33 -05:00
|
|
|
name: "gen-headers_install.sh",
|
|
|
|
srcs: ["scripts/headers_install.sh"],
|
2019-11-05 18:59:43 -05:00
|
|
|
out: ["headers_install.sh"],
|
2021-01-26 16:06:41 -05:00
|
|
|
// (Ie3b8c36b7d60bd950c28bac566e04f43de78cf98,b/178500203)
|
|
|
|
cmd: "sed 's+scripts/unifdef+$$LOC_UNIFDEF+g' $(in) > $(out)",
|
2019-11-13 14:23:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
cc_prebuilt_binary {
|
|
|
|
name: "headers_install.sh",
|
|
|
|
device_supported: false,
|
|
|
|
host_supported: true,
|
|
|
|
srcs: [":gen-headers_install.sh"],
|
|
|
|
}
|
|
|
|
|
2019-11-05 18:59:43 -05: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 = ""
|
2019-11-13 14:23:33 -05:00
|
|
|
|
2019-11-05 18:59:43 -05:00
|
|
|
build = ["gen_headers_arm.bp", "gen_headers_arm64.bp"]
|
2019-11-13 14:23:33 -05:00
|
|
|
|
|
|
|
cc_library_headers {
|
2019-11-05 18:59:43 -05: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-13 14:23:33 -05:00
|
|
|
vendor: true,
|
|
|
|
recovery_available: true,
|
|
|
|
}
|