summaryrefslogtreecommitdiff
path: root/cc/genrule.go
diff options
context:
space:
mode:
author Kiyoung Kim <kiyoungkim@google.com> 2021-07-22 00:57:39 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-07-22 00:57:39 +0000
commit5d96f64d043af9cbd2f95d5dc076c74b7906b32f (patch)
tree715e2d87d3dae09e736e04610f6ab8d985c52596 /cc/genrule.go
parentf8de870f4caecb794e22f74a81ee532e156cced9 (diff)
parentae11c233b52cb066b85b2e556faa8ac0bd483343 (diff)
Merge changes I3574d2a1,Ifb69fb3d
* changes: Update prebuilt_etc available for snapshot Separate snapshot definition
Diffstat (limited to 'cc/genrule.go')
-rw-r--r--cc/genrule.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cc/genrule.go b/cc/genrule.go
index b0efc6ca4..0ca901e61 100644
--- a/cc/genrule.go
+++ b/cc/genrule.go
@@ -17,6 +17,7 @@ package cc
import (
"android/soong/android"
"android/soong/genrule"
+ "android/soong/snapshot"
)
func init() {
@@ -84,7 +85,7 @@ func (g *GenruleExtraProperties) RecoveryVariantNeeded(ctx android.BaseModuleCon
// is not needed.
recoverySnapshotVersion := ctx.DeviceConfig().RecoverySnapshotVersion()
if recoverySnapshotVersion != "current" && recoverySnapshotVersion != "" &&
- !isRecoveryProprietaryModule(ctx) {
+ !snapshot.IsRecoveryProprietaryModule(ctx) {
return false
} else {
return Bool(g.Recovery_available)
@@ -103,7 +104,7 @@ func (g *GenruleExtraProperties) ExtraImageVariations(ctx android.BaseModuleCont
// If not, we assume modules under proprietary paths are compatible for
// BOARD_VNDK_VERSION. The other modules are regarded as AOSP, that is
// PLATFORM_VNDK_VERSION.
- if vndkVersion == "current" || !IsVendorProprietaryModule(ctx) {
+ if vndkVersion == "current" || !snapshot.IsVendorProprietaryModule(ctx) {
variants = append(variants, VendorVariationPrefix+ctx.DeviceConfig().PlatformVndkVersion())
} else {
variants = append(variants, VendorVariationPrefix+vndkVersion)