Use environment variable to find unifdef tool for auto target

Add --unifdef option to gen_headers_arm_auto.bp and
gen_headers_arm64.bp.

Change-Id: Ie48e8ae1ff413d6e5c7d6b4ecda6604c12fd9ec5
Signed-off-by: Vinay Sudra <vsudra@codeaurora.org>
This commit is contained in:
Vinay Sudra 2021-03-11 18:44:27 +05:30
commit cd0a4a0cb7
2 changed files with 10 additions and 2 deletions

View file

@ -1047,7 +1047,10 @@ genrule {
genrule {
name: "qti_generate_kernel_headers_arm64",
tools: ["headers_install.sh"],
tools: [
"headers_install.sh",
"unifdef",
],
tool_files: [
"kernel_headers.py",
],
@ -1069,6 +1072,7 @@ genrule {
"--new_gen_headers_bp $(location :qti_generate_gen_headers_arm64) " +
"--version_makefile $(location Makefile) " +
"--headers_install $(location headers_install.sh) " +
"--unifdef $(location unifdef) " +
"--include_uapi $(locations include/uapi/**/*.h)",
out: ["linux/version.h"] + gen_headers_out_arm64,
}

View file

@ -1051,7 +1051,10 @@ genrule {
genrule {
name: "qti_generate_kernel_headers_arm",
tools: ["headers_install.sh"],
tools: [
"headers_install.sh",
"unifdef",
],
tool_files: [
"kernel_headers.py",
"arch/arm/tools/syscallhdr.sh",
@ -1076,6 +1079,7 @@ genrule {
"--arch_syscall_tool $(location arch/arm/tools/syscallhdr.sh) " +
"--arch_syscall_tbl $(location arch/arm/tools/syscall.tbl) " +
"--headers_install $(location headers_install.sh) " +
"--unifdef $(location unifdef) " +
"--include_uapi $(locations include/uapi/**/*.h)",
out: ["linux/version.h"] + gen_headers_out_arm,
}