Bug: N/A
Test: m nothing
Change-Id: Ia8b8ba7582ac93643d485cf3340066efdbddcae5
This commit is contained in:
Jiyong Park
2023-02-14 17:05:48 +09:00
parent 8916b21320
commit 9785915c2d

View File

@@ -1709,10 +1709,10 @@ func makePathForInstall(ctx ModuleInstallPathContext, os OsType, arch ArchType,
func pathForInstall(ctx PathContext, os OsType, arch ArchType, partition string, debug bool,
pathComponents ...string) InstallPath {
var partionPaths []string
var partitionPaths []string
if os.Class == Device {
partionPaths = []string{"target", "product", ctx.Config().DeviceName(), partition}
partitionPaths = []string{"target", "product", ctx.Config().DeviceName(), partition}
} else {
osName := os.String()
if os == Linux {
@@ -1734,21 +1734,21 @@ func pathForInstall(ctx PathContext, os OsType, arch ArchType, partition string,
if os.Class == Host && (arch == X86_64 || arch == Common) {
archName = "x86"
}
partionPaths = []string{"host", osName + "-" + archName, partition}
partitionPaths = []string{"host", osName + "-" + archName, partition}
}
if debug {
partionPaths = append([]string{"debug"}, partionPaths...)
partitionPaths = append([]string{"debug"}, partitionPaths...)
}
partionPath, err := validatePath(partionPaths...)
partitionPath, err := validatePath(partitionPaths...)
if err != nil {
reportPathError(ctx, err)
}
base := InstallPath{
basePath: basePath{partionPath, ""},
basePath: basePath{partitionPath, ""},
soongOutDir: ctx.Config().soongOutDir,
partitionDir: partionPath,
partitionDir: partitionPath,
partition: partition,
}