summaryrefslogtreecommitdiff
path: root/android/variable.go
AgeCommit message (Collapse)Author
2025-03-21Merge changes from topic "export_flash_block_size_to_soong" into main am: ↵ Spandan Das
273bf6e9b6 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3555346 Change-Id: Iaebf4a3d4d86be2da60f5cf0d183aa62480a96f3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-21Merge changes from topic "export_flash_block_size_to_soong" into main Spandan Das
* changes: Add some OTA related properties to android_device Add `avb_custom_vbmeta_images_partition_list` to misc_info.txt
2025-03-21Add some OTA related properties to android_device Spandan Das
These will be used to create misc_info.txt Bug: 398036609 Test: Built and diff'd Make and Soong misc_info.txt Change-Id: I53cd4f409c9a3a706165119c0d01f1ced5542a2b
2025-03-18Generic configuration for generic system modules. am: be6f81d61e am: d648ee4435 Justin Yun
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3425639 Change-Id: Ibd30d3911934db8857cf84de75200207a2a7331c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18Generic configuration for generic system modules. Justin Yun
Config object includes a copy of itself for the generic configuration. The generic configuration replaces any product-specific configurations with the generic information. When a module context gets Config() object, it returns the generic configuration if the module sets use_generic_config to true. Otherwise, Config() returns the original config object as before. By adding `generic:"<value>"` annotation to the product variable, the variables will be initialized with the <value> for the generic configs. If the <value> is "unset", the variable will be unset. The generic modules can be included in the shared system image to be installed in multiple targets. Bug: 361816274 Test: m nothing --no-skip-soong-tests Change-Id: I15e4ade17ad1a8969f8e0e91d994b60545dc412f
2025-03-17Merge "Deprecate Always_use_prebuilt_sdks.Enabled" into main am: 32f5bf51ae ↵ Spandan Das
am: 271fb45850 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3543103 Change-Id: Ifc200433d32ee6529ac5439ca57f46b3d3378079 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-14Deprecate Always_use_prebuilt_sdks.Enabled Spandan Das
This property is not evaluated in Soong's prebuilt mutators, which can cause duplicate installation errors. Please use `build/soong/docs/selects.md` for `Enabled` property. Test: m nothing --no-skip-soong-tests Bug: 403514488 Change-Id: I7fbdc8db8d72543a3e31169bb9fb4b77c3d5c108
2025-03-11Merge "Create super_empty.img using Soong" into main am: c9854201c3 am: ↵ Spandan Das
5a8f5eb896 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3533444 Change-Id: Icf48a94542adf772c4f6eaa0e5f8252c6873460f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-11Merge "Allow customizing stripping behavior with product variable" into main ↵ Treehugger Robot
am: 84ec3e012b am: 380aef1633 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3538037 Change-Id: Ic402445814207be7e13d591105217a120f547dac Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-11Merge "Create super_empty.img using Soong" into main Spandan Das
2025-03-11Allow customizing stripping behavior with product variable Cole Faust
aosp/3530072 made the default for host modules be to not strip them, but that increases the size of our build tools prebuilts. Add a flag that can be enabled on the build-tools build. Test: Manually Change-Id: I48173a52fe1a7068731ce0aca2367a0ebee0d068
2025-03-11Create super_empty.img using Soong Spandan Das
The build rule for this .img file will be created in super_image. It will use the a minimized file returned by `buildMiscInfo` without any partition information. This file will be disted in target_files.zip Bug: 390192334 Test: Verified that this file is bit-identical between make and soong for aosp_cf_x86_64_phone Change-Id: I9238d67d2ca8739064509a858d5251f2641896e9
2025-03-03Merge changes from topics "fastboot-info.txt", "super_in_update_package" ↵ Spandan Das
into main am: a6ef795f37 am: 06f850a5ac Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3516752 Change-Id: I2732280b1aea24cb8653789b6242f679f40458cc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-03Merge changes from topics "fastboot-info.txt", "super_in_update_package" ↵ Spandan Das
into main am: a6ef795f37 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3516752 Change-Id: I95765d6b62aa1cfa051ee1e7c9083da6fdb80baf Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-28Generate META/fastboot-info.txt file Spandan Das
Make packaging system generates META/fastboot-info.txt by 1. A checked-in fastboot-info file (TARGET_BOARD_FASTBOOT_INFO_FILE), OR 2. Generating a fastboot-info file from board config vars This CL implements (1). Cuttlefish uses a checked-in fastboot-info.txt file. To implement this, a new property has been added to `android_device` Test: Built Soong's META/fastboot-info.txt file locally Bug: 399788523 Change-Id: Iadef020b1144ec72efc3bc3c7020fe63b6c47d4a
2025-02-28Add Super_image_in_update_package prop to super_image Spandan Das
This property will be used to generate misc_info.txt Test: compared misc_info.txt of soong and make super.img Bug: 399788100 Change-Id: I1354dffb37688414c2ecad22fcbde05fe08383e8
2025-02-26Merge 25Q1 (ab/12770256) to aosp-main-future Xin Li
Bug: 385190204 Merged-In: I7a698681eff69f1bd80966cacd6bc95d5eb990f0 Change-Id: I4011e94066708ea793f58e36eb89baab6dffe94a
2025-02-13Merge "Package releasetools.py in target_files.zip" into main am: 2adfa4d848 ↵ Treehugger Robot
am: 52dfdb88e8 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3495096 Change-Id: I58d0eccee23af60623ed9d5c3a61c7ffbb723e5b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-14Package releasetools.py in target_files.zip Spandan Das
This CL creates an intermediate filegroup, and adds that to `Releasetools_extension` dep of the autogenerated android_device. This dep will be used for packaging target_files.zip Bug: 3493530 Test: Built and diff'd target_files.zip Change-Id: I9a5a2c3dba5fd37924544e92cb2646837047600a
2025-02-13Merge "Add Ab_ota_postinstall_config prop to android_device" into main am: ↵ Spandan Das
5fb06582f6 am: 0ce6a908b8 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3493530 Change-Id: Ia90783937f71db64eabc663edc17e5aebe1f129d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-12Merge changes from topics "soong_ab_partitions.txt", "soong_otakeys.txt" ↵ Spandan Das
into main am: 3a43e39fa2 am: a144ce915b Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3492144 Change-Id: I9a5b54978120506da7fe98d2822d5b7928d98f33 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-12Add Ab_ota_postinstall_config prop to android_device Spandan Das
It will be used to generate postinstall_config.txt file in target_files.zip Test: Built soong target_files.zip locally Bug: 388633394 Change-Id: I6f9f574fc3720b611b4c2df36b303857ccb9f14d
2025-02-12Add ab_ota_keys prop to android_device Spandan Das
This will be populated with PRODUCT_OTA_PUBLIC_KEYS for now. It will be used to generate otakeys.txt file in target_files.zip Test: Built soong target_files.zip locally Bug: 388633394 Change-Id: If10e0f6a7fcd55239e87dffa92341ed8c31d17cc
2025-02-12Add ab_ota_partitions prop to android_device Spandan Das
This will be used to generate ab_partitions.txt file in target_files.zip Test: Built soong target_files.zip locally Bug: 388633394 Change-Id: I442c0907094abb4f68fb0c666efae52509aa9538
2025-02-03Add product variable for PRODUCT_USE_SOONG_NOTICE_XML am: eb6a11412f am: ↵ Wei Li
1835301bf1 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3474609 Change-Id: I5c850d5d7d3698679047513bdca376eec1317083 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-03Add product variable for PRODUCT_USE_SOONG_NOTICE_XML Wei Li
Bug: 330949782 Change-Id: I5028d27ff700cd72eecd093421b54f62f0cd83a6
2025-01-21Merge "Modify autogen vbmeta chain and include partitions logic" into main ↵ Treehugger Robot
am: da481ebb28 am: c4f222ac14 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3452455 Change-Id: I47b15a2d67efba80fe3adb2486f9ff7b64fadf6a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-21Modify autogen vbmeta chain and include partitions logic Jihoon Kang
This change modifies the logic in selecting the chain and include partitions for the top level vbmeta partition generation to follow that in make. Implementation details: - Introduce separate functions for selecting the include and chain partitions - Set vbmetaPartitionProvider in boot images and filesystem modules given that boot images can be selected as chained partitions. Test: compare soong and make generated vbmeta partitions command Bug: 390204058 Change-Id: I7940629212c4624e88d25b162755205503cfa469
2025-01-16Build system_other image in soong-only builds am: 74ee4e0adc am: 22e666f22b Cole Faust
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3455109 Change-Id: I11b58dfea0efffe90a348e5748a4e09995dea52d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-16Build system_other image in soong-only builds Cole Faust
This just builds an empty system_other image for now, the dexpreopt files will be added in a followup change. Bug: 390269431 Test: m --soong-only Change-Id: Ic4a9bcb8b7ba1eb4444b3339d6c0b0cdfd485714
2025-01-15Merge "Update virtual ab properties in misc_info.txt" into main am: ↵ Cole Faust
628d810b73 am: cf595cb6f4 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3454688 Change-Id: I9a93658c013c68b88d48eb451cf28823ad7fb262 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-15Update virtual ab properties in misc_info.txt Cole Faust
Needed to build the super image correctly. Bug: 390239238 Test: Built and diff'd make and soong's misc_info.txt files Change-Id: I99fb0511109ddcd298cab3e22827e89211f66d63
2025-01-15Merge changes from topic "rm-allowed-deps" into main am: 18e0d97f03 am: ↵ Chan Wang
9e6cf26c8b Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3452751 Change-Id: Ib20fd859b396c9a571321d780ecbdec339f08901 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-15Merge changes from topic "rm-allowed-deps" into main Chan Wang
* changes: Resend aosp/3445142 Resend aosp/3446212
2025-01-14Specify additional props for userdata image am: 6d08d92578 am: 63c35d30cb Jihoon Kang
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3453208 Change-Id: I33ebe0c62184debb8089830651f9c7d0927215dc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-14Specify additional props for userdata image Jihoon Kang
Implementation details: - Introduce support_casefolding, support_project_quota and enable_compression properties in filesystem modules. - Specify the userdata partition-specific props in filesystem_creator. Test: m out/soong/.intermediates/build/soong/fsgen/aosp_cf_x86_64_phone_generated_userdata_image/android_common/userdata.img Bug: 388920173 Change-Id: Id37c677e9bf28c1a338459e28ac6b05e5f58b407
2025-01-14Resend aosp/3446212 Chan Wang
Not revert^2 to bypass potential auto-merge issue, because the previous change failed to auto-merge into internal branch (b/389693264 logged for it) Bug: 380222284 Bug: 383062486 Test: m nothing --no-skip-soong-tests Change-Id: I0a002cfc83163efaf6f282586f80f15a9e7fdac2
2025-01-13Revert "Revert "Added EXTRA_ALLOWED_DEPS_TXT to allow arbitrary ..." Pechetty Sravani (xWF)
Revert submission 3444766-non-aosp-allowed-deps Reason for revert: <Droidmonitor created revert due to b/389580262.Will be verified through ABTD for standard investigation.> Reverted changes: /q/submissionid:3444766-non-aosp-allowed-deps Change-Id: I0f62307e4b3ca8fbc53303576f42929b5eebeadf
2025-01-10Revert "Added EXTRA_ALLOWED_DEPS_TXT to allow arbitrary allowedlist text ↵ Chan Wang
files that enforces min_sdk_version for apex dependencies to avoid regression" This reverts commit 8609a5569c7d93efc983e7c5f091fbdd4f955567. Reason for revert: Design change - not collecting dependencies of non-AOSP updatable APEX Bug: 380222284 Bug: 383062486 Test: m nothing --no-skip-soong-tests Change-Id: I4150848502fc1f172f88dc4f0d1e663ac5a8cfea
2025-01-09Merge "Copy bootloader to PRODUCT_OUT" into main am: c44ef1df21 am: 1e3c73d4b5 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3445141 Change-Id: I5396198f7789d2d2ce759c9acad80f8ffae886a7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-09Copy bootloader to PRODUCT_OUT Jihoon Kang
Implementation details: - Import BOARD_PREBUILT_BOOTLOADER to Soong, and create a filegroup module - Introduce `bootloader` property in android_device - Introduce file copying (to PRODUCT_OUT) mechanism in android_device Test: m aosp_cf_x86_64_phone_generated_device --soong-only Bug: 388852084 Change-Id: I89a08590e39e771019e507b419fafae37bc4bb97
2025-01-07Merge "Add support for aapt2 png compression level" into main am: e34968e0ef ↵ Yurii Zubrytskyi
am: 6ed8e73a30 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3326315 Change-Id: I35a235bdb6cf0d063ca58c667518b564b50a2654 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-07Merge "Add support for aapt2 png compression level" into main Yurii Zubrytskyi
2025-01-02Specify partition_size argument for vendor_boot partition generation am: ↵ Jihoon Kang
5cf364227d am: 21c89f8baa Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3434609 Change-Id: I6c096530c508e0404d3fd51d06945ceaa4918597 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-02Specify partition_size argument for vendor_boot partition generation Jihoon Kang
Follows the similar logic for passing partition_size argument for boot image generation. This is the last remaining difference between the soong and make generated vendor_boot partition, and with this topic the two images are bit identical. Test: diff soong and make generated vendor boot partition images Bug: 379945468 Change-Id: I92b2035a3bc1847de97c7ac6fc370688b94fc2c3
2024-12-21Merge "Replace ro.build.version.sdk_minor with ro.build.version.sdk_full" ↵ Mårten Kongstad
into main
2024-12-20Merge "Soong generates kernel_version_for_uffd_gc.txt" into main am: ↵ Zi Wang
4366d9172b am: 519638436d Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3419519 Change-Id: Ie39e0a65cea3b8f757eb3456326a7f16801a87a2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-20Add support for aapt2 png compression level Yurii Zubrytskyi
aapt2 by default uses the slowest compression level for png images, and it makes sense for the final release. On the other hand, it takes ~5x longer than zlib level 6 which is still just ~1-2% larger for Framework resources. Allowing faster compression saves over a minute of Platform compilation time for eng builds, so let's support it Test: manual, build + boot Android Flag: EXEMPT build system feature disabled without uses Change-Id: I74462c182ab78e37647f1dfe1ec5f449458e5dc1
2024-12-20Soong generates kernel_version_for_uffd_gc.txt mrziwang
In the context of support "--soong-only", kernel_version_for_uffd_gc.txt needs to be generated by Soong. Soong will write the BOARD_KERNEL_VERSION to the txt file in soong-only mode. It will panic if BOARD_KERNEL_VERSION is not set. Test: CI Bug: 383564057 Change-Id: Idb264eaa91424ed9bab5be4988c7eb96334153f5
2024-12-20Replace ro.build.version.sdk_minor with ro.build.version.sdk_full Mårten Kongstad
Keep ro.build.version.sdk for backwards compatibility. Bug: 380235511 Test: atest CtsOsTestCases:BuildTest Ignore-AOSP-First: minor versions do not exist in AOSP yet Change-Id: I1379110fa50522077b84f948b1b40a8c487308b7