Add vendor snapshot modules

This implements four modules (static/shared/header libraries, and
binaries) for vendor snapshot. These modules will override source
modules if BOARD_VNDK_VERSION != current.

Bug: 65377115
Test: 1) VNDK_SNAPSHOT_BUILD_ARTIFACTS=true m dist vndk vendor-snapshot
Test: 2) install snapshot under source tree
Test: 3) set BOARD_VNDK_VERSION and boot cuttlefish
Change-Id: I24ddb4c3aa6abeab60bbfd31bcbd8753e2592dc5
This commit is contained in:
Inseob Kim
2020-01-22 11:11:29 +09:00
parent 8471cdaced
commit eec88e1de8
8 changed files with 742 additions and 35 deletions

View File

@@ -765,7 +765,7 @@ func osMutator(mctx BottomUpMutatorContext) {
}
if len(moduleOSList) == 0 {
base.commonProperties.Enabled = boolPtr(false)
base.Disable()
return
}
@@ -869,7 +869,7 @@ func archMutator(mctx BottomUpMutatorContext) {
}
if len(targets) == 0 {
base.commonProperties.Enabled = boolPtr(false)
base.Disable()
return
}