This reverts commit 17ec995b11.
Test: ./create_reference_dumps.py
Bug: 152080301
Reason for revert: aosp_arm_ab and aosp_x86_ab are still supported.
Change-Id: I7a80931e8bc60fc86083d6fc55daa53e3ed9a4db
This commit removes aosp_arm64_ab and aosp_x86_ab. They have been
removed from the master branch and we don't need them anymore.
See also.
https://android-review.googlesource.com/c/platform/build/+/989349/
Bug: 135977699
Test: ./utils/create_reference_dumps.py -l libmediametrics
Change-Id: I1b1bf5d95cc35d9b9bf6180890acb602b54829be
Android build system and create_reference_dumps.py support:
- Creating dumps in vndk/ for the libraries that are LLNDK but not NDK.
- Creating dumps in platform/ for opt-in libraries.
Test: ./create_reference_dumps.py -libs libc -libs libcgrouprc
Bug: 133176785
Bug: 138219814
Change-Id: I827d8bfae2c4b6aff7e6cb835d0bf05ce1483ddf
This commmit finds the make goals by reading lsdump_paths.txt. This
fixes following problems:
1. Cannot build libraries that has been replaced by APEX stubs
(e.g. "libc" has been renamed to "libc.bootstrap")
2. Cannot lsdump with sanitizer variation suffixes (e.g. "_cfi")
Bug: 124829578
Test: create_reference_dumps.py --llndk -l libc
Test: create_reference_dumps.py --llndk -l libmediandk
Change-Id: I56d4f852f2e0dfe490e55f572bf3878f50464681
This commit removes the code path that searches lsdump files by
traversing the directory. Instead, always read the lsdump paths from
lsdump_paths.txt so that `create_reference_dumps.py` won't copy stale
lsdump files.
Bug: 121986692
Test: create_reference_dumps.py --llndk -lib libvulkan
Change-Id: I8c81dc1fd51d146da19a894c32e0df35907ba604
This commit removes the workaround to find the latest lsdump files since
aosp/858259 has been merged for a while.
Bug: 121986692
Test: n/a
Change-Id: I1508aefd178e014291cc8f409fdccf527588335a
This commit adds a workaround for `_platform` suffix when the module is
used by some apex modules.
Bug: 121986692
Test: create_reference_dumps.py
Change-Id: Ia9c95b10caca024ef3e0defbad894e8cf16a92b1
This commit refines the logic to pick the lsdump files for reference ABI
dumps. Before this commit, `findlsdump()` simply use `str_a in str_b`
to check whether module variant name (e.g.
`android_arm_armv7-a-neon_core_shared`) is in the path. However, this
check also matches the variant for apex modules (e.g.
`android_arm_armv7-a-neon_core_shared_apex.name`).
This commit fixes the problem by splitting each path into path
components and check whether a path component matches with the module
variant name.
Bug: 121986692
Test: development/vndk/tools/header-checker/utils/create_reference_dumps.py
Change-Id: I98f78f460ddeb076f4ca35b7a0d9dcac4a479ae8
create_reference_dumps.py supports --build-variant which defaults to
userdebug. When the script builds libraries, it sets
TARGET_BUILD_VARIANT instead of inheriting from current environment.
Bug: 121017205
Test: ./create_reference_dumps.py --build-variant eng --llndk -libs libbinder_ndk
Change-Id: Ibe5458c2bb62ebb44755e4bb90566d39a0bd52f2
- Remove both .lsdump and .lsdump.gz files before
create_reference_dumps.py builds new ABI dumps.
- Replace rm commands with Python built-in functions.
Bug: 120858317
Test: ./create_reference_dumps.py --llndk -libs libbinder_ndk
Change-Id: I11c50eaaba1cdd68f1f5f715293584a6fe0746c6
This commit refactors the `main()` function, cleans up several
indentation or spacing errors, and rewrites some code in Pythonic way.
Test: ./tests/test.py
Test: ./utils/create_reference_dumps.py
Change-Id: Ie654187bff5b5c49b421814efab0e8f308c93fa8
This commit adds an option to generate ABI dumps without compressing
them with gzip.
Bug: 111376916
Test: ./create_reference_dumps.py
Test: ./create_reference_dumps.py --compress
Change-Id: I1ad0781744a9ba6ff34ffed9418576986daeb67d
Split the content of lsdump_paths.txt with newline.
Bug: 111814844
Test: m vndk findlsdumps -j18
Test: ./utils/create_reference_dumps.py -products aosp_arm64
Change-Id: I76ed008382fff8589d29ab97720d262a7636d523
- P VNDK snapshot needs to include 64-bit binder target products,
aosp_[arm|x86]. Additionally, replace aosp_[arm64|x86_64]_ab with
aosp_[arm64|x86_64], the official GSI targets for P launching devices.
- Also add the ability to create abi references for a single product
Bug: 80372796
Test: utils/create_reference_dumps.py -p aosp_arm
Change-Id: Id073850a11c23c3ff68a414fe7bfd0d70d16887d
Currently, we do abi checks on the system variants of llndk libraries.
Therefore, add an 'llndk' flag to specify that the system variant should be
built.
Bug: 77101345
Test: utils/create_reference_dumps.py --llndk -l libdl produces
libdl references.
Merged-In: Id4c607674f096daf041520d4a1ca43199d4451da
Change-Id: Id4c607674f096daf041520d4a1ca43199d4451da
(cherry picked from commit cd0e8aff22)
Currently, we do abi checks on the system variants of llndk libraries.
Therefore, add an 'llndk' flag to specify that the system variant should be
built.
Bug: 77101345
Test: utils/create_reference_dumps.py --llndk -l libdl produces
libdl references.
Change-Id: Id4c607674f096daf041520d4a1ca43199d4451da
If BOARD_VNDK_VERSION is not specified or is equal to "current",
PLATFORM_VNDK_VERSION will be chosen. Currently, BOARD_VNDK_VERSION is always
equal to "current" because both system and vendor images are built in a single
source tree.
Bug: 64267858
Bug: 76036094
Test: utils/create_reference_dumps.py
Merged-In: I3bc76fc0029e9656881e2d8d1b2b80272120f6e6
Change-Id: I3bc76fc0029e9656881e2d8d1b2b80272120f6e6
(cherry picked from commit 302086856c)
If BOARD_VNDK_VERSION is not specified or is equal to "current",
PLATFORM_VNDK_VERSION will be chosen. Currently, BOARD_VNDK_VERSION is always
equal to "current" because both system and vendor images are built in a single
source tree.
Bug: 64267858
Bug: 76036094
Test: utils/create_reference_dumps.py
Change-Id: I3bc76fc0029e9656881e2d8d1b2b80272120f6e6
Binder bitness does not always directly relate to primary arch as
thought before. For eg: a target with primary arch 'arm' could be using
64 bit binder.
Bug: 74362434
Test: utils/create_reference_dumps.py
Merged-In: I1c1214b538e67247c666307d1360e4260239e4e1
Change-Id: I1c1214b538e67247c666307d1360e4260239e4e1
(cherry picked from commit 5ab281f313)
Binder bitness does not always directly relate to primary arch as
thought before. For eg: a target with primary arch 'arm' could be using
64 bit binder.
Bug: 74362434
Test: utils/create_reference_dumps.py
Change-Id: I1c1214b538e67247c666307d1360e4260239e4e1
- pick up lsdump paths from
$(OUT_DIR)/lsdump_paths/$(TARGET_PRODUCT)/paths.txt instead of
searching through out/soong/.intermediates.
- llndk lsdumps also get picked up and copied to ref dump dir root now
- creation of references are more fine grained to take into account
target arch variant and cpu variant as well.
- references for vndk libs and llndk libs for all target archs and
variants can be generated with one invocation of the script now.
Test: utils/create_reference_dumps.py -l libjpeg -l libc++ -l libc
Test: utils/create_reference_dumps.py -l libjpeg -l libc++ -l libc
--no-make-lib
Test: utils/create_reference_dumps.py
Change-Id: I9105900b70c62c01f8282e1782cb38a42f4d4356
Since we now build and install all vndk libraries,regardless of
dependencies, we may just look for all files with the extension '.lsdump' for
TARGET_ARCH and TARGET_2ND_ARCH, and copy them to the given reference dump
directory.
Test: utils/create_reference_dumps.py --version current -ref-dump-dir
<dir> creates reference dumps at <dir>
Change-Id: Ic9db57b00614b3e8dc18d8e56eab4bd87df1723c
1) We do not involve the build system to create test reference dumps. Symbols
in tests, are faked through version scripts to avoid checking in prebuilt .so
test files.
2) Also add a script to create reference abi dumps.
3) Fix a comment in ast_processing.cpp
Test: Run tests/test.py, all tests run and pass on generic arm64, mips64
and x86_64 builds.
Change-Id: Id3a420c1ae093a05a79da4c29e85071f28d714d1