From 6c2353d7fd6c54471dabde9d179f24ca34a77ea2 Mon Sep 17 00:00:00 2001 From: Hsin-Yi Chen Date: Fri, 8 Jul 2022 12:09:10 +0800 Subject: [PATCH] Let finalize_branch_for_release.sh create ABI dumps Bug: 238984913 Test: build/make/finalize_branch_for_release.sh Change-Id: I0a2e2cfe33464fbe0b4d210e9936a89713059556 --- finalize_branch_for_release.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/finalize_branch_for_release.sh b/finalize_branch_for_release.sh index 12b096fa5d..ce90ac0ba0 100755 --- a/finalize_branch_for_release.sh +++ b/finalize_branch_for_release.sh @@ -16,15 +16,23 @@ function finalize_main() { # Update references in the codebase to new API version (TODO) # ... - AIDL_TRANSITIVE_FREEZE=true $m aidl-freeze-api + AIDL_TRANSITIVE_FREEZE=true $m aidl-freeze-api create_reference_dumps + + # Generate ABI dumps + ANDROID_BUILD_TOP="$top" \ + out/host/linux-x86/bin/create_reference_dumps \ + -p aosp_arm64 --build-variant user # Update new versions of files. See update-vndk-list.sh (which requires envsetup.sh) $m check-vndk-list || \ { cp $top/out/soong/vndk/vndk.libraries.txt $top/build/make/target/product/gsi/current.txt; } - # for now, we simulate the release state for AIDL, but in the future, we would want - # to actually turn the branch into the REL state and test with that - AIDL_FROZEN_REL=true $m nothing # test build + # This command tests: + # The release state for AIDL. + # ABI difference between user and userdebug builds. + # In the future, we would want to actually turn the branch into the REL + # state and test with that. + AIDL_FROZEN_REL=true $m droidcore # Build SDK (TODO) # lunch sdk...