summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Justin Yun <justinyun@google.com> 2024-09-11 14:10:20 +0900
committer Justin Yun <justinyun@google.com> 2024-09-11 14:34:44 +0900
commit2cc42505d91aca2c9fc75b904eed69d7f4210af6 (patch)
tree1272153a38f3e3ec0a583f4327d0a45c3c931597 /filesystem/filesystem.go
parent1705fef470bcd264c05a8b247cf1465768e82725 (diff)
Soong system image may update the $PRODUCT_OUT
A target must define "USE_SOONG_DEFINED_SYSTEM_IMAGE := true" and "PRODUCT_SOONG_DEFINED_SYSTEM_IMAGE := <name of soong system image>" to use the soong defined system image. The system image must install the files to $PRODUCT_OUT for adb sync and build verification. Instead of using 'update_product_out' property in Android.bp, copy the files only if the name of the image matches with PRODUCT_SOONG_DEFINED_SYSTEM_IMAGE. Bug: 350599535 Bug: 365700376 Test: lunch aosp_x86_64-trunk_staging-userdebug && m && m aosp_cf_system_x86_64 Test: lunch aosp_cf_x86_64_phone_soong_system-trunk_staging-userdebug && m and adb sync on the cf device Change-Id: If8673ba2855a753a5559a588bd83068d950fd7e4
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index a8f97e3b7..0b390624f 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -136,9 +136,6 @@ type filesystemProperties struct {
// Install aconfig_flags.pb file for the modules installed in this partition.
Gen_aconfig_flags_pb *bool
- // Update the Base_dir of the $PRODUCT_OUT directory with the packaging files.
- Update_product_out *bool
-
Fsverity fsverityProperties
}
@@ -335,7 +332,7 @@ func (f *filesystem) copyPackagingSpecs(ctx android.ModuleContext, builder *andr
}
func (f *filesystem) copyFilesToProductOut(ctx android.ModuleContext, builder *android.RuleBuilder, rebasedDir android.OutputPath) {
- if !proptools.Bool(f.properties.Update_product_out) {
+ if f.Name() != ctx.Config().SoongDefinedSystemImage() {
return
}
installPath := android.PathForModuleInPartitionInstall(ctx, f.partitionName())