Commit Graph

25140 Commits

Author SHA1 Message Date
Hsin-Yi Chen
ccf0ed47ac Merge "Add test for lsdump in JSON format"
am: a441e936f1

Change-Id: I8b83deec31ca2434babae0b66ccf50d03b948e7c
2018-09-02 23:30:13 -07:00
Hsin-Yi Chen
a441e936f1 Merge "Add test for lsdump in JSON format" 2018-09-03 06:23:29 +00:00
Logan Chien
21546916e5 Merge "vndk-def: Use EnvironmentError in Python 2"
am: 97fe9a48ba

Change-Id: I9f9397c4e433a01c187763974c692f6fa5b782f5
2018-09-02 19:09:09 -07:00
Logan Chien
97fe9a48ba Merge "vndk-def: Use EnvironmentError in Python 2" 2018-09-03 01:57:01 +00:00
Yi-yo Chiang
6ab50cd44c Merge "Refactor LinkDecl in header-abi-linker"
am: fa1f9365ca

Change-Id: I086c56101f6a5c642f43b2142e13aeef08c394c8
2018-08-31 21:06:24 -07:00
Jayant Chowdhary
fb734c2d0f Merge "Add symbol binding information to header-abi-linker"
am: 8f9d0924cc

Change-Id: I2b2f1fe0912ac2a22aa7bcd1e1e2149423548457
2018-08-31 21:05:57 -07:00
Treehugger Robot
fa1f9365ca Merge "Refactor LinkDecl in header-abi-linker" 2018-09-01 03:58:34 +00:00
Treehugger Robot
8f9d0924cc Merge "Add symbol binding information to header-abi-linker" 2018-09-01 03:57:09 +00:00
Logan Chien
5e715b22aa vndk-def: Use EnvironmentError in Python 2
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
2018-08-31 16:53:48 +08:00
Yi-yo Chiang
316f13d8b3 Refactor LinkDecl in header-abi-linker
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
2018-08-31 14:11:33 +08:00
Jayant Chowdhary
963fe7855a Add symbol binding information to header-abi-linker
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
2018-08-31 12:25:43 +08:00
Dan Willemsen
c87b91d44c Merge "Expose the platform tools version as a C header"
am: afd0f2d831

Change-Id: Ib0b8cf9941d07e2168f45bffde85ba1355097c69
2018-08-30 17:11:06 -07:00
Dan Willemsen
afd0f2d831 Merge "Expose the platform tools version as a C header" 2018-08-30 23:36:54 +00:00
Joel Fernandes
4ad8753727 Merge "Remove ashmem from development repository"
am: 9198f40364

Change-Id: I4561396947f4aa829a30c7c0db116aa9e060127e
2018-08-30 12:48:07 -07:00
Joel Fernandes
9198f40364 Merge "Remove ashmem from development repository" 2018-08-30 19:30:58 +00:00
Dan Willemsen
ee6f84f432 Expose the platform tools version as a C header
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
2018-08-30 11:20:59 -07:00
Dan Willemsen
d636aa5ee5 Merge "Clean up windows sdk build"
am: f00581b07c

Change-Id: I1b444af1e84f03fac0ca4f60a5bb5f7b9144b81a
2018-08-28 17:17:29 -07:00
Treehugger Robot
f00581b07c Merge "Clean up windows sdk build" 2018-08-28 23:56:13 +00:00
Dan Willemsen
427f3a2237 Merge "Ship a 64-bit libc++.dylib in platform-tools"
am: f61f8588d5

Change-Id: Iad591557e160e5ee2d2b15becd0699c77f729e0a
2018-08-28 16:54:56 -07:00
Treehugger Robot
f61f8588d5 Merge "Ship a 64-bit libc++.dylib in platform-tools" 2018-08-28 23:41:13 +00:00
Dan Willemsen
f9acc01476 Ship a 64-bit libc++.dylib in platform-tools
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
2018-08-28 13:17:50 -07:00
Dan Willemsen
844cfa4538 Clean up windows sdk build
* 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
2018-08-28 00:13:28 -07:00
Hsin-Yi Chen
299acf20e3 Add test for lsdump in JSON format
- 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
2018-08-27 07:01:18 +00:00
Hsin-Yi Chen
cadc38a16c Merge "Support VNDK ABI dump in JSON format"
am: d3b65417c2

