diff options
author | 2024-12-17 21:15:59 +0900 | |
---|---|---|
committer | 2025-03-18 16:11:05 +0900 | |
commit | be6f81d61e25753eeecdb65bdf7dd2bb6d4c1a5c (patch) | |
tree | 8e289a62ad2dab9cbaec0aab99bdc3143b0ff47e /android/paths.go | |
parent | 247c22ac8648faeb7129c6eb778eb51a06da5f10 (diff) |
Generic configuration for generic system modules.
Config object includes a copy of itself for the generic configuration.
The generic configuration replaces any product-specific configurations
with the generic information.
When a module context gets Config() object, it returns the generic
configuration if the module sets use_generic_config to true. Otherwise,
Config() returns the original config object as before.
By adding `generic:"<value>"` annotation to the product variable, the
variables will be initialized with the <value> for the generic configs.
If the <value> is "unset", the variable will be unset.
The generic modules can be included in the shared system image to be
installed in multiple targets.
Bug: 361816274
Test: m nothing --no-skip-soong-tests
Change-Id: I15e4ade17ad1a8969f8e0e91d994b60545dc412f
Diffstat (limited to 'android/paths.go')
-rw-r--r-- | android/paths.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/paths.go b/android/paths.go index 977473fbd..6612d37d3 100644 --- a/android/paths.go +++ b/android/paths.go @@ -2054,7 +2054,7 @@ func pathForInstall(ctx PathContext, os OsType, arch ArchType, partition string, var partitionPaths []string if os.Class == Device { - partitionPaths = []string{"target", "product", ctx.Config().DeviceName(), partition} + partitionPaths = []string{"target", "product", *ctx.Config().deviceNameToInstall, partition} } else { osName := os.String() if os == Linux { |