Commit graph

11575 commits

Author SHA1 Message Date
Christopher Ferris
b43fe7a838 Add an option to preserve symbols and debug_frame.
New strip option named keep_symbols_and_debug_frame, that will keep the
symbols and the .debug_frame. This is meant for use by libc.so only on
arm32. Other libraries might want to use it to keep better unwinding
information on device.

Bug: 132992102

Test: Built libc.so with this option and verified that it contains
Test: the .debug_frame section.
Change-Id: I823a28199dec8316e8b26fe31ff9f17e6b11d406
2019-05-17 17:52:18 -07:00
Jaewoong Jung
4c83b8950a Merge "Turn off dex actions for sourceless modules." 2019-05-16 18:01:48 +00:00
Jaewoong Jung
105920a792 Merge "Fix override_android_app dependency issues." 2019-05-16 15:07:13 +00:00
Treehugger Robot
f50406eecc Merge "Add No_dist property" 2019-05-16 01:25:53 +00:00
Treehugger Robot
e40da8cff6 Merge "Soong: Add support on installing fonts in /fonts system image." 2019-05-15 23:53:28 +00:00
Jaewoong Jung
a24af3ba20 Turn off dex actions for sourceless modules.
Test: dexpreopt_test.go
Fixes: 129370564
Change-Id: Ic292f37c4f782b14fce625b85817b58c31d3f276
2019-05-15 15:46:26 -07:00
Inseob Kim
62ca44a36b Merge "Generate VNDK snapshot with Soong except configs"
am: 651f40bbe1

Change-Id: I2f0b74a3faef35e29640a1f67344654b8bb00187
2019-05-15 15:32:02 -07:00
Treehugger Robot
651f40bbe1 Merge "Generate VNDK snapshot with Soong except configs" 2019-05-15 22:13:35 +00:00
Patrice Arruda
61583eb72a Soong: Add support on installing fonts in /fonts system image.
A new module named prebuilt_font allows a set of fonts to be
installed in the /fonts system image.

Bug: b/123403785
Test: Wrote and ran unit test cases.
Change-Id: Icd468abe3d70a528b28a8d8f216407484e9966a7
2019-05-15 12:35:29 -07:00
Jaewoong Jung
b639a6adb2 Fix override_android_app dependency issues.
This change fixes an issue where an android_test could not depened on an
override_android_app or an android_app overridden by one by moving all
override processing to post-deps and forwarding incoming dependencies on
override_android_apps to base android_app modules

Fixes: 132447700
Test: app_test.go
Change-Id: I4ac593be661f541f5ea9823ef97373bee4b186f9
2019-05-15 12:11:18 -07:00
Colin Cross
bf200f61ac Merge "Prevent hangs in OncePer when the callback panics"
am: b7afaf0802

Change-Id: I57d4803a024abd4d189fb2c6245eb49b2b2ac815
2019-05-15 10:47:18 -07:00
Colin Cross
b7afaf0802 Merge "Prevent hangs in OncePer when the callback panics" 2019-05-15 17:16:37 +00:00
Sasha Smundak
f293509714 manifest_fixer argument should be --use-embedded-dex rather than --use-embedded-dex=true
am: d2e5361c90

Change-Id: I39ea71483ead65a225e40ac8dee6a90a5dd5d0dc
2019-05-14 21:58:15 -07:00
Sundong Ahn
80a87b3309 Add No_dist property
For the sysprop apis, we don't need dist. So the No_dist property is
added for it.

Bug: 132448761
Test: m -j dist
Change-Id: I51c6a6b87ab9dc90b6825c0d4d414e958dd7b265
2019-05-15 12:20:03 +09:00
Inseob Kim
1f086e2f0d Generate VNDK snapshot with Soong except configs
This is the first commit to generate VNDK snapshot with Soong: .so
files, some txt files, and notice files are captured with Soong. As
ld.config.txt is currently in Android.mk and will be deprecated soon,
configs files (and zipping all of artifacts) are still handled with
Makefile.

Bug: 131564934
Test: 1) DIST_DIR=out/dist development/vndk/snapshot/build.sh
Test: 2) try installing vndk snapshot with:
     development/vndk/snapshot/update.py

Change-Id: I8629e1e25bfc461fd495565bb4872c9af176cf92
2019-05-15 10:26:54 +09:00
Colin Cross
74bd953df3 Revert "Add bpf_test.go to build and fix the tests"
am: d3d3ad1686

