This commit uses `EnvironmentError` as a replacement for
`FileNotFoundError`, which was introduced in Python 3. Before this
commit, `OSError` was chosen. However, some Python API raises
`IOError` instead.
Bug: 113636759
Test: ./tests/run.py
Change-Id: I4a1cbceb3404dec243a60271a6fdb30703bc1060
LinkDecl now accepts a callable object used to filter exported symbols.
Bug: 80217511
Test: ./utils/create_reference_dumps.py -products aosp_arm
Change-Id: I1d6c4caeb2cba2a0265c5108242779506a1faaad
This commit adds a "binding" field to abi_dump.ElfFunction and
abi_dump.ElfObject to store ELF symbol binding information.
Bug: 80217511
Test: ./tests/test.py
Test: ./utils/create_reference_dumps.py -products aosp_arm64
Change-Id: Idfe909d9bf4cfb3af5bc9394d1d6844e33ee9a8a
This had been getting parsed by
system/core/platform_tools_tool_version.mk and inserted as a version
into fastboot. Now that fastboot is converting to Soong, switch this
over to a genrule in order to extract the version number.
Test: fastboot --version
Test: inspect generated header
Test: change plat_tools_source.prop_template, rebuild fastboot
Test: change plat_tools_source.prop_template to use ${PLATFORM_SDK_VERSION}
Change-Id: Id807539ce057add50b7d10a234670820a8772351
The existing tools in platform-tools that link against libc++.dylib
ended up loading the system version, not this one, due to the 32/64-bit
mis-match.
Test: m sdk
Change-Id: Ibc985fe7a30e05052e728ad3ce4fd9e866476827
* Pass ATREE_STRIP to use hermetic strip tool
* Stop using sdk/build/..., which has been empty
* Use soong_zip for faster, more reproducible zip files
* Add more dependencies
* Remove some echos to clean up output
Test: m win_sdk
Change-Id: I9bfbf6565dbeb4cc48ddd037596b8408ea3c3157
- Add a test case and data for lsdump in JSON format
- Rename command line option -text-format to -output-format
- Add option -input-format to header-abi-linker
Bug: 112877706
Test: ./test.py
Change-Id: Ia94f7ffffbcaf55f336932029883ea3635c547e9
This topic removes ashmem from ART. Changes the names in development/
too. It only affects "dalvik-" ashmem regions which are the majority.
Change-Id: I1186eb60087384847892f655bec8174169ffd6c4
Signed-off-by: Joel Fernandes <joelaf@google.com>
header-abi-dumper outputs JSON files if -text-format=Json is specified.
It uses libjsoncpp to convert IR to JSON. The output files follow the
schema of the protobuf, but the default values, such as empty array,
false and 0, are not omitted.
Bug: 112877706
Test: ./create_reference_dumps.py -libs libstagefright_bufferqueue_helper -products aosp_arm64
Change-Id: I0f964ee0530c444035170f451217bb005ee6107b
Before when the VNDK snapshot make target used to depend on the
phony targets of the VNDK libraries (e.g. libui.vendor), each
built library was installed under
out/target/product/{product}/system/lib*. However, vndk packaging
have since been changed to depend on the actual built files under
obj/*, and thus the VNDK snapshot target itself does not install
libs to /system/lib*. The testing logic in test.sh which compares
the VNDK snapshot zip file with the libs installed under
/system/lib* is now obsolete. For now there is no meaningful
alternative way to test the correct packaging without being
redundant.
Test: development/vndk/snapshot/build.sh
Change-Id: Ia8d9ef80541f80094c979ab80fd161386e30f916
For a cononical sample of a media player, see the Universal Music Player:
https://github.com/googlesamples/android-UniversalMusicPlayer
Bug: 33676939
Test: Verified projects compile when code removed.
Change-Id: I56e09ccf85647296c29da9a06b03b0fae98d50e6
* changes:
Retry the command for querying parent artifacts
Revise comments for when -v, -m options are needed
Check first if system_dir and device_dir exists
Print error on missing device target_files archive
This commit removes the full import path from abi_diff.proto so that
header-abi-dumper can be built separately.
Test: ./tests/test.py
Change-Id: Iec5062dc7ddecfec0f2fdac5993513fd647475ae
Currently mixed build targets are flaky, intermittently breaking
with the error message that either the parent artifact directory
does not exist (system_dir, device_dir) or a specific artifact
in the parent artifact directory does not exist.
To help debug this flakiness issue and avoid any race conditions
within the build-chaining infrastructure, allow the retrying of
the command for querying parent artifacts.
Test: build_mixed system_dir device_dir out_dir
Bug: 112250435
Change-Id: Ic2fd4056163c2a32d6057b6c182061c605cd158d
Change the order of variable checking so it is clear whether
the system_dir or device_dir does not exist or a specific file
in the *_dir does not exist.
Test: build_mixed system_dir device_dir dist_dir
Merged-In: I0d61ea11c3bd22ef12eccbb46b8f665414188307
Change-Id: I0d61ea11c3bd22ef12eccbb46b8f665414188307
(cherry picked from commit 52edf8fb4f)
Check the newly-created DEVICE_TARGET_FILES_ARCHIVE variable instead of
checking the DEVICE_ARCHIVE variable twice.
Test: run build_mixed with only the *-img-* archive in the device directory
Merged-In: I59d9b8f77cac1dcdeb2c88cdf37bc8dfbd1111ca
Change-Id: I59d9b8f77cac1dcdeb2c88cdf37bc8dfbd1111ca
(cherry picked from commit c1474312b3)