summaryrefslogtreecommitdiff
path: root/cc/genrule.go
diff options
context:
space:
mode:
Diffstat (limited to 'cc/genrule.go')
-rw-r--r--cc/genrule.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/genrule.go b/cc/genrule.go
index 66d178456..cce4a83d3 100644
--- a/cc/genrule.go
+++ b/cc/genrule.go
@@ -84,7 +84,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" || !isVendorProprietaryPath(ctx.ModuleDir()) {
+ if vndkVersion == "current" || !isVendorProprietaryModule(ctx) {
variants = append(variants, VendorVariationPrefix+ctx.DeviceConfig().PlatformVndkVersion())
} else {
variants = append(variants, VendorVariationPrefix+vndkVersion)