Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit ac007db

Browse files
author
David Ng
committed
Android.bp: Initial header export bp for Android (qseecom only)
Initial Android blueprint makefile for kernel header export; qseecom.h UAPI for now. Change-Id: Ia0af480167e19d099789548a2229b46abbd977f8 Signed-off-by: David Ng <dave@codeaurora.org>
1 parent 8f8b514 commit ac007db

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Android.bp

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
cc_binary_host {
2+
name: "unifdef",
3+
srcs: ["scripts/unifdef.c"],
4+
sanitize: {
5+
never: true,
6+
}
7+
}
8+
9+
gensrcs {
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+
23+
cc_library_headers {
24+
name: "qseecom-kernel-headers",
25+
generated_headers: ["qseecom-kernel-includes"],
26+
export_generated_headers: ["qseecom-kernel-includes"],
27+
}

0 commit comments

Comments
 (0)