Merge "Properly package aconfig files for product and system_ext partitions" into main
This commit is contained in:
commit
4c27146e4c
1 changed files with 11 additions and 5 deletions
|
@ -229,10 +229,16 @@ func mergeAconfigFiles(ctx android.ModuleContext, inputs android.Paths) android.
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetAconfigFileMkEntries(m *android.ModuleBase, entries *android.AndroidMkEntries, aconfigFiles map[string]android.Paths) {
|
func SetAconfigFileMkEntries(m *android.ModuleBase, entries *android.AndroidMkEntries, aconfigFiles map[string]android.Paths) {
|
||||||
if m.InstallInVendor() {
|
// TODO(b/311155208): The default container here should be system.
|
||||||
entries.SetPaths("LOCAL_ACONFIG_FILES", aconfigFiles["vendor"])
|
container := ""
|
||||||
} else {
|
|
||||||
// TODO(b/311155208): The container here should be system.
|
if m.SocSpecific() {
|
||||||
entries.SetPaths("LOCAL_ACONFIG_FILES", aconfigFiles[""])
|
container = "vendor"
|
||||||
|
} else if m.ProductSpecific() {
|
||||||
|
container = "product"
|
||||||
|
} else if m.SystemExtSpecific() {
|
||||||
|
container = "system_ext"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
entries.SetPaths("LOCAL_ACONFIG_FILES", aconfigFiles[container])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue