summaryrefslogtreecommitdiff
path: root/scripts/gen_build_prop.py
AgeCommit message (Collapse)Author
2025-02-05Merge "Stop setting dalvik.vm.image-dex2oat-filter property" into main am: ↵ Andrew Scull
8ef3c25e56 am: 79197d4cbc Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3475312 Change-Id: I994af5c06d982b91d39cc1e9e88c7e823e07f2ea Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-05Stop setting dalvik.vm.image-dex2oat-filter property Andrew Scull
This system property is no longer expected by ART. There is a new way to disable all dexpreopt and dexopt using `OVERRIDE_DISABLE_DEXOPT_ALL`, `dalvik.vm.disable-art-service-dexopt`, and `dalvik.vm.disable-odrefresh`. See build/make/target/product/runtime_libart.mk for more details. JIT Zygote mode uses the `verify` filter, which `extract` is an alias for, so deleting the property is a no-op. This also cleans up the deprecation warning for the `extract` value in logcat. Test: TH Test: Build and boot eng variant Change-Id: I9eab28fa6db5774e5285a007bdefa6d8ce133a58
2025-01-19Merge "Update fstab.postinstall documentation in gen_build_prop.py" into ↵ Treehugger Robot
main am: fe6a78178a am: 74584022cc Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3451452 Change-Id: Ice6fab396c26c044919ef2d1a3f806ce2170bdaa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-15Update fstab.postinstall documentation in gen_build_prop.py Bowgo Tsai
Update the documentation for the ro.postinstall.fstab.prefix property to reflect that the default is /system. Bug: None Change-Id: Ia03c07cef31b03346cbabbb48e661c0c63aa6317 Test: None
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
2024-12-13Merge "Normalize filepath comment for gen files in build.prop" into main am: ↵ Treehugger Robot
71340584f8 am: 57cd0fd6a7 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3412618 Change-Id: Ife3063ab0cad6d4364982bac65f0095650fdc535 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-13Normalize filepath comment for gen files in build.prop Spandan Das
build.prop contains a `# from $filepath` comment to log the origin of a sysprop. This is useful to have, but causes the metadata of vendor/build.prop to be different between make and soong built partitions. This CL replaces the absolute filepath of generated files with their filenames in the build.prop comment. Bug: 382295862 Test: commented out notice files in build/make/core/Makefile Test: lunch aosp_cf_x86_64_phone-trunk_staging-userdebug Test: export BUILD_DATETIME=10 Test: verified that vendor.img built by make and soong have the same sha Change-Id: Ib0caad5fa0171c39317646e49372a69534a42af0
2024-12-09Merge "Use unmodified TARGET_USES_VULKAN in ro.hwui.use_vulkan" into main ↵ Spandan Das
am: 0de24cb528 am: 5493d23a0f Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3393808 Change-Id: I66862922ee8897e68cf26a8d5d95e43536b8a71d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-06Use unmodified TARGET_USES_VULKAN in ro.hwui.use_vulkan Spandan Das
This will create an empty ro.hwui.use_vulkan if TARGET_USES_VULKAN is empty. This matches the make behavior, and helps with validating the contents of soong vendor filesystem. Bug: 382295862 Test: lunch aosp_cf_x86_64_phone-trunk_staging-userdebug Test: m out/soong/.intermediates/build/soong/fsgen/aosp_cf_x86_64_phone_generated_vendor_image/android_common/aosp_cf_x86_64_phone_generated_vendor_image.img Test: Verified that ro.hwui.use_vulkan is same between make and soong (empty string) Change-Id: I9f80e613f7539dd2e895cfa96bd2ba481ddd6974
2024-11-13Merge "Build ramdisk's build.prop with soong" into main am: 51778812b4 am: ↵ Cole Faust
9211804267 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3343347 Change-Id: I2fc82bf1bfe4c6e654ad5780f3238a426375205b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-13Build ramdisk's build.prop with soong Cole Faust
Following the same pattern as existing soong build.props, but with minor tweaks for ramdisk such as making the partition "bootimage". Bug: 378146476 Test: Diff'd out/target/product/vsoc_x86_64/ramdisk/system/etc/ramdisk/build.prop before and after this cl Change-Id: I7ab2621d78c28deb73628bc455e040247a3c8031
2024-11-07Merge "Migrate build.prop for (system|vendor|odm)_dlkm to soong" into main ↵ Spandan Das
am: 3c0e465cc3 am: 5b2e623e5a Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3340853 Change-Id: I5878067348314781b80cdc1513adf5f1b59cae69 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-06Migrate build.prop for (system|vendor|odm)_dlkm to soong Spandan Das
Bug: 377562851 Test: lunch aosp_cf_x86_64_phone-trunk_staging-userdebug Test: no diff in $PRODUCT_OUT/system_dlkm/etc/build.prop $PRODUCT_OUT/vendor_dlkm/etc/build.prop $PRODUCT_OUT/odm_dlkm/etc/build.prop (modulo timestamp diffs) Change-Id: I636442de860220d2ac6f5b510038a1405013d819
2024-11-06Add sdk_minor to build prop of all partitions built with soong Spandan Das
ag/28035235 udpated sysprop.mk to add sdk_minor to build.prop of all partitions when building with make. But its sibling ag/28035315 updated gen_build_prop.py to add sdk_minor to build.prop for only system.img. The build.prop modules are currently being migrated to soong, and this CL adds sdk_minor to all soong built build.prop files Bug: 350458259 Bug: 375500423 Test: Verified that the following line exists in soong-built vendor build.prop ``` ro.vendor.build.version.sdk_minor=0 ``` Ignore-AOSP-First: sdk_minor change is not available in AOSP Change-Id: I7a698681eff69f1bd80966cacd6bc95d5eb990f0
2024-10-29Merge changes from topic "soong_vendor_build_prop" into main am: cd6e54c4b6 ↵ Spandan Das
am: fff7fe7a16 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3322566 Change-Id: I809f30020af32dee21092f14829e51fee942ffbf Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-28Add vendor to list of supported partitions in gen_build_prop.py Spandan Das
The kati built vendor.img will still use the kati built vendor build.prop file, but the soong built vendor.img will use an autogenerated `build_prop` module for vendor This CL should be a noop for now Bug: 374371755 Test: diff in contents for aosp_cf_x86_64_phone https://paste.googleplex.com/5766413037076480 Summary - timestamp change (expected) - ro.hwui.use_vulkan changes from "" to false, but I think this is functionally equivalent Test: presubmits Change-Id: I10bc5b6e8d48b86fa70d5ab0722fee658b1a224a
2024-10-24Merge "Define VendorApiLevelPropOverride for GRF prop" into main am: ↵ Treehugger Robot
17d5d89124 am: c7458ed324 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3316635 Change-Id: I28569d756bd2142268ba7b6c7c1a18cec004382a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-24Define VendorApiLevelPropOverride for GRF prop Justin Yun
Soong must read BOARD_API_LEVEL_PROP_OVERRIDE to generate build props for vendor image. If this value is provided, ro.board.api_level will be set to this value. Bug: 374333106 Test: read product_config Change-Id: Ifbeea76596ea7b22928ae58467bb05cffeb5da1f
2024-09-12Handle RELEASE_PLATFORM_SDK_MINOR_VERSION Mårten Kongstad
Teach Soong about the new RELEASE_PLATFORM_SDK_MINOR_VERSION build flag which is used to set the minor Android API level. Bug: 350458259 Test: m Ignore-AOSP-First: internal to keep in sync with related CLs that are not AOSP first Change-Id: I1f715ed9eeeb98ac526299ae5bc1be5b44b7ef19
2024-08-08Build product/odm build.prop with Soong Inseob Kim
Bug: 322090587 Test: compare build.prop before and after, boot Change-Id: I7a7dc785030a0c17e5c09b7f65c978fe9bbcb7a7
2024-08-05Add system_ext support to build_prop module Inseob Kim
As some partitions have build.prop under etc/, this change adds relative_install_path property to build_prop module. Also this change adds system_ext related Soong variables and system_ext support in gen_build_prop.py. Bug: 322090587 Test: build and compare system_ext/etc/build.prop Change-Id: I416662b8bae09383af0cdd3d8444a5c300006b7b
2024-08-01Merge changes from topic ↵ Inseob Kim
"revert-3200273-revert-3196490-revert-3195812-revert-3195644-revert-3195637-revert-3184480-system_build_prop_soong-BZIDUTEOOC-KRUETCBWUR-TUHZPHUVFJ-XYILSUPUOA-PCKYAVELZP-XOXPVYPSBJ" into main * changes: Revert^6 "Use Soong-built system/build.prop" Revert^6 "Sync gen_build_prop.py to sysprop.mk" Revert^2 "Conditionally pass kernel version to build.prop" Revert^6 "Add TARGET_SYSTEM_PROP to system build.prop" Revert "Revert "Revert^2 "Set output for build_prop even on Soon..."
2024-07-31Revert^6 "Sync gen_build_prop.py to sysprop.mk" Inseob Kim
This reverts commit 7b7593968bfbddd16e461c44da7062e02db5ad7a. Reason for revert: fixed breakage with aosp/3200730, verified with ABTD Change-Id: I83a4cb1a39bce1a1da8fabd49c6c895862a6c686
2024-07-30Revert^5 "Sync gen_build_prop.py to sysprop.mk" Liana Kazanova
2c7e13ea373a76c781abdf8119f41dc7dc634c48 Change-Id: Ic1fd9ec4d65b657fb80a3849539e286934111d3c
2024-07-31Fix build thumbprint in gen_build_prop.py Inseob Kim
Bug: 356297315 Test: TH and ABTD Change-Id: I28bccbbafbf9bcdf45a58361e37435b8d74d7464
2024-07-25Revert^4 "Sync gen_build_prop.py to sysprop.mk" Inseob Kim
c13856eb1db59f1b9e0b77329389ded2aa961c62 Change-Id: I4af6737c9d96821b524e34f271e92b610430a8d4
2024-07-25Revert^3 "Sync gen_build_prop.py to sysprop.mk" Pechetty Sravani (xWF)
e176dc9ee22b5ee8cc85904aeab21e48fb657ab2 Change-Id: I8cf265281ff16ad65d1fe8d6084a6fd49adc294c
2024-07-25Revert^2 "Sync gen_build_prop.py to sysprop.mk" Inseob Kim
0e7cde59c80c28b166f4fe099ac1d3f44ce4fb79 Change-Id: If8b60802c8bdc62689d8939d5efa9007ad814d85
2024-07-25Revert "Sync gen_build_prop.py to sysprop.mk" Inseob Kim
Revert submission 3184480-system_build_prop_soong Reason for revert: breaks ndk and mainline build Reverted changes: /q/submissionid:3184480-system_build_prop_soong Change-Id: I833aacf23bbe7cd16b6aad0b7d94a9b46a8192e4
2024-07-24Sync gen_build_prop.py to sysprop.mk Inseob Kim
Also fixes a bug on an if clause. Bug: 322090587 Test: build and compare both build.prop files Change-Id: Id0dfba98f5cd67c939594554b470e7fad9cfd518
2024-07-19Fix DISPLAY_BUILD_NUMBER Inseob Kim
The dot was accidentally removed. Bug: 353425495 Test: build Change-Id: Id0c08f3c98d5b2f56e49180baf98bb8847f6bebd
2024-07-03Fix build error for gen_build_prop.py Justin Yun
Provided undefined constants and imports. Bug: 346214958 Test: Define "PRODUCT_DEFAULT_DEV_CERTIFICATE := \ build/make/target/product/security/testkey" and m aosp_cf_system_x86_64 Change-Id: Ic65f059fe87a997a9be695ebf13dfde2d2c6f82c
2024-06-26Fix a bug that BUILD_VERSION_TAGS is ignored Inseob Kim
Bug: 349046347 Test: set BUILD_VERSION_TAGS and build Change-Id: Ib981d917435d23139ac0c5b0aba5b6893539d200
2024-06-19Add build_prop soong module Inseob Kim
build_prop is a soong module generating {partition}/build.prop. It's ported from build/make/core/sysprop.mk and will replace sysprop.mk in the future. Currently used only by Android.bp cuttlefish system image. Bug: 322090587 Bug: 346214958 Test: compare system/build.prop and aosp_cf_x86_64_system-build.prop for eng / user / userdebug Change-Id: Iad76139fe86ec4f582218c185aa15baeacaa38dc