Change-Id: I393ed610a6cd1a8c6a9fa4e32085256c14483a01
2019-05-14 17:29:16 -07:00
Sasha Smundak
d2e5361c90 manifest_fixer argument should be --use-embedded-dex rather than --use-embedded-dex=true
Test: building soong tests, treehugger
Change-Id: Id0df92171a2e547794979fb473d8abc47f33d13c
2019-05-14 17:03:24 -07:00
Colin Cross
d3d3ad1686 Revert "Add bpf_test.go to build and fix the tests"
This reverts commit 192e3aa6a8.

Reason for revert: broke mac tests

Change-Id: I3f4c679e11d9361dbc2daaf6c89282259b225d61
2019-05-14 22:46:24 +00:00
Colin Cross
51cb5ee004 Add bpf_test.go to build and fix the tests
am: 192e3aa6a8

Change-Id: If8425dc910c3d5cf505364f892cbc7dcbfdfb2d0
2019-05-14 15:08:10 -07:00
Colin Cross
192e3aa6a8 Add bpf_test.go to build and fix the tests
bpf_test.go was not listed in testSrcs, which meant it was not run
during the build, but ran and failed with go test android/soong/...

Test: m
Test: go test android/soong/...
Change-Id: I4542640e8ff08e71565ed50617dbe67d86b29b69
2019-05-14 18:40:19 +00:00
Colin Cross
66bdb695ae Prevent hangs in OncePer when the callback panics
If the callback passed to Once panics it was leaving the waiter
in place that would never be completed.  Move writing the value
and signalling the waiter to defer.

Test: TestOncePerPanic
Change-Id: Icc4d3b779a79914fcd881d61d38dffcc2f591c39
2019-05-14 18:40:13 +00:00
Jaewoong Jung
3cb6b2ef28 Fix manifest_fixer_test.py
am: e4948c79d3

Change-Id: Iab73e4c3b4a4b0f30d779445b7c57093b658aeec
2019-05-14 11:32:48 -07:00
Jaewoong Jung
e4948c79d3 Fix manifest_fixer_test.py
Test: manifest_fixer_test.py
Change-Id: I18067070154578e2effad8c70bb07a414cbc6dc0
2019-05-14 08:07:27 -07:00
Jaewoong Jung
1d5d99d652 Merge "Fixes typos in device_host_converter.go comments."
am: bc975e8b89

Change-Id: Ic86869fd88274d7ede9670123fdafc98921111cb
2019-05-13 18:32:06 -07:00
Treehugger Robot
bc975e8b89 Merge "Fixes typos in device_host_converter.go comments." 2019-05-14 01:16:27 +00:00
Christopher Ferris
486b170bbc Merge "Remove libc_scudo library when building asan."
am: d7e66d9e7c

Change-Id: Ib422be5e7d9010f26e65da3ccbcd0f9755ac6108
2019-05-13 17:27:53 -07:00
Christopher Ferris
d7e66d9e7c Merge "Remove libc_scudo library when building asan." 2019-05-14 00:12:33 +00:00
Jaewoong Jung
707d788ea2 Fixes typos in device_host_converter.go comments.
Test: TreeHugger
Change-Id: Ie786e8fc950c3e9913c9d51f2b88bc036bb17462
2019-05-13 15:11:23 -07:00
Colin Cross
9a7ee9da1b Merge "Don't hide *.kotlin_module in turbine dependencies"
am: f3e802bf0d

Change-Id: Iae8813f9f4e8e9376d7e0f05f0834f7fc7324c80
2019-05-13 13:47:26 -07:00
Treehugger Robot
f3e802bf0d Merge "Don't hide *.kotlin_module in turbine dependencies" 2019-05-13 20:21:47 +00:00
Sasha Smundak
f742a23db7 Merge "Add aaudio, amidi, camera2ndk and nativewindow NDK libraries."
am: 95aabdad9c

Change-Id: I1f5c14772b24ccbd377395ba9a9da46397207d7e
2019-05-13 11:39:30 -07:00
Treehugger Robot
95aabdad9c Merge "Add aaudio, amidi, camera2ndk and nativewindow NDK libraries." 2019-05-13 18:30:33 +00:00
Jaewoong Jung
142ec3bf4a Merge "Uncompress dex file in imported apk when needed."
am: b7cb607812

Change-Id: I02d2a4981b25986cf1b28f51fc3c8c97c9b6dbc2
2019-05-13 11:08:23 -07:00
Jaewoong Jung
b7cb607812 Merge "Uncompress dex file in imported apk when needed." 2019-05-13 17:54:00 +00:00
Pete Gillin
075ed06c48 Merge "Make core-generated-annotation-stubs link as core stubs."
am: dd6dd18ef6

