-
Notifications
You must be signed in to change notification settings - Fork 1
/
Android.bp
86 lines (72 loc) · 2.63 KB
/
Android.bp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
cc_binary_host {
name: "unifdef",
srcs: ["scripts/unifdef.c"],
sanitize: {
never: true,
},
}
genrule {
name: "gen-headers_install.sh",
srcs: ["scripts/headers_install.sh"],
tools: ["unifdef"],
out: ["headers_install.sh"],
cmd: "sed 's+scripts/unifdef+$(location unifdef)+g' $(in) > $(out)",
}
cc_prebuilt_binary {
name: "headers_install.sh",
device_supported: false,
host_supported: true,
srcs: [":gen-headers_install.sh"],
}
// 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 = ""
build = ["gen_headers_arm.bp", "gen_headers_arm64.bp"]
cc_library_headers {
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"],
},
},
vendor: true,
recovery_available: true,
}
gensrcs {
name: "qseecom-kernel-includes",
// move to out/ as root for header generation because of scripts/unifdef
// storage - at the expense of extra ../ references
cmd: "pushd out && mkdir -p scripts && rm -f scripts/unifdef && ln -s $(location unifdef) scripts/unifdef && ../$(location scripts/headers_install.sh) `dirname $(out)` ../ $(in) && popd",
tools: ["unifdef"],
tool_files: ["scripts/headers_install.sh"],
export_include_dirs: ["include/uapi"],
srcs: ["include/uapi/linux/qseecom.h"],
output_extension: "h",
}
cc_library_headers {
name: "qseecom-kernel-headers",
generated_headers: ["qseecom-kernel-includes"],
export_generated_headers: ["qseecom-kernel-includes"],
}
gensrcs {
name: "audio-kernel-includes",
// move to out/ as root for header generation because of scripts/unifdef
// storage - at the expense of extra ../ references
cmd: "pushd out && mkdir -p scripts && rm -f scripts/unifdef && ln -s $(location unifdef) scripts/unifdef && ../$(location scripts/headers_install.sh) `dirname $(out)` ../ $(in) && popd",
tools: ["unifdef"],
tool_files: ["scripts/headers_install.sh"],
export_include_dirs: ["techpack/audio/include/uapi"],
srcs: ["techpack/audio/include/uapi/**/*"],
output_extension: "h",
}
cc_library_headers {
name: "audio_kernel_headers",
generated_headers: ["audio-kernel-includes"],
export_generated_headers: ["audio-kernel-includes"],
}