Commit Graph

23209 Commits

Author SHA1 Message Date
Jaegeuk Kim
a91b4093cf add make_f2fs.exe in SDK tool for windows
Change-Id: Ie38b4f34c5d3283922496334571332f59f9d48ab
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2017-12-06 11:16:25 -08:00
Jaegeuk Kim
619723d2e6 add sload_f2fs to Android SDK build-tools
Change-Id: Iaaec0cbf6a2b43147a75077db9c91ae10cccc668
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2017-12-06 11:16:20 -08:00
Chih-hung Hsieh
85e9d61227 Merge "Include unistd.h to get declaration of sleep." 2017-12-06 00:49:09 +00:00
Treehugger Robot
fafa867f81 Merge "add mke2fs.conf to Android SDK build-tools" 2017-12-06 00:28:32 +00:00
Chih-Hung Hsieh
d40f52c553 Include unistd.h to get declaration of sleep.
Test: normal build
Change-Id: I456ff4597dcaf93567c19b40b525a6310a4732c8
2017-12-05 15:53:22 -08:00
Jin Qian
d941e81fb2 add mke2fs.conf to Android SDK build-tools
Change-Id: I37822f5917986a562a48b5ad199623dbef61cdeb
2017-12-05 11:52:15 -08:00
Michael Schwartz
11c7f85510 Merge "Do not archive the logs directory" 2017-12-01 03:48:07 +00:00
Treehugger Robot
8d4969d163 Merge "Fix exclusion of builtin types in linked dump." 2017-11-30 22:31:53 +00:00
Michael Schwartz
df3a078c95 Do not archive the logs directory
Logs from a previous run interfere with the new logs.

Bug: 68327258
Test: Run script with sailfish and aosp artifacts
Change-Id: I31444f46da373b79f699f86a03337bba63146e86
2017-11-30 20:48:08 +00:00
Treehugger Robot
303c8ef313 Merge "emulator: support system as root" 2017-11-30 20:07:58 +00:00
Jayant Chowdhary
d39c93143f Fix exclusion of builtin types in linked dump.
Builtin types do not need an 'IsPresentInExportedHeaders' check while
linking.

Bug: 63865902

Test: mm -j64 in external/libjpeg-turbo, resulting linked abi dump has
      builtin types (when used with built version on header-abi-linker)

Change-Id: I7816c6522b8a4873ebcdf6c325a6e224eab48de7
2017-11-30 12:06:40 -08:00
bohu
51f7e89e94 emulator: support system as root
Add SystemAsRoot = on to advancedFeatures.ini.

BUG: 69770927

Test: build sdk_gphone_x86-userdebug,
boot to home with tot emulator

Test: build sdk_phone_armv7-userdebug,
boot to home with tot emulator

Change-Id: I72bb3c1b9bb09293284765f63047ce82fb039cc0
Merged-In: I72bb3c1b9bb09293284765f63047ce82fb039cc0
2017-11-29 22:06:06 -08:00
Treehugger Robot
44e88d1411 Merge "Change VNDK snapshot build variant to 'user'" 2017-11-29 04:59:01 +00:00
Jae Shin
91a2c72964 Change VNDK snapshot build variant to 'user'
Additionally build for all four archs separately:
(arch, variant) =
(arm64, armv8-a)
(arm, armv7-a-neon)
(x86_64, x86_64)
(x86, x86)

Test: development/vndk/snapshot/build.sh
Bug: 66059995
Change-Id: Ia31bc260d18e09a9499708c777e2374431470b4e
2017-11-29 01:27:22 +00:00
Treehugger Robot
ea2eb3b92a Merge "add make_f2fs to Android SDK build-tools" 2017-11-27 19:12:43 +00:00
Logan Chien
28c9c32cc1 Merge "vndk-def: Add VNDK comments to libselinux" 2017-11-22 07:04:55 +00:00
Logan Chien
be059dc08e vndk-def: Add VNDK comments to libselinux
Bug: 69587962
Test: Nothing changes (warnings are still there)
Change-Id: I9a093f7f2d41ff4d34e4812837ae69b068d652dc
2017-11-21 18:59:48 +08:00
Jayant Chowdhary
6a233fe18a Merge changes from topic "multithreaded-header-linker-ir"
* changes:
  Add command line option(s) to chose text format.
  Make de-duplication of abi elements concurrent.
  Re-factor linker code to use IR and be text format agnostic.
  Optimize TextFormatToIRReader API.
2017-11-21 02:40:46 +00:00
Logan Chien
5382b4e19a Merge "vndk-def: Add regex support to extra deps format" 2017-11-21 01:41:15 +00:00
Treehugger Robot
6b0d34c6d1 Merge "Add snapshot dir and script to build VNDK snapshot" 2017-11-20 20:15:24 +00:00
Jayant Chowdhary
33ea1d01eb Add command line option(s) to chose text format.
Added command line options to header-abi-dumper and header-abi-diff to
support multiple text formats.

Bug: 63865902

