From 71be42d93951aaaf95ba520281a9837f32bd738c Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Wed, 20 Nov 2024 18:34:16 +0000 Subject: Automatically add system and system_ext autogen RRO to vendor/product This CL creates a dependency edge from vendor/product to system and system_ext. A post deps mutator will walk the transitive closure and add the corresponding autogenerated RROs to deps. Bug: 374371755 Bug: 375277835 Test: m soong_generated_vendor_filesystem_test NOTICE is the last diff Change-Id: Iffe64174a0d639dc224505a08eccd0a1dedc9f39 --- java/app.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'java/app.go') diff --git a/java/app.go b/java/app.go index 7f80160a3..34a548e5a 100644 --- a/java/app.go +++ b/java/app.go @@ -1382,6 +1382,10 @@ func AndroidAppFactory() android.Module { return module } +func AutogeneratedRroModuleName(ctx android.EarlyModuleContext, moduleName, partition string) string { + return fmt.Sprintf("%s__%s__auto_generated_rro_%s", moduleName, ctx.Config().DeviceProduct(), partition) +} + // A dictionary of values to be overridden in the manifest. type Manifest_values struct { // Overrides the value of package_name in the manifest -- cgit v1.2.3-59-g8ed1b