summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Patrice Arruda <patricearruda@google.com> 2019-03-29 12:55:55 -0700
committer Patrice Arruda <patricearruda@google.com> 2019-04-26 15:19:21 -0700
commitcb5142c2d10014b6eaed307521e5c91cd759fc11 (patch)
tree75380cc4d00da00d934fb776b61b1d58aded060c
parent159a5852513040c3e23503214ca931a1d5643199 (diff)
Soong: Add synopsis to kernel_headers module under cc package.
Added kernel_headers synopsis. Bug: b/128337482 Test: Generated the documentation and verified that the synopsis was added to the kernel_headers module. Change-Id: I3d23fa2408c387883e62dea0742e72a96868ecb4
-rw-r--r--cc/kernel_headers.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/kernel_headers.go b/cc/kernel_headers.go
index 82a779c33..c1da578b5 100644
--- a/cc/kernel_headers.go
+++ b/cc/kernel_headers.go
@@ -32,6 +32,11 @@ func (stub *kernelHeadersDecorator) link(ctx ModuleContext, flags Flags, deps Pa
return stub.libraryDecorator.linkStatic(ctx, flags, deps, objs)
}
+// kernel_headers retrieves the list of kernel headers directories from
+// TARGET_BOARD_KERNEL_HEADERS and TARGET_PRODUCT_KERNEL_HEADERS variables in
+// a makefile for compilation. See
+// https://android.googlesource.com/platform/build/+/master/core/config.mk
+// for more details on them.
func kernelHeadersFactory() android.Module {
module, library := NewLibrary(android.HostAndDeviceSupported)
library.HeaderOnly()