Merge changes from topic "vsdk_ramdisk" am: 86ac783d8e am: 849a844f04

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2012416

Change-Id: I2a342025ded1a9f5fb9f9f9170aaedbd49720bbc
This commit is contained in:
Treehugger Robot
2022-03-08 18:02:20 +00:00
committed by Automerger Merge Worker
2 changed files with 6 additions and 0 deletions

View File

@@ -146,6 +146,7 @@ type snapshotJsonFlags struct {
// binary flags // binary flags
Symlinks []string `json:",omitempty"` Symlinks []string `json:",omitempty"`
StaticExecutable bool `json:",omitempty"` StaticExecutable bool `json:",omitempty"`
InstallInRoot bool `json:",omitempty"`
// dependencies // dependencies
SharedLibs []string `json:",omitempty"` SharedLibs []string `json:",omitempty"`
@@ -320,6 +321,7 @@ var ccSnapshotAction snapshot.GenerateSnapshotAction = func(s snapshot.SnapshotS
// binary flags // binary flags
prop.Symlinks = m.Symlinks() prop.Symlinks = m.Symlinks()
prop.StaticExecutable = m.StaticExecutable() prop.StaticExecutable = m.StaticExecutable()
prop.InstallInRoot = m.InstallInRoot()
prop.SharedLibs = m.SnapshotSharedLibs() prop.SharedLibs = m.SnapshotSharedLibs()
// static libs dependencies are required to collect the NOTICE files. // static libs dependencies are required to collect the NOTICE files.
prop.StaticLibs = m.SnapshotStaticLibs() prop.StaticLibs = m.SnapshotStaticLibs()

View File

@@ -149,6 +149,10 @@ func (mod *Module) InRecovery() bool {
return mod.ModuleBase.InRecovery() || mod.ModuleBase.InstallInRecovery() return mod.ModuleBase.InRecovery() || mod.ModuleBase.InstallInRecovery()
} }
func (mod *Module) InRamdisk() bool {
return mod.ModuleBase.InRamdisk() || mod.ModuleBase.InstallInRamdisk()
}
func (mod *Module) InVendorRamdisk() bool { func (mod *Module) InVendorRamdisk() bool {
return mod.ModuleBase.InVendorRamdisk() || mod.ModuleBase.InstallInVendorRamdisk() return mod.ModuleBase.InVendorRamdisk() || mod.ModuleBase.InstallInVendorRamdisk()
} }