APEX respects relative_install_path
relative_install_path for cc_library is respected by APEX. relative_install_path for cc_binary is not yet respected because doing it will break the path to the dynamic linker in the runtime APEX. That change should be done along with changes in init, bionic, etc. Bug: 123721777 Test: m (apex_test.go amended) Change-Id: I855f8eda0d4255d563861ac96d0d3e2c669e9a2a
This commit is contained in:
@@ -73,7 +73,7 @@ func (installer *baseInstaller) installDir(ctx ModuleContext) android.OutputPath
|
||||
dir = filepath.Join(dir, "vendor")
|
||||
}
|
||||
return android.PathForModuleInstall(ctx, dir, installer.subDir,
|
||||
String(installer.Properties.Relative_install_path), installer.relative)
|
||||
installer.relativeInstallPath(), installer.relative)
|
||||
}
|
||||
|
||||
func (installer *baseInstaller) install(ctx ModuleContext, file android.Path) {
|
||||
@@ -91,3 +91,7 @@ func (installer *baseInstaller) inSanitizerDir() bool {
|
||||
func (installer *baseInstaller) hostToolPath() android.OptionalPath {
|
||||
return android.OptionalPath{}
|
||||
}
|
||||
|
||||
func (installer *baseInstaller) relativeInstallPath() string {
|
||||
return String(installer.Properties.Relative_install_path)
|
||||
}
|
||||
|
Reference in New Issue
Block a user