blob: 4341e3a71dad646b30295dc450d3a1fdd4960a1a [file] [log] [blame]
David Ngac007db2018-05-03 19:36:14 -07001cc_binary_host {
2 name: "unifdef",
3 srcs: ["scripts/unifdef.c"],
4 sanitize: {
5 never: true,
6 }
7}
8
9gensrcs {
10 name: "qseecom-kernel-includes",
11
12 // move to out/ as root for header generation because of scripts/unifdef
13 // storage - at the expense of extra ../ references
14 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",
15
16 tools: ["unifdef"],
17 tool_files: ["scripts/headers_install.sh"],
18 export_include_dirs: ["include/uapi"],
19 srcs: ["include/uapi/linux/qseecom.h"],
20 output_extension: "h",
21}
22
23cc_library_headers {
24 name: "qseecom-kernel-headers",
25 generated_headers: ["qseecom-kernel-includes"],
26 export_generated_headers: ["qseecom-kernel-includes"],
27}