This commit separates SP-NDK from HL-NDK. In the latest design, to
allow HIDL Executables / Libs to use OpenGL-related libraries, SP-NDK is
spun off from HL-NDK.
Test: ./tests/test_ndk_libs.py
Change-Id: Ifafd71df8c517d88fb50d5027f4fcfec76ed5d4f
This commit moves `input` and `expected` into `testdata/test_elfdump`
subdirectory.
Test: ./tests/test_elfdump.py
Change-Id: I53773471d36c26df736b066f4d00f76a2707459f
This fixes some issues with using boost's asio (which wrongly assumes
_BSD_SOURCE implies that these things are available) following our
change from -isystem to --sysroot.
Test: Manual, check that we can build when using cfsetspeed on ICS.
Bug: https://github.com/android-ndk/ndk/issues/302
Change-Id: Iab50221e4864f9a09a8fb00691252170eb6e8d09
This commit implements ELF resolver so that we can change the default
search path and check the search directories specified in DT_RUNPATH.
Test: ./tests/run.py
Change-Id: I479d0cb1519032053c5813c003a959adde8fb05e
This commit splits DT_RPATH and DT_RUNPATH with semicolon so that an
ELF object file can specify multiple search paths.
Test: ./tests/run.py
Change-Id: Ib4d31177651a66bb205801f5fb1293c60452984d
Test: header-abi-dumper -o example1.dump tests/input/example1.cpp -I
tests -- -x c++ -std=c++11 -I . -I
~/android/aosp/external/clang/lib/Headers
example1.dump does not contain abi information not present in
tests/ .
Change-Id: Ia48e24cca14ac94e8e5b3c823243245d2994cdf9
header-abi-diff takes two input dumps produced by header-abi-dumper and
produces an abi compatiblity report.
header-abi-dumper, header-abi-linker now produce dumps formatted only in
protobuf TextFormat.
Test: Dump the abi exposed by test/input/example1.cpp. Add fields, change
return types of functions and dump the abi of this version. Produce the
compatibility report by: header-abi-diff -old <ver1-dump> -new <ver2-dump>
-o <compatibility-report>.
Also tested changing the abi of libjpeg, and comparing a reference
dump with the new dump. An Abi breakage is reported.
Bug: 32750600
Change-Id: I5444912d84de726aaa18977ca9162162aa13b760
This CL changes the api-versions.xml file released in platform tools
to correspond to what was checked into prebuilts rather than what
is being generated by the build. The version generated by the AOSP
build is incorrect for release, but we are now moving to releasing
platform tools from AOSP. In addition, this file will be removed
from platform tools after a few releases (it will be available from
the platform component instead).
Test: make win_sdk sdk_repo and check the included api-versions.xml
Change-Id: I0c3dd3c99ec0c852e7cf8d86b83e298e157044d2
This commit fixes the name for gralloc-mapper so that
vndk_definition_tool.py can correctly find gralloc-mapper
implementation.
Test: ./vndk_definition_tool.py sp-hal --system ... --vendor ..
Change-Id: I6ecf45ca6fdb107ca1854f51d620888d5eeaed5b
This reverts commit 45e5c53e91.
Reason for revert: jmgao's versioner is still using them
Bug: http://b/35243030
Change-Id: I17779695c443f3353082d122eacaffba5e5663d3
This commit adds `sp-hal` subcommand to vndk_definition_tool.py. It
will find vendor shared libraries with the name looks like same-process
HAL and compute its transitive closure.
Test: ./vndk_definition_tool.py sp-hal --system ... --vendor ... --closure
Bug: 34396885
Change-Id: Id79e3eed214205d119b94cafb14f222f91022b7c
This commit uses the command line library to parse the command line
options passed to vndk-vtable-dumper.
Test: ./tests/test_vndk_vtable_dumper.py
Change-Id: I9c4ff49a541f330173a2264d8b9124e0ed0ad99d
This commit renames llvm-figure-out-vtables to vndk-vtable-dumper.
Test: ./tests/test_vndk_vtable_dumper.py
Change-Id: I614a1fb0e8ddc89b32a8245322b0f198a363f6a0
* changes:
vndk-def: Exclude banned libs from vndk set.
vndk-def: Add path separator to the end of pattern.
vndk-def: Add libselinux.so to blacklist.
vndk-def: Refactor warnings for banned lib usages.
header-abi-linker links dumps produced by header-abi-dumper when it goes
over each source file in a vndk shared library. It simply looks at the
"mlinker_set_key" field of the protobuf message to do this.
Only abi information present in source files in "export_include_headers"
is dumped now. If a library does not export headers it's abi is not
dumped.
Added information about anonymous records. eg: typedef struct {} Foo;
Test: header-abi-dumper -o example1.dump tests/input/example1.cpp -I tests --
-x c++ -std=c++11 -I . -I ~/android/aosp/external/clang/lib/Headers/
Bug: 32750600
Change-Id: I692de0933349a6b80a6b1a3b605a377a25cd0b5a
This commit removes banned libs from vndk output set.
Test: Run vndk_definition_tool.py against AOSP images and check whether
libbinder has been removed or not.
Change-Id: I02b369f15f51260469bb5bed19ead55121d51b9f
This commit adds path separator to the end of regular expression pattern
for alternating path, which were specified with --system-dir-as-vendor
and --vendor-dir-as-system. This prevents us from treating
/system/bin/hwservicemanager as vendor module.
Test: Run vndk_definition_tool.py against AOSP images.
Change-Id: If18be210b8e72d662de8bc7e30af27015c72eb9b
This commit refactors the code to emit warnings to banned lib usages.
Test: run vndk_definition_tool.py against AOSP images.
Change-Id: I5fa64d60fc921d8bb5d291f7a54115a7ae87c628
This commit removes dead cc_defaults `header-checker-lib-default` which
was originally for header-checker. It doesn't work because we are not
shipping `libclang.so` in the prebuilts.
Test: mm -j8
Change-Id: I149437d045ab3371221aa7386e3cf78c387ae3bd