Remove unnecessary symlink for non-flattend APEXes
am: 7aa3f76696
Change-Id: I4699574214c1a146b32385eff5260b28275ecf9b
This commit is contained in:
@@ -177,7 +177,7 @@ func (a *apexBundle) androidMkForFiles(w io.Writer, apexName, moduleDir string)
|
|||||||
fmt.Fprintln(w, "include $(BUILD_SYSTEM)/soong_cc_prebuilt.mk")
|
fmt.Fprintln(w, "include $(BUILD_SYSTEM)/soong_cc_prebuilt.mk")
|
||||||
} else {
|
} else {
|
||||||
fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", fi.builtFile.Base())
|
fmt.Fprintln(w, "LOCAL_MODULE_STEM :=", fi.builtFile.Base())
|
||||||
if fi.builtFile == a.manifestPbOut {
|
if fi.builtFile == a.manifestPbOut && apexType == flattenedApex {
|
||||||
if a.primaryApexType {
|
if a.primaryApexType {
|
||||||
// Make apex_manifest.pb module for this APEX to override all other
|
// Make apex_manifest.pb module for this APEX to override all other
|
||||||
// modules in the APEXes being overridden by this APEX
|
// modules in the APEXes being overridden by this APEX
|
||||||
@@ -187,7 +187,7 @@ func (a *apexBundle) androidMkForFiles(w io.Writer, apexName, moduleDir string)
|
|||||||
}
|
}
|
||||||
fmt.Fprintln(w, "LOCAL_OVERRIDES_MODULES :=", strings.Join(patterns, " "))
|
fmt.Fprintln(w, "LOCAL_OVERRIDES_MODULES :=", strings.Join(patterns, " "))
|
||||||
|
|
||||||
if apexType == flattenedApex && 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...)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user