Treat system_ext as system container am: 01efb83420 am: bf9c8f0613

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3261301

Change-Id: I51244bb6eb12207b122c5c1316347516726d23df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Dennis Shen
2024-09-13 02:20:12 +00:00
committed by Automerger Merge Worker
3 changed files with 10 additions and 2 deletions

View File

@@ -88,6 +88,13 @@ func (module *DeclarationsModule) DepsMutator(ctx android.BottomUpMutatorContext
ctx.PropertyErrorf("container", "missing container property")
}
// treating system_ext as system partition as we are combining them as one container
// TODO remove this logic once we start enforcing that system_ext cannot be specified as
// container in the container field.
if module.properties.Container == "system_ext" {
module.properties.Container = "system"
}
// Add a dependency on the aconfig_value_sets defined in
// RELEASE_ACONFIG_VALUE_SETS, and add any aconfig_values that
// match our package.

View File

@@ -260,7 +260,7 @@ func TestMkEntriesMatchedContainer(t *testing.T) {
aconfig_declarations {
name: "my_aconfig_declarations_bar",
package: "com.example.package.bar",
container: "system_ext",
container: "vendor",
srcs: ["bar.aconfig"],
}