Merge "Install symlink to the runtime APEX only for device"
This commit is contained in:
@@ -437,7 +437,9 @@ func (binary *binaryDecorator) install(ctx ModuleContext, file android.Path) {
|
|||||||
// The original path becomes a symlink to the corresponding file in the
|
// The original path becomes a symlink to the corresponding file in the
|
||||||
// runtime APEX.
|
// runtime APEX.
|
||||||
if isBionic(ctx.baseModuleName()) && ctx.Arch().Native && ctx.apexName() == "" && !ctx.inRecovery() {
|
if isBionic(ctx.baseModuleName()) && ctx.Arch().Native && ctx.apexName() == "" && !ctx.inRecovery() {
|
||||||
binary.installSymlinkToRuntimeApex(ctx, file)
|
if ctx.Device() {
|
||||||
|
binary.installSymlinkToRuntimeApex(ctx, file)
|
||||||
|
}
|
||||||
binary.baseInstaller.subDir = "bootstrap"
|
binary.baseInstaller.subDir = "bootstrap"
|
||||||
}
|
}
|
||||||
binary.baseInstaller.install(ctx, file)
|
binary.baseInstaller.install(ctx, file)
|
||||||
|
@@ -920,7 +920,9 @@ func (library *libraryDecorator) install(ctx ModuleContext, file android.Path) {
|
|||||||
// The original path becomes a symlink to the corresponding file in the
|
// The original path becomes a symlink to the corresponding file in the
|
||||||
// runtime APEX.
|
// runtime APEX.
|
||||||
if isBionic(ctx.baseModuleName()) && !library.buildStubs() && ctx.Arch().Native && !ctx.inRecovery() {
|
if isBionic(ctx.baseModuleName()) && !library.buildStubs() && ctx.Arch().Native && !ctx.inRecovery() {
|
||||||
library.installSymlinkToRuntimeApex(ctx, file)
|
if ctx.Device() {
|
||||||
|
library.installSymlinkToRuntimeApex(ctx, file)
|
||||||
|
}
|
||||||
library.baseInstaller.subDir = "bootstrap"
|
library.baseInstaller.subDir = "bootstrap"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user