Merge "Don't emit superfluous LOCAL_OVERRIDES_MODULES"
This commit is contained in:
commit
f298a3f325
1 changed files with 6 additions and 3 deletions
|
@ -233,8 +233,9 @@ func (a *apexBundle) androidMkForFiles(w io.Writer, apexBundleName, apexName, mo
|
||||||
for _, o := range a.overridableProperties.Overrides {
|
for _, o := range a.overridableProperties.Overrides {
|
||||||
patterns = append(patterns, "%."+o+a.suffix)
|
patterns = append(patterns, "%."+o+a.suffix)
|
||||||
}
|
}
|
||||||
fmt.Fprintln(w, "LOCAL_OVERRIDES_MODULES :=", strings.Join(patterns, " "))
|
if len(patterns) > 0 {
|
||||||
|
fmt.Fprintln(w, "LOCAL_OVERRIDES_MODULES :=", strings.Join(patterns, " "))
|
||||||
|
}
|
||||||
if len(a.compatSymlinks) > 0 {
|
if len(a.compatSymlinks) > 0 {
|
||||||
// For flattened apexes, compat symlinks are attached to apex_manifest.json which is guaranteed for every apex
|
// For flattened apexes, compat symlinks are attached to apex_manifest.json which is guaranteed for every apex
|
||||||
postInstallCommands = append(postInstallCommands, a.compatSymlinks...)
|
postInstallCommands = append(postInstallCommands, a.compatSymlinks...)
|
||||||
|
@ -307,7 +308,9 @@ func (a *apexBundle) androidMkForType() android.AndroidMkData {
|
||||||
fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", a.installDir.ToMakePath().String())
|
fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", a.installDir.ToMakePath().String())
|
||||||
fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", name+apexType.suffix())
|
fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", name+apexType.suffix())
|
||||||
fmt.Fprintln(w, "LOCAL_UNINSTALLABLE_MODULE :=", !a.installable())
|
fmt.Fprintln(w, "LOCAL_UNINSTALLABLE_MODULE :=", !a.installable())
|
||||||
fmt.Fprintln(w, "LOCAL_OVERRIDES_MODULES :=", strings.Join(a.overridableProperties.Overrides, " "))
|
if len(a.overridableProperties.Overrides) > 0 {
|
||||||
|
fmt.Fprintln(w, "LOCAL_OVERRIDES_MODULES :=", strings.Join(a.overridableProperties.Overrides, " "))
|
||||||
|
}
|
||||||
if len(moduleNames) > 0 {
|
if len(moduleNames) > 0 {
|
||||||
fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES +=", strings.Join(moduleNames, " "))
|
fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES +=", strings.Join(moduleNames, " "))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue