summaryrefslogtreecommitdiff
path: root/fsgen/filesystem_creator.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-12-13 11:20:24 -0800
committer Cole Faust <colefaust@google.com> 2024-12-13 11:29:16 -0800
commit34592c02f83c582c1e2c317a21e85aa9a1eaced8 (patch)
tree27c94bc852d469bb979d941f0692d546caa32836 /fsgen/filesystem_creator.go
parentc6f264854e38c6f4964409902eb20832d764d2d4 (diff)
Make system partition import system_ext's aconfig flags
This is the behavior in make since aosp/3261300. It's a problem for treble though, so maybe should be revised in the future. If the system -> system_ext dependency becomes a problem (like if we need to add a system_ext -> system dependency later), I think we could break it up by creating a ".aconfig" sub-module of filesystem modules, and then the dependency is only added from system -> system_ext.aconfig. But we don't need that right now. Fixes: 382518797 Test: diff out/target/product/vsoc_x86_64/system/etc/aconfig_flags.pb out/soong/.intermediates/build/soong/fsgen/aosp_cf_x86_64_phone_generated_system_image/android_common/system/system/etc/aconfig_flags.pb Change-Id: Ia0d043e35f03bbf2bc8a29df0b2b8ecd8427e727
Diffstat (limited to 'fsgen/filesystem_creator.go')
-rw-r--r--fsgen/filesystem_creator.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/fsgen/filesystem_creator.go b/fsgen/filesystem_creator.go
index 765b28fd6..3e674b7fb 100644
--- a/fsgen/filesystem_creator.go
+++ b/fsgen/filesystem_creator.go
@@ -267,6 +267,10 @@ func partitionSpecificFsProps(ctx android.EarlyModuleContext, fsProps *filesyste
fsProps.Base_dir = proptools.StringPtr("system")
fsProps.Dirs = proptools.NewSimpleConfigurable(commonPartitionDirs)
fsProps.Security_patch = proptools.StringPtr(ctx.Config().PlatformSecurityPatch())
+
+ if ctx.DeviceConfig().SystemExtPath() == "system_ext" {
+ fsProps.Import_aconfig_flags_from = []string{generatedModuleNameForPartition(ctx.Config(), "system_ext")}
+ }
case "system_ext":
if partitionVars.ProductFsverityGenerateMetadata {
fsProps.Fsverity.Inputs = []string{