move SetAconfigFileMkEntries to android
This will need to be called by some modules handled in android. Bug: 308625757 Test: manual Change-Id: Ic56e8ef3a453c59866aab6d39a21108cf8536b56
This commit is contained in:
@@ -96,3 +96,18 @@ func mergeAconfigFiles(ctx ModuleContext, inputs Paths) Paths {
|
||||
|
||||
return Paths{output}
|
||||
}
|
||||
|
||||
func SetAconfigFileMkEntries(m *ModuleBase, entries *AndroidMkEntries, aconfigFiles map[string]Paths) {
|
||||
// TODO(b/311155208): The default container here should be system.
|
||||
container := ""
|
||||
|
||||
if m.SocSpecific() {
|
||||
container = "vendor"
|
||||
} else if m.ProductSpecific() {
|
||||
container = "product"
|
||||
} else if m.SystemExtSpecific() {
|
||||
container = "system_ext"
|
||||
}
|
||||
|
||||
entries.SetPaths("LOCAL_ACONFIG_FILES", aconfigFiles[container])
|
||||
}
|
||||
|
Reference in New Issue
Block a user