summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com> 2025-03-14 17:10:29 +0800
committer wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com> 2025-03-14 17:10:29 +0800
commit266c1a30f5eb1acca01a80a6d0c336c436d31f4c (patch)
treec67972d4cd55efd09d3a2a91e59c6d1e77e637ec
parent67e091f316a6de412aa5cb9c28f021f91046d05e (diff)
If no vendor variables are configured, the module will not be installed to the vendor partition.
Bug: 402260917 Test: build Signed-off-by: wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com> Change-Id: If675b0e254176ee25a4efca5d9c2a4837f526942
-rw-r--r--rust/image.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/image.go b/rust/image.go
index 51b82893c..aa10a6dfa 100644
--- a/rust/image.go
+++ b/rust/image.go
@@ -137,7 +137,7 @@ func (mod *Module) InstallInVendor() bool {
// Additionally check if this module is inVendor() that means it is a "vendor" variant of a
// module. As well as SoC specific modules, vendor variants must be installed to /vendor
// unless they have "odm_available: true".
- return mod.InVendor() && !mod.VendorVariantToOdm()
+ return mod.HasVendorVariant() && mod.InVendor() && !mod.VendorVariantToOdm()
}
func (mod *Module) InstallInOdm() bool {