Change-Id: I86172e280993167de25deceb22c3d4b08503e9f2
2019-05-13 04:53:52 -07:00
Pete Gillin
dd6dd18ef6 Merge "Make core-generated-annotation-stubs link as core stubs." 2019-05-13 11:37:43 +00:00
Colin Cross
927aad4f0a Merge "Write dexpreopt.config again during the build"
am: 0967b34dd9

Change-Id: I9757bb82a1c04c32a8835d9db85661544d04fb04
2019-05-10 21:21:02 -07:00
Colin Cross
0967b34dd9 Merge "Write dexpreopt.config again during the build" 2019-05-11 04:11:58 +00:00
Patrice Arruda
c0b973ac72 Merge "Soong: Add mk2bp conversion for prebuilt_usr_share."
am: bebfdea437

Change-Id: I42048f913b1620aa7cdbfbec67c492264bdbc968
2019-05-10 17:08:22 -07:00
Treehugger Robot
bebfdea437 Merge "Soong: Add mk2bp conversion for prebuilt_usr_share." 2019-05-10 22:30:43 +00:00
Patrice Arruda
77311df787 Soong: Add mk2bp conversion for prebuilt_usr_share.
There are a couple of makefiles that have etc with $(TARGET_OUT)/usr/share
as the local module path. Added the conversion in androidmk for target
and host.

Bug: b/132123818
Test: Wrote and ran unit test cases, did a test conversion on
      external/neven/Android.mk makefile.

Change-Id: Iafed89f4cee499f561a1235f8870b1f1329e99bc
2019-05-10 12:59:37 -07:00
Colin Cross
2d00f0dcae Write dexpreopt.config again during the build
Writing $OUT/dexpreopt.config during build setup and then using
it during the build causes bad incremental builds if a cleanspec
removes $OUT/dexpreopt.config.  Create a rule in Soong to write
out a copy so that it is a normal build artifact.

Bug: 132379813
Test: m checkbuild
Change-Id: I7755a7f8c1d6561fc83022a7f4cf7e4a64e989c9
2019-05-10 07:07:21 -07:00
Pete Gillin
350f0987bf Merge "Rename EXPERIMENTAL_USE_OPENJDK9 to EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9."
am: 42e862c56d

Change-Id: Ibb15d93fcd46afe642834992d25e18c3bf13395f
2019-05-10 05:16:29 -07:00
Pete Gillin
cbff326fe6 Make core-generated-annotation-stubs link as core stubs.
Bug: 123891440
Test: EXPERIMENTAL_USE_OPENJDK9=true make droid

(cherry picked from commit 4528becc46)

Merged-In: I117828f13a604030d1c36bdb60fffec4c4e08d6e
Change-Id: I17fa4e0c4106b63bf3cb0e3c3f78498a4072d9f5
2019-05-10 13:05:23 +01:00
Pete Gillin
42e862c56d Merge "Rename EXPERIMENTAL_USE_OPENJDK9 to EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9." 2019-05-10 11:50:08 +00:00
Dimitry Ivanov
64ad4e8d72 Merge "Enable native bridge support by default for certain ndk modules"
am: 9c9fd4e73a

Change-Id: I7fcfa81029bcb1db87334e5cf2ed26604a7c33b1
2019-05-10 02:06:42 -07:00
Dimitry Ivanov
9c9fd4e73a Merge "Enable native bridge support by default for certain ndk modules" 2019-05-10 08:16:49 +00:00
Elliott Hughes
3408d62c2f Merge "Go back to the host sed until we have a faster prebuilt."
am: 4af530ff72

Change-Id: I6d7bd3b4b9cd2cc5072db54421f0daa7a7372ee6
2019-05-09 19:44:49 -07:00
Inseob Kim
66c5cac22b Merge "Attach global variables to Context"
am: a1591ab08c

Change-Id: I755960fab4c3b3b7f9e2075e6cd1538dfe112321
2019-05-09 17:34:42 -07:00
Xin Li
7b7f45b3fc [automerger skipped] Merge "DO NOT MERGE - Merge Pie Bonito/Sargo into master."
am: 7592444a02 -s ours
am skip reason: subject contains skip directive

Change-Id: Ieeb5d3916b626045d4c53d8b4c5a03825550fd11
2019-05-09 17:30:02 -07:00