diff options
author | Justin Yun <justinyun@google.com> | 2017-06-23 19:24:43 +0900 |
---|---|---|
committer | Justin Yun <justinyun@google.com> | 2017-07-18 14:48:29 +0900 |
commit | 8effde47def8609b08be27f75d9f24f8b943e3ed (patch) | |
tree | 223d67bd1a21ad363ba8eec952cbb1b24cc85b83 /cc/sabi.go | |
parent | da4a7257b5b4c4fd41b8e8e084713e3e4f20187b (diff) | |
download | build_soong-8effde47def8609b08be27f75d9f24f8b943e3ed.tar.gz build_soong-8effde47def8609b08be27f75d9f24f8b943e3ed.tar.bz2 build_soong-8effde47def8609b08be27f75d9f24f8b943e3ed.zip |
Install VNDK libs in /system instead of /vendor
If BOARD_VNDK_VERSION is set, and a module is set to
`vendor_available: true` it is installed in /system and /vendor.
However, if the module is a VNDK library, it must be
installed at `/system/${LIB}/vndk` instead of /vendor/${LIB}.
For those modules, need following to set.
vendor_available: true,
vndk: {
enabled: true,
support_system_process: true,
},
`support_system_process` is optional to define.
If it is defined to true, the module is regarded as vndk-sp.
link-type check for VNDK modules is added to make sure that VNDK
modules only link to other VNDK shared libraries or LL-NDKs.
move the ABI checks to VNDK from all of vendor_available.
Bug: 38304436
Test: attempt to compile with BOARD_VNDK_VERSION:=current
Test: Use `vendor_available_vndk: true` for VNDK modules and compile
with BOARD_VNDK_VERSION:=current
Change-Id: I409268e0b7f05a9d01697bf9f9f4726b5aac631f
Diffstat (limited to 'cc/sabi.go')
-rw-r--r-- | cc/sabi.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -72,7 +72,7 @@ func (sabimod *sabi) flags(ctx ModuleContext, flags Flags) Flags { func sabiDepsMutator(mctx android.TopDownMutatorContext) { if c, ok := mctx.Module().(*Module); ok && - (Bool(c.Properties.Vendor_available) || (inList(c.Name(), config.LLndkLibraries())) || + (c.isVndk() || inList(c.Name(), config.LLndkLibraries()) || (c.sabi != nil && c.sabi.Properties.CreateSAbiDumps)) { mctx.VisitDirectDeps(func(m blueprint.Module) { tag := mctx.OtherModuleDependencyTag(m) |