Change-Id: I486e698da7aa169e6e0229c0301e670ec68e75f3
2018-08-26 20:57:57 -07:00
Hsin-Yi Chen
d3b65417c2 Merge "Support VNDK ABI dump in JSON format" 2018-08-27 03:47:47 +00:00
Joel Fernandes
ec9ee7f412 Remove ashmem from development repository
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>
2018-08-24 12:37:52 -07:00
Hsin-Yi Chen
5a829cbb62 Support VNDK ABI dump in JSON format
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
2018-08-24 15:43:55 +08:00
Chih-Hung Hsieh
1a21baff8a Merge "Use multiple patterns and/or emails in per-file syntax."
am: 8b46ef302a

Change-Id: Ifd159a3763c106985ccc6b5ce7a32d43dfcc2333
2018-08-23 17:51:13 -07:00
Treehugger Robot
8b46ef302a Merge "Use multiple patterns and/or emails in per-file syntax." 2018-08-24 00:25:31 +00:00
Chih-Hung Hsieh
b15eff40ec Use multiple patterns and/or emails in per-file syntax.
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I1c42dad063c4b6245377a38869e6c5f417160718
2018-08-23 14:39:33 -07:00
Jae Shin
69e1d4d51f Merge "Remove test script that is no longer relevant"
am: fbe0cdedaa

Change-Id: I617198cd2b2124be1d05b3453034fc5a9d2715b9
2018-08-22 19:56:25 -07:00
Treehugger Robot
fbe0cdedaa Merge "Remove test script that is no longer relevant" 2018-08-23 00:46:21 +00:00
Jae Shin
a68a064142 Remove test script that is no longer relevant
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
2018-08-22 17:14:02 +09:00
Nicole Borrelli
a3bb3b5f27 Merge "Remove deprecated media sample."
am: 8f7bfcff2b

Change-Id: I8efd773a12d2b948613b2e624d7be92c3a80f607
2018-08-21 10:30:32 -07:00
Nicole Borrelli
8f7bfcff2b Merge "Remove deprecated media sample." 2018-08-21 17:21:34 +00:00
Nicole Borrelli
ce3abea5df Remove deprecated media sample.
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
2018-08-20 10:26:07 -07:00
Nan Zhang
60ca2642f7 Merge "Remove Metalava related targets in development."
am: 1594b2db03

Change-Id: I089002ebf676f03b68b3cca82e7151f3e9b43a09
2018-08-17 11:53:59 -07:00
Nan Zhang
1594b2db03 Merge "Remove Metalava related targets in development." 2018-08-17 16:53:11 +00:00
Logan Chien
77d53a88d5 Merge "repo-pull: Handle project-not-found error"
am: 38b51a31c8

Change-Id: I2040d57e032e289480c03dd4c42650758907f62f
2018-08-16 22:32:54 -07:00
Logan Chien
38b51a31c8 Merge "repo-pull: Handle project-not-found error" 2018-08-17 03:51:50 +00:00
Jae Shin
06105d9c2a Merge changes Ic2fd4056,I198fb9b7,I0d61ea11,I59d9b8f7
am: 1dc3d3be29

Change-Id: Ie2d88dcbdbfe46e8ce079eed01a39080bed8959b
2018-08-15 18:20:54 -07:00
Treehugger Robot
1dc3d3be29 Merge changes Ic2fd4056,I198fb9b7,I0d61ea11,I59d9b8f7
* 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
2018-08-16 00:43:43 +00:00
Logan Chien
15899934ab Merge "Remove full paths from abi_diff.proto"
am: 07ab21bc9d

Change-Id: I635f23084b4df44108164b6136a49c958e98f4e8
2018-08-15 01:20:57 -07:00
Logan Chien
07ab21bc9d Merge "Remove full paths from abi_diff.proto" 2018-08-15 04:00:52 +00:00
Logan Chien
add620d230 Remove full paths from abi_diff.proto
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
2018-08-14 18:26:34 +08:00
Jae Shin
cfc7c1ba90 Retry the command for querying parent artifacts
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
2018-08-14 18:22:57 +09:00
Jae Shin
d5fd24f609 Revise comments for when -v, -m options are needed
Test: build_mixed
Change-Id: I198fb9b7d9916ee7bb3ab5e005a3de1e4d1dd866
2018-08-14 15:14:17 +09:00
Jae Shin
f418b9b9e5 Check first if system_dir and device_dir exists
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)
2018-08-14 15:13:39 +09:00
Paul Trautrim
d2d8ac9509 Print error on missing device target_files archive
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)
2018-08-14 15:13:00 +09:00
Logan Chien
b43d1b7b3f Merge changes Id2c62a6a,I20b288ea
am: 88368b1306

Change-Id: I02471c25a76133d11c1ed152c60b77aac6f7756b
2018-08-13 22:58:30 -07:00