summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2025-04-01Add wear-sdk bootclasspath jars Todd Lee
Bug: b/331485125 Test: manual build/boot Flag: NONE exempt wear only config change (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3bb29bdd9c3110380c700c032145070586cbcef2) Merged-In: Iaefc74134e842bcfd056ecd4f82796486afe8fa4 Change-Id: Iaefc74134e842bcfd056ecd4f82796486afe8fa4
2025-03-23Merge "Remove host script(list_image)" into main am: 95f1b12c71 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3545643 Change-Id: I3c05e2c386e572664ec69d63862d3762a1b12205 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-17Remove host script(list_image) Jooyung Han
the script is not used anywhere. But: 399476012 Test: presubmit (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bd1dda557e59e42da277da48db1181159889382d) Merged-In: I73b6b961e5b63fa01f926419aea42a6e2cfc1413 Change-Id: I73b6b961e5b63fa01f926419aea42a6e2cfc1413
2025-03-11Merge "manifest_check.py: Clarify that ordering matters" into main am: ↵ Treehugger Robot
ce75904eaf am: 43bbd4d187 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3536299 Change-Id: I6862e82209bcf08a0b4f3af6682a5b82f476d712 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-11manifest_check.py: Clarify that ordering matters Nick Kralevich
When comparing the library declaration from AndroidManifest.xml and Android.bp, the library ordering must match (see b/132357300#comment3). The error message does not make it clear that ordering is significant and a mismatch in ordering is an error. Improve the error message to make this more obvious. Bug: 401287317 Test: compiles Change-Id: Idfb3e1e96893f81190dc320c49d40677b76f9853
2025-03-04Merge "Replace --revert-annotation with a flags config file" into main am: ↵ Treehugger Robot
d183d9f24b am: e7fc6932ec Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3523090 Change-Id: Ib24835f07d425febddf98696971d5808f54c02ab Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-04Merge "Replace --revert-annotation with a flags config file" into main am: ↵ Treehugger Robot
d183d9f24b Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3523090 Change-Id: I5cfd92e154ae2e604589b4a91388a7a535ad1f14 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-04Replace --revert-annotation with a flags config file Paul Duffin
Previously, Metalava did not support flags specifically and instead relied on the build to generate the appropriate `--revert-annotation` options to ensure that each flagged API was reverted or finalized as appropriate to the flag state. However, Metalava now supports configuring the flag state explicitly so this change switches the build to make use of that. The set of flags to be passed to Metalava are generated using exactly the same queries as before except that instead of just outputting the `{fully_qualified_name}` it outputs the whole protobuf definition. The `keep-flagged-apis.sh` script has been replaced by `aconfig-to-metalava-flags.py` which consumes the protobuf and generates a config file suitable for Metalava to consume. Finally, instead of using `@<file>` syntax to pass a file containing command line options the config file is specified using `--config-file`. One point to note, previously, when `aconfigFlagsPaths` was empty it would just pass `--revert-annotation android.annotation.FlaggedApi` to revert them all. To do the same with the configuration file it is necessary to pass an empty `<api-flags/>` as no `<api-flags>` means keep all the flagged APIs, just like no `--revert-annotation` does. Rather than have some special logic to handle that case and create an empty file I just let it drop through as the code below generates an empty protobuf file which in turn creates an empty `<api-flags/>` element in the config file. Bug: 399846595 Test: # Before applying this change run: tools/metalava/scripts/gather-android-metalava-artifacts.py before # After applying this change run: tools/metalava/scripts/gather-android-metalava-artifacts.py after # Make sure that there are no differences. meld before after Change-Id: Ia95e111f10d066996e4e51c5b7027b09f4d05d57
2025-02-27Merge "Merge 25Q1 (ab/12770256) to aosp-main-future" into aosp-main-future Xin Li
2025-02-27Merge "Build Go tools for arm" into main am: 433dcb4e7f am: 9efbcaa474 Colin Cross
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3514910 Change-Id: I223aeb1fb8159a625cecdc1c81dfe32174a83d0a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-27Build Go tools for arm Colin Cross
Test: prebuilts/build-tools/build-prebuilts.sh Change-Id: I915be7bb7451f27fcd4beba5e6487da7a01639a6
2025-02-26Merge 25Q1 (ab/12770256) to aosp-main-future Xin Li
Bug: 385190204 Merged-In: I7a698681eff69f1bd80966cacd6bc95d5eb990f0 Change-Id: I4011e94066708ea793f58e36eb89baab6dffe94a
2025-02-18Merge "Skip attempting unsupported llvm-strip operation for COFF binaries" ↵ Yi Kong
into main am: e5d87424fa am: 3d88ce7d97 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3497020 Change-Id: I5caf3ec2cbd077375d01d40f0621de6a66c5ccad Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-17Skip attempting unsupported llvm-strip operation for COFF binaries Yi Kong
Prevent printing the following confusing and superfluous error message: prebuilts/clang/host/linux-x86/clang-r547379/bin/llvm-strip: error: option is not supported for COFF Test: presubmit Change-Id: Id5a940f8c78497cf5dae3b540e0ec8eab46da013
2025-02-11Merge "Disable LTO when building the NDK sysroot." into main am: c9fb315834 ↵ Treehugger Robot
am: b16e7861fd Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3489332 Change-Id: Ia92dd1c984eaf8ca0605e872f09ec41981475442 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-11Disable LTO when building the NDK sysroot. Dan Albert
Bug: https://github.com/android/ndk/issues/1591 Test: None (the tree's already broken, so I can't build) Change-Id: I7cb4a594491bc5913932cbd3a883c16753465234
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-21Merge "Make go test -race more hermetic" into main am: 27c6c1f15a am: a808b319e2 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3460660 Change-Id: Ie3c8a8273b2c72c84e1d9007d5cf070a59c77c9b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-21Merge "Make go test -race more hermetic" into main Treehugger Robot
2025-01-21Make go test -race more hermetic Colin Cross
Pass the same --sysroot, -B and -L flags to go test -race as Soong does for hermetic host builds. Test: OUT_DIR=/tmp/out ./run-soong-tests-with-go-tools.sh Change-Id: I2a47894c21610c219b48cd380ed44e3e11a236a2
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-19Merge "Update fstab.postinstall documentation in gen_build_prop.py" into main Treehugger Robot
2025-01-16Merge changes I18b9b90a,I51bbf104 into main am: 1dc6489345 am: 5efd0b17bc Cole Faust
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3454921 Change-Id: I0de58c1598f636dbc729a23c7fb70bfe0939eea8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-15Remove Include_make_built_files Cole Faust
We're not using this anytime soon, so just remove it for now. Bug: 390269431 Test: m nothing Change-Id: I51bbf104dceabafc08d562cfecb31a845cb88d12
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-21Merge "Replace ro.build.version.sdk_minor with ro.build.version.sdk_full" ↵ Mårten Kongstad
into main
2024-12-20Merge "Revert "Define a tool and a static rule to calculate the hash of a ↵ Treehugger Robot
directory"" into main am: 7e04724866 am: b4f86ad18e Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3428222 Change-Id: Ic929d96ac2c15ea67a7a77ab5a03d74768d99251 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-20Revert "Define a tool and a static rule to calculate the hash of a directory" Jihoon Kang
This reverts commit bd7afdc2a15e776e9aff208577ab16fd693499f2. Reason for revert: No longer needed Change-Id: I71874f5426dcd20b3bacf04379fb3f897835a4d5
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-19Merge changes I8c00d625,I7147dcbc into main am: 2cf4793f4d am: 7c838657b1 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3425159 Change-Id: I917680d24c05ddc71d6c01a5cb08a44bb9f9b8b5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-20Define a tool and a static rule to calculate the hash of a directory Jihoon Kang
The rule will be used in a follow up change that adds a directory in a provider. Test: m nothing Bug: 381104942 Change-Id: I7147dcbc43e19840b2d73380785a01bda6643d85
2024-12-16Merge "rust: Add version scripts and symbol exports" into main am: ↵ Ivan Lozano
983bbf07e9 am: 3268f066b9 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3370984 Change-Id: I91bb8e4fddbbbaed3e40cff7fea75db596bf96b4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-16Merge "rust: Add version scripts and symbol exports" into main Ivan Lozano
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-13rust: Add version scripts and symbol exports Ivan Lozano
This allows Rust modules to define a version_script for shared library variants. This requires using a wrapper for the linker (clang++) to intercept the flags which rustc emits. This also adds the ability to export additional symbols in addition to those exported by rustc by default, e.g. whole_static_library symbols. Bug: 314309643 Test: New Soong tests pass. Test: m Test: m <simple version script module> Test: m <simple extra symbols module> Change-Id: I93c9552e5e1181df4663d194c4df4b7053553dd4
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-12-05Merge "Fixes for avb flags in soong-generated partitions" into main am: ↵ Cole Faust
8759130e87 am: 5605d267de Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3390960 Change-Id: Ic43f9b41dd8aec7f64cab5bd85d82486541d7680 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-05Merge "Remove __future__ references from python scripts" into main am: ↵ Treehugger Robot
880b50fd84 am: 3ba2914573 Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3393440 Change-Id: Ibf4aa361636a759adcaf3bf3b9bfc64f449cf15f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-05Merge "Fixes for avb flags in soong-generated partitions" into main Cole Faust
2024-12-04Remove __future__ references from python scripts Cole Faust
All these scripts are now python3-only, they don't need this. Test: Presubmits Change-Id: Id2b9db26a537f6d70e874a0ae2ceb0927cbdce7d
2024-12-04Fixes for avb flags in soong-generated partitions Cole Faust
The logic for what variables control what aspect of AVB is pretty complicated, this brings make and soong closer together. Bug: 381120092 Test: m out/soong/.intermediates/build/soong/fsgen/aosp_cf_x86_64_phone_generated_system_image/android_common/prop, diff with make's prop file Change-Id: I6ada90262f4578d120c35b7f8d38c06c2b1d9c27
2024-11-14Merge "Add ninja determinism test" into main am: 06540bb808 am: b8eee8a1ed Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3348946 Change-Id: I53356b28c6a3ef10d8678226ebecc485cba58ed0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-13Merge "Add ninja determinism test" into main Treehugger Robot
2024-11-13Add ninja determinism test Cole Faust
To make sure the ninja files aren't non-deterministic. I will add this to CI after it's checked in. Test: Manually Change-Id: I071562885a1652fbfe2374916f5de017597f770a
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>