Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd0a4a0c authored by Vinay Sudra's avatar Vinay Sudra
Browse files

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: default avatarVinay Sudra <vsudra@codeaurora.org>
parent f2a1ad8d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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,
}
+5 −1
Original line number Diff line number Diff line
@@ -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,
}