Revert "Make the enabled property configurable"
Revert submission 27162921-configurable_enabled_property Reason for revert: Droid-monitor created revert due to Build breakage in b/338253720. Will be verifying through ABTD before submission. Reverted changes: /q/submissionid:27162921-configurable_enabled_property Change-Id: I2d144f9d297373a13a1190b173d10c966181ad84
This commit is contained in:
committed by
Android (Google) Code Review
parent
0e0d749062
commit
ed5276f082
@@ -18,7 +18,6 @@ package provenance
|
||||
|
||||
import (
|
||||
"android/soong/android"
|
||||
|
||||
"github.com/google/blueprint"
|
||||
)
|
||||
|
||||
@@ -69,15 +68,6 @@ type provenanceInfoSingleton struct {
|
||||
|
||||
func (p *provenanceInfoSingleton) GenerateBuildActions(context android.SingletonContext) {
|
||||
allMetaDataFiles := make([]android.Path, 0)
|
||||
moduleFilter := func(module android.Module) bool {
|
||||
if !module.Enabled(context) || module.IsSkipInstall() {
|
||||
return false
|
||||
}
|
||||
if p, ok := module.(ProvenanceMetadata); ok {
|
||||
return p.ProvenanceMetaDataFile().String() != ""
|
||||
}
|
||||
return false
|
||||
}
|
||||
context.VisitAllModulesIf(moduleFilter, func(module android.Module) {
|
||||
if p, ok := module.(ProvenanceMetadata); ok {
|
||||
allMetaDataFiles = append(allMetaDataFiles, p.ProvenanceMetaDataFile())
|
||||
@@ -101,6 +91,16 @@ func (p *provenanceInfoSingleton) GenerateBuildActions(context android.Singleton
|
||||
context.Phony("droidcore", android.PathForPhony(context, "provenance_metadata"))
|
||||
}
|
||||
|
||||
func moduleFilter(module android.Module) bool {
|
||||
if !module.Enabled() || module.IsSkipInstall() {
|
||||
return false
|
||||
}
|
||||
if p, ok := module.(ProvenanceMetadata); ok {
|
||||
return p.ProvenanceMetaDataFile().String() != ""
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func GenerateArtifactProvenanceMetaData(ctx android.ModuleContext, artifactPath android.Path, installedFile android.InstallPath) android.OutputPath {
|
||||
onDevicePathOfInstalledFile := android.InstallPathToOnDevicePath(ctx, installedFile)
|
||||
artifactMetaDataFile := android.PathForIntermediates(ctx, "provenance_metadata", ctx.ModuleDir(), ctx.ModuleName(), "provenance_metadata.textproto")
|
||||
|
Reference in New Issue
Block a user