Test: BOARD_VNDK_VERSION=current mm -j64 in
      frameworks/compile/libbcc/bcinfo produces libbcinfo.so.lsdump
      successfully.

Test: tests/test.py; all tests pass.

Change-Id: I291d3af16e90b12ee131bb864f90a5b96189db13
2017-11-20 11:16:38 -08:00
Jayant Chowdhary
b297a70f18 Make de-duplication of abi elements concurrent.
Bug: 63590537

Test: compared the linked abi dump for libbcinfo without this change and
with this change using header-abi-diff, found no differences.

Test:
Without this change - linking libbcinfo.so.lsdump measured with 'time' :
real	0m37.245s
user	0m36.448s
sys	0m0.796s

With this change - linking libbcinfo.so.lsdump measured with 'time':
real	0m8.618s
user	0m36.240s
sys	0m2.988s

Test: tests/test.py; all tests pass.

Change-Id: Ice08147496b22c232102f1d1c2e41fc3067fbeaf
2017-11-20 11:16:36 -08:00
Jayant Chowdhary
a11219e1d8 Re-factor linker code to use IR and be text format agnostic.
For header-abi-linker, convert text format specific code into IR code.
this gives us the benefit of being able to support multiple text formats

Bug: 63865902

Test: compared the linked abi dump for libbcinfo without this change and
with this change using header-abi-diff, found no differences.

Test: tests/test.py; all tests pass.

Change-Id: Iec05e85c1d6089c089e15acd7a05110d566fade5
2017-11-20 10:59:07 -08:00
Jayant Chowdhary
2bff7a5640 Optimize TextFormatToIRReader API.
Make TextFormatToIRReader to return maps instead of vectors. This allows
us to 'merge' two TextFormatToIRReaders more efficiently, which enables
more efficient and cleaner code for multi-threaded linking.

Test: tests/test.py; all tests pass.

Change-Id: I6dae0080af9f36216d30370d4f4936eedcda83d1
2017-11-20 10:59:06 -08:00
Logan Chien
48549b385f vndk-def: Add regex support to extra deps format
This commit adds regular expression matching and ${LIB} substitution to
extra deps file format (`--load-extra-deps`).

Test: ./tests/test_elf_linker.py
Test: ./tests/run.py
Change-Id: I9393d3de50a80adc0d0a947ada8c7197d364e48e
2017-11-20 17:46:51 +08:00
Jae Shin
e242d62a9e Add snapshot dir and script to build VNDK snapshot
The build script, build.sh, invokes the 'vndk' phony make target
to generate VNDK snapshots for all four archs arm, arm64, x86,
x86_64.

Test: development/vndk/snapshot/build.sh
Bug: 66059995
Change-Id: I0a48bb88bafc5e4a015f1016afcd55f616ab02e2
2017-11-20 18:27:04 +09:00
Treehugger Robot
7690c7f71e Merge "Add script to create a Mixed Build" 2017-11-15 18:28:23 +00:00
Jaegeuk Kim
4d6488e357 add make_f2fs to Android SDK build-tools
fastboot calls make_f2fs to format f2fs partition.

Bug: 67009570
Bug: 69298953
Change-Id: I47491d814b44f7235e61348e8cb177b1431a935f
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2017-11-15 08:42:16 -08:00
Michael Schwartz
a0d9bd561c Add script to create a Mixed Build
Run the build script with the location of the GSI build, device build,
output, and checkvintf tool.

Bug: 68327258
Test: Run script with sailfish and aosp artifacts.
Merged-In: Ic33dccae26bd70e90badf758266492c9b69eebea
Change-Id: Ic33dccae26bd70e90badf758266492c9b69eebea
2017-11-15 08:37:55 -08:00
Jaegeuk Kim
15c31de13d Merge "Revert "add make_f2fs to Android SDK build-tools"" 2017-11-14 03:13:42 +00:00
Jaegeuk Kim
da8a8af86f Revert "add make_f2fs to Android SDK build-tools"
Broken build in Mac.

This reverts commit 54d441cd8b.

Change-Id: Ide67e312b988ccf6298d18593e5b9c78f950fdd8
2017-11-14 02:58:42 +00:00
Logan Chien
3b3d95b42b Merge "vndk-def: Add regex matching to tag file reader" 2017-11-14 01:42:00 +00:00
Treehugger Robot
b4131febb3 Merge "add make_f2fs to Android SDK build-tools" 2017-11-14 01:12:11 +00:00
Treehugger Robot
1fc6d09b95 Merge "The "ps" command has changed in Android O" 2017-11-13 23:34:22 +00:00
Fyodor Kupolov
cd3a0fe97c Merge "APK Cache Demo App" 2017-11-13 22:33:17 +00:00
Logan Chien
32f89a67fe vndk-def: Add regex matching to tag file reader
This commit add regular expression support to tag file reader and stop
hard coding SP-HAL in vndk_definition_tool.py.

