From e474f21a45b5e2b8973ffd378b119bf378cd0282 Mon Sep 17 00:00:00 2001 From: Hsin-Yi Chen Date: Mon, 4 Sep 2023 11:16:34 +0800 Subject: [PATCH] Check the ABI of libutils for vendor and product only It is not necessary to compare the dumps with the library installed in system partition. Test: m out/target/product/generic_x86_64/lsdump_paths.txt Bug: 280008249 Change-Id: I8fc39ad17d37cd43bf1d77ba23dde55d05dadce1 --- libutils/Android.bp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/libutils/Android.bp b/libutils/Android.bp index 162f0f44b..2c05fbc24 100644 --- a/libutils/Android.bp +++ b/libutils/Android.bp @@ -185,10 +185,21 @@ cc_library { support_system_process: true, }, - header_abi_checker: { - // AFDO affects weak symbols. - diff_flags: ["-allow-adding-removing-weak-symbols"], - ref_dump_dirs: ["abi-dumps"], + target: { + product: { + header_abi_checker: { + // AFDO affects weak symbols. + diff_flags: ["-allow-adding-removing-weak-symbols"], + ref_dump_dirs: ["abi-dumps"], + }, + }, + vendor: { + header_abi_checker: { + // AFDO affects weak symbols. + diff_flags: ["-allow-adding-removing-weak-symbols"], + ref_dump_dirs: ["abi-dumps"], + }, + }, }, }