Skip to content

Commit

Permalink
Android.bp: Initial header export bp for Android (qseecom only)
Browse files Browse the repository at this point in the history
Initial Android blueprint makefile for kernel header export;
qseecom.h UAPI for now.

Change-Id: Ia0af480167e19d099789548a2229b46abbd977f8
Signed-off-by: David Ng <[email protected]>
  • Loading branch information
David Ng authored and Gerrit - the friendly Code Review server committed May 5, 2018
1 parent 6b0ad76 commit 1a0aae2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cc_binary_host {
name: "unifdef",
srcs: ["scripts/unifdef.c"],
sanitize: {
never: 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"],
}

0 comments on commit 1a0aae2

Please sign in to comment.