Test: ./tests/run.py
Test: Run vndk_definition_tool.py for a device and all outputs are same
Change-Id: Iae2631a965045e80c7373970e3f1e61209f3006a
2017-11-13 18:55:45 +08:00
Josh Gao
32f6640b14 Merge "Update platform-tools version to 27.0.0." 2017-11-11 01:34:13 +00:00
Josh Gao
4592d6f91c Update platform-tools version to 27.0.0.
Bug: http://b/64292422
Test: none
Change-Id: I1849f0df04af390e8aed716262d2be20efdc3491
(cherry picked from commit 2a75ddf513caf9f971dbecd4474094d5c0f8fcb6)
2017-11-11 01:33:55 +00:00
Logan Chien
9b1521edb4 Merge changes I760cfe22,I377a81f9,I5ce74cb4
* changes:
  vndk-def: normalize_partition_tags() should not rename files
  vndk-def: Hide system-to-vendor deps instead
  vndk-def: Remove compute_closure() alias
2017-11-10 01:36:43 +00:00
Treehugger Robot
c275dab214 Merge changes I4faf15bd,If328eac6
* changes:
  Use the LLVM libs with "_android" suffix
  Use the LLVM libs with "_android" suffix
2017-11-10 01:10:32 +00:00
Pirama Arumuga Nainar
29c7b8f57b Use the LLVM libs with "_android" suffix
The LLVM libraries used for RenderScript have been changed to include
the "_android" suffix.

Test: None, but very similar to
https://android-review.googlesource.com/#/c/platform/development/+/533559/,
which was tested.

Change-Id: I4faf15bded27f6a6d0c843b072596186ff0b9e73
2017-11-09 15:53:50 -08:00
Pirama Arumuga Nainar
9c060eeb11 Use the LLVM libs with "_android" suffix
The LLVM libraries used for RenderScript have been changed to include
the "_android" suffix.

Test: make PRODUCT-sdk_x86-sdk dist sdk_repo
Change-Id: If328eac65c78877d608f097ec18f6197a17df804
2017-11-09 15:53:43 -08:00
Treehugger Robot
bf27b31416 Merge "Modify bluetooth test target for new Instrumentation test location" 2017-11-09 22:39:16 +00:00
Pirama Arumuga Nainar
c9c6ba1d52 Merge "Make vtable-dumper depend on libLLVM_android.so" 2017-11-09 21:59:54 +00:00
Jack He
3b59d2fd77 Modify bluetooth test target for new Instrumentation test location
Bug: 64687504
Test: runtest -j40 bluetooth
Change-Id: Ifd178836fc31d4294ef6d6ec8bd74d5d97e6d1f5
2017-11-09 18:39:35 +00:00
Logan Chien
6e6277dbf8 vndk-def: normalize_partition_tags() should not rename files
This commit removes the rename_lib() from normalize_partition_tags().

Before this commit, a different heuristic was adopted.  If a system
shared library is not in the AOSP system image and it is depending on
some vendor libraries, then assume such library is a vendor shared
library that was incorrectly installed into system image.
normalize_partition_tags() will move such libraries into vendor
partition implicitly.  It turns out to be a confusing behavior to some
vendors.

This commit removes the aforementioned heuristic.  VNDK definition tool
will simply emit a warning and hide the violating dependencies in the
future.

Test: ./tests/run.py
Test: Run VNDK definition tool on sailfish images.
Test: Run VNDK definition tool on some internal images.
Change-Id: I760cfe22215829d757963f0532eb7f6427f72d84
2017-11-09 15:11:24 +08:00
Logan Chien
ce5a714b70 vndk-def: Hide system-to-vendor deps instead
This commit replaces remove_dep() with hide_dep() so that the
dependencies can be kept in deps-insight command.

Before this commit, system-to-vendor dependencies will be removed and
won't be present in the output of deps-insight command.

Test: ./tests/test_vndk.py
Test: ./tests/test_command_deps_insight.py
Change-Id: I377a81f98a726219e241e79ae6274e9b124de035
2017-11-09 14:29:29 +08:00
Treehugger Robot
5b70ffc1cc Merge "Move GetDeviceTest from adb's test_device.py to adb package." 2017-11-09 00:57:32 +00:00
Josh Gao
908c4dbd10 Move GetDeviceTest from adb's test_device.py to adb package.
This test actually belongs with the adb python wrapper, since it's not
affected by changes to adb itself.

Bug: http://b/64260633
Test: python test.py
Change-Id: Ia70a5529e30d91ea6232c65c9d50b2dabd07b925
2017-11-08 14:39:34 -08:00
André Keller
cc915e152f The "ps" command has changed in Android O
The gdbrunner script executes "ps" to list all running processes and
this needs to be changed to "ps -A" (toybox) for Android O instead of
"ps -w" (busybox) for custom ROMs or "ps" (toolbox) as default.

Test: manual
Change-Id: I99606cdf51b124369e4d0fcfe5917109cefe408c
2017-11-08 16:26:12 +01:00