summaryrefslogtreecommitdiff
path: root/core/packaging
AgeCommit message (Collapse)Author
2025-02-07Create aconfig_flags for all containers. Justin Yun
Some targets do not create images for some non-system partitions, but include them in the system partition. Even in such cases, create the aconfig_flags in the etc directory of the original container. For example, system_ext aconfig_flags.pb can be installed in system/system_ext/etc/aconfig_flags.pb. With this change, add system_ext to the aconfig paths along with the other partitions. Bug: 385213580 Test: lunch gsi_x86_64_soong_system-trunk_staging-userdebug && m Change-Id: I660eb2e3d55850680ca610b8b756495d1769de4c
2024-12-17Connect fingerprint build flag to v2. Marybeth Fair
If RELEASE_FINGERPRINT_ACONFIG_PACKAGE is enabled, the storage file version arg supplied to aconfig create-storage will be v2. Otherwise, send v1 (current default). As the build flag is not enabled, this change should be a no-op. Confirmed by building that the files were still v1. Test: manual Change-Id: I2e3ef14c5a61bd1cbb2868f01a554af4d9e2a84b
2024-12-03Filter read-only + disabled flags from aconfig_flags.pb Ted Bauer
Bug: 373685244 Test: m and inspect SYSTEM/etc/aconfig_flags.pb Flag: EXEMPT flagging within flag infra Ignore-AOSP-First: CPing aosp/3378710 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5730ce71ac657ba88d2265148fa63ce1d10b105e) Merged-In: I9a1d3d3589246b650326f8770209401ca388a734 Change-Id: I9a1d3d3589246b650326f8770209401ca388a734
2024-12-02Correct a comment in flags.mk Justin Yun
Correct the comment for generate-partition-aconfig-flag-file to describe the function. Bug: na Test: na Change-Id: I8b4b35fa0a272a125ede4cf151ff72307247e0b5
2024-09-23aconfig: create flag info file at build time Dennis Shen
Previously flag info file is created at run time rather than at build time due to two reasons: 1, it saves some storage space on each container 2, initially the flag info file does not container any flag non run time info, so creating this file at run time on device is more efficient. However, flag info file is fairly compact, 1 byte per flag. So the storage footprint increase is minimal. Also, now flag info file contains flag information known at the build time such as if the flag is read write. To help create flag info file at run time, we actually have to keep additional information on flag map file. Then use this information to create flag info file at run time. Now it is more efficient to just create flag info file at build time. In addition, to create flag info file at run time, we need to maintain an additional write api create_flag_info_file. Each time flag file version changes, we have to keep the old version of this API as well. If we create flag info file at build time, then we don't have to maintain this API. Overall the benefits outweight the 1 byte per flag storage overhead. Therefore making this change to create flag info file at build time. Bug: b/301491148 Test: m Change-Id: I33993a438bbaf8697214655288ced30817b9592e
2024-09-12Treat system_ext as system in container designation Dennis Shen
Bug: b/365135457 Test: m Change-Id: Iece264cdd49d84ef0e5acccdbcf68059c876395f
2024-07-03Generate aconfig flag storage file from the aconfig_flag.pb of the Zhi Dou
pertition Test: m Bug: 349410287 Change-Id: I6f706e90df7985e81865b18b353e4263dea72c0c
2024-06-26Only include this partition's flags in aconfig_flags.pb LaMont Jones
Flags should only be in one of the files. Bug: 349410287 Test: manual, TH Change-Id: I85376298538e2537f8f0f717a0a40a8545e99ea6
2024-05-23Build build_flags.json in soong Justin Yun
Move the make build rule for build_flags.json to soong. Bug: 324996303 Test: m --no-skip-soong-tests Change-Id: I958d5bb78db1d63b6145ac6a498490faa2fea315
2024-03-26feed actual container name to storage file creation Dennis Shen
Bug: b/328491388 Test: m Change-Id: I278cfc9b8e1818d67514fbf1682850aa297ae851
2024-02-28aconfig_storage: move storage files to <partition>/etc/aconfig dir Dennis Shen
Move them to under aconfig dir so it is easier to define SELinux policy. Bug: b/312459182 Test: m Change-Id: I2af7167a21e004729a9ac8628243080c893fb33a
2024-01-30Add device_aconfig_declarations target LaMont Jones
Building device_aconfig_declarations creates simplifies listing all aconfig flags used on the device by creating a build artifact at: $(OUT_DIR)/target/product/$(TARGET_PRODUCT)/device_aconfig_declarations.pb Bug: b/308625757 Test: manual Change-Id: Ic5eef9c6a26f7893b3f4bdfed2cd4ac82a54a8f9
2024-01-23update flags.mk to create one storage file per rule Dennis Shen
Bug: b/321243743 Test: tested in internal main build Change-Id: I824c698587843fc72e8a16e8646262202663d99e
2024-01-12build system to create flag storage files per partition Dennis Shen
Add make file targets to create storage files. Note the container field to aconfig command is an empty string for now as flags now by default assumes empty container string in parsed_flag proto. Need to update it once the container specification to aconfig files are done. Bug: b/312239352 Test: m Change-Id: If7bd12be5917a4779047633c00f88166574bfe0b
2023-12-05Add --dedup flag to generate-partition-aconfig-flag-file Colin Cross
When Soong creates per-module aconfig files by merging aconfig files from dependencies $(sort) is no longer sufficient to dedup identical flags. Pass --dedup to aconfig dump. Fixes: 313698230 Test: m out/target/product/vsoc_x86_64/system/etc/aconfig_flags.pb Change-Id: Icd8a3fbff8fe0be1dbb617ac1db4bd73f35b2d2f
2023-11-01Revert^2 "Do not generate aconfig_flags.textproto" Ted Bauer
This reverts commit 49fbb31fcfe743fb80fa47db0d7909a9fb14edb8. Reason for revert: textproto usages have been removed Change-Id: I4021b5e79bcd114a610a529bc68e0be50500b339
2023-10-26Revert "Do not generate aconfig_flags.textproto" Ted Bauer
This reverts commit 0ac530459825bc31a71acbd901575effbd88d681. Reason for revert: unbreak FlagFlipper Test: m Change-Id: I3c00d97bcb39d50a54b46fb61eaa30e8fcb0c9a5
2023-10-13Do not generate aconfig_flags.textproto MÃ¥rten Kongstad
The /<partition>/etc/aconfig_flags.textproto files are no longer needed (all clients have migrated to use /<partition>/etc/aconfig_flags.pb). Stop generating them. Also update how an empty file is generated in case there are no flags for a given partition. Previously echo "" > file was used, which resulted in a file containing a newline, which caused `printflags` to error out. Change the command to echo -n > file to create an empty file. Bug: 302452801 Bug: 304278614 Test: m nothing Change-Id: I2f7d23df4e888046651b4155b75c5006d0b5e1d7
2023-09-14Dump Aconfig flags pb file alongside textproto. Ted Bauer
Bug: 299907996 Test: manually confirmed that pb file is gen'd and cp'd to device Change-Id: I8e5c7bb8b1ad234bd6f0dba4de1cbe3fe1df19ae
2023-08-21Merge "Add dependency for combined aconfig files" into main Treehugger Robot
2023-08-19Add dependency for combined aconfig files Joe Onorato
Bug: 293436986 Test: manual Change-Id: I1d358faf9a0a3a83a92646c7cf7194c17ad2331e
2023-08-08Include flags files in product SBOM. Wei Li
Bug: 272358980 Test: build/soong/tests/sbom_test.sh Change-Id: Ifcb2f26044c346c54e60d1d4fb85fc4001f64210
2023-07-07Combine aconfig cache files into per-partition dumps. Joe Onorato
Bug: 283910439 Test: manual validation of outputs, soong unit tests Change-Id: I5f7dc16ee42c3722dc66ffe964ed20479eea1e15