diff options
| author | 2017-07-03 13:18:12 +0900 | |
|---|---|---|
| committer | 2017-07-08 09:29:04 +0900 | |
| commit | d773eb3e8673162af6c841306c5e4ca7fabe4d51 (patch) | |
| tree | de90a9335bc292078b5b0f93cda51e17fe6c4092 /android/variable.go | |
| parent | 0c3a1efae4814f62ece007c7fc2251386aaae2f2 (diff) | |
add device_kernel_headers module for vendor-specific kernel headers
device_kernel_headers is a built-in heder-only lib that provides device-specific
kernel headers. The header path is configured via a new product variable
SystemIncludeDirs, which is currently the mirror of
TARGET_PROJECT_SYSTEM_INCLUDES in the make world.
Note: generic kernel headers (bionic/libc/kernel) have been added to the
include path by default. "device_kernel_headers" module is for device-specific
kernel headers such as /device/*/*/kernel-headers.
Note 2: this is opt-in for Android.bp modules (i.e. header_libs :
["device_kernel_headers"] required.) while it is always provided to
Android.mk modules.
Bug: 62939405
Test: choosecombo to aosp_sailfish (or any other Pixel/Nexus targets)
BOARD_VNDK_VERSION=current m -j gralloc.msm8996 (or any other vendor
libs using vendor-specific kernel headers)
Change-Id: I81c60abc13942c89fff723d1544b27a81b300db0
Diffstat (limited to 'android/variable.go')
| -rw-r--r-- | android/variable.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android/variable.go b/android/variable.go index 1efab47e7..7ca7a55a2 100644 --- a/android/variable.go +++ b/android/variable.go @@ -162,6 +162,8 @@ type productVariables struct { BtConfigIncludeDir *string `json:",omitempty"` Override_rs_driver *string `json:",omitempty"` + + DeviceKernelHeaders []string `json:",omitempty"` } func boolPtr(v bool) *bool { |