aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Restore the test for bionic being in an APEX.HEADmasterPeter Collingbourne2019-05-211-1/+1
| | | | | | | | | | This was removed in https://android-review.googlesource.com/c/platform/build/soong/+/950885 because it appeared that bionic was always in an APEX, but apparently the ART host tests have bionic outside of an APEX. Test: art/test/testrunner/run_build_test_target.py -j50 art-linux-bionic-x64 Change-Id: I0b99462e8636da53c87f9250093689aaaf9ea695
* Merge "Add kotlin-stdlib-jdk8 when using Kotlin"Colin Cross2019-05-212-2/+5
|\
| * Add kotlin-stdlib-jdk8 when using KotlinColin Cross2019-05-152-2/+5
| | | | | | | | | | | | | | | | kotlin-stdlib-jdk8 contains extensions to the Kotlin standard library for use when targeting Java language level 8. Test: m checkbuild Change-Id: Iac5f977f9080d8e0e2402b08a992a93c909744e9
* | Merge "Add an option to preserve symbols and debug_frame."Christopher Ferris2019-05-213-15/+46
|\ \
| * | Add an option to preserve symbols and debug_frame.Christopher Ferris2019-05-173-15/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Avoid targeting Java 9 for targets with SDK version up to 29."Pete Gillin2019-05-211-1/+1
|\ \ \
| * | | Avoid targeting Java 9 for targets with SDK version up to 29.Pete Gillin2019-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Targets with sdk_version values up to and including 29 should not use Java language level 9, even if EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9=true is set. This change fixes a downstream issue. Bug: 131678633 Test: EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9=true make droid tests docs cts java Test: (same test in downstream branch) Change-Id: Ic58e8df2e06d6e07bc42255314521831dc41b239
* | | | Merge "Teach soong not to duplicate the HWASAN runtime into each APEX."Peter Collingbourne2019-05-205-6/+40
|\ \ \ \
| * | | | Teach soong not to duplicate the HWASAN runtime into each APEX.Peter Collingbourne2019-05-175-6/+40
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When HWASAN is enabled, the runtime is conceptually part of Bionic (and mutually depends on it), so it needs to be treated in the same way as the Bionic libs. Now there are only two copies of the runtime: the one in /system/lib64/bootstrap (which won't be used by ordinary processes) and the one in the runtime APEX. This reduces the size of the HWASAN system image and fixes an issue where multiple copies of the HWASAN runtime were being loaded into 64-bit binaries in APEXes because the linker namespace for the binary is different from the one for its dependent libraries outside of APEXes. HWASAN only supports loading one copy of the runtime per process, so this was causing such binaries to crash on startup. Change-Id: I228896e193a035e6dfba9f6e28d0b2e12fc163ea
* | | | Merge "Limit calls to strip.sh on darwin"Treehugger Robot2019-05-171-0/+13
|\ \ \ \
| * | | | Limit calls to strip.sh on darwinColin Cross2019-05-171-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | strip.sh can use a file descriptor per .o file when run on .a files, which can hit the system file descriptor limit on darwin. This causes failures when manay variants of libgcc_stripped are built simultaneously. Put all strip rules on darwin into a pool that limits them to 10 concurrent processes, which will limit the file descriptor usage to ~7500. Fixes: 132822437 Test: no mention of darwinStripPool in out/soong/build.ninja on linux Test: m libgcc_stripped on darwin Change-Id: I3d4fbbd8d44d2e9059a79df113ab95336ec2c658
* | | | | Merge changes I3dc3fded,Ic1276329,I6be04decTreehugger Robot2019-05-177-173/+82
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | * changes: Add bpf_test.go to build and fix tests Don't create a second host arch for tests on darwin Move CreateTestContext to cc/testing.go
| * | | | Add bpf_test.go to build and fix testsColin Cross2019-05-174-107/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/... Don't redeclare the cc module types and mutators, use exported functions from cc/testing.go instead, which contain a new dependency needed by cc modules. This reapplies I4542640e8ff08e71565ed50617dbe67d86b29b69 after fixes for mac tests. Test: m Test: go test android/soong/... Change-Id: I3dc3fdedbd7063df4a2e0cadf2a4e0711b1823ad
| * | | | Don't create a second host arch for tests on darwinColin Cross2019-05-171-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only x86_64 darwin is supported, not x86. Don't create an x86 host arch when running tests on darwin. Test: all soong tests Change-Id: Ic12763298345e32a1340f8fbef338d2ab4d62b2e
| * | | | Move CreateTestContext to cc/testing.goColin Cross2019-05-173-54/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow CreateTestContext to be called by tests in other packages that need cc modules. Test: all soong tests Change-Id: I6be04dec50632baa8cb51e55ba14d0ddc0df60b8
* | | | | Merge "Support using cc_prebuilt_library_shared with cc_library"Treehugger Robot2019-05-175-12/+177
|\| | | |
| * | | | Support using cc_prebuilt_library_shared with cc_libraryColin Cross2019-05-175-12/+177
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow a cc_prebuilt_library_shared to share the same name as a cc_library by always creating static and shared variants of prebuilts so that the variants of the source module are always a superset of the variants of the target module. Bug: 131709055 Test: TestPrebuilts Change-Id: I4afd6d37e6a986d08ad25aee69eca6d994febc6b
* | | | Merge "Soong: Add mk2bp conversion for prebuilt_font."Treehugger Robot2019-05-172-2/+41
|\ \ \ \ | |/ / / |/| | |
| * | | Soong: Add mk2bp conversion for prebuilt_font.Patrice Arruda2019-05-162-2/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are a couple of makefiles that have etc with $(TARGET_OUT)/fonts and $(TARGET_OUT_PRODUCT)/fonts as the local module path. Added the conversion in androidmk for target. bug: b/123403785 Test: Wrote and ran unit test cases, did a test conversion on * platform/external/google-fonts/dancing-script/Android.mk * internal/external/google-fonts/arbutus-fonts/Android.mk Change-Id: Id67e10f80b32b27c5027cd274a7944801dad0880
* | | | Merge "Turn off dex actions for sourceless modules."Jaewoong Jung2019-05-162-10/+31
|\ \ \ \
| * | | | Turn off dex actions for sourceless modules.Jaewoong Jung2019-05-152-10/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: dexpreopt_test.go Fixes: 129370564 Change-Id: Ic292f37c4f782b14fce625b85817b58c31d3f276
* | | | | Merge "Fix override_android_app dependency issues."Jaewoong Jung2019-05-165-10/+90
|\ \ \ \ \
| * | | | | Fix override_android_app dependency issues.Jaewoong Jung2019-05-155-10/+90
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Add No_dist property"Treehugger Robot2019-05-152-45/+55
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Add No_dist propertySundong Ahn2019-05-142-45/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Soong: Add support on installing fonts in /fonts system image."Treehugger Robot2019-05-152-0/+26
|\ \ \ \ \
| * | | | | Soong: Add support on installing fonts in /fonts system image.Patrice Arruda2019-05-152-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Generate VNDK snapshot with Soong except configs"Inseob Kim2019-05-156-58/+401
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 651f40bbe1 Change-Id: I2f0b74a3faef35e29640a1f67344654b8bb00187
| * \ \ \ \ \ Merge "Generate VNDK snapshot with Soong except configs"Treehugger Robot2019-05-156-58/+401
| |\ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | |
| | * | | | | Generate VNDK snapshot with Soong except configsInseob Kim2019-05-146-58/+401
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Prevent hangs in OncePer when the callback panics"Colin Cross2019-05-152-5/+51
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b7afaf0802 Change-Id: I57d4803a024abd4d189fb2c6245eb49b2b2ac815
| * | | | | Merge "Prevent hangs in OncePer when the callback panics"Colin Cross2019-05-152-5/+51
| |\ \ \ \ \
| | * | | | | Prevent hangs in OncePer when the callback panicsColin Cross2019-05-142-5/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | manifest_fixer argument should be --use-embedded-dex rather than ↵Sasha Smundak2019-05-141-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --use-embedded-dex=true am: d2e5361c90 Change-Id: I39ea71483ead65a225e40ac8dee6a90a5dd5d0dc
| * | | | | | manifest_fixer argument should be --use-embedded-dex rather than ↵Sasha Smundak2019-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | --use-embedded-dex=true Test: building soong tests, treehugger Change-Id: Id0df92171a2e547794979fb473d8abc47f33d13c
* | | | | | | Revert "Add bpf_test.go to build and fix the tests"Colin Cross2019-05-142-11/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d3d3ad1686 Change-Id: I393ed610a6cd1a8c6a9fa4e32085256c14483a01
| * | | | | | Revert "Add bpf_test.go to build and fix the tests"Colin Cross2019-05-142-11/+0
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 192e3aa6a86c486c976cdd8587d5700aeb304241. Reason for revert: broke mac tests Change-Id: I3f4c679e11d9361dbc2daaf6c89282259b225d61
* | | | | | Add bpf_test.go to build and fix the testsColin Cross2019-05-142-0/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 192e3aa6a8 Change-Id: If8425dc910c3d5cf505364f892cbc7dcbfdfb2d0
| * | | | | Add bpf_test.go to build and fix the testsColin Cross2019-05-142-0/+11
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Fix manifest_fixer_test.pyJaewoong Jung2019-05-141-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: e4948c79d3 Change-Id: Iab73e4c3b4a4b0f30d779445b7c57093b658aeec
| * | | | Fix manifest_fixer_test.pyJaewoong Jung2019-05-141-1/+1
| | |/ / | |/| | | | | | | | | | | | | | Test: manifest_fixer_test.py Change-Id: I18067070154578e2effad8c70bb07a414cbc6dc0
* | | | Merge "Fixes typos in device_host_converter.go comments."Jaewoong Jung2019-05-131-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | am: bc975e8b89 Change-Id: Ic86869fd88274d7ede9670123fdafc98921111cb
| * | | Merge "Fixes typos in device_host_converter.go comments."Treehugger Robot2019-05-131-2/+2
| |\ \ \
| | * | | Fixes typos in device_host_converter.go comments.Jaewoong Jung2019-05-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Test: TreeHugger Change-Id: Ie786e8fc950c3e9913c9d51f2b88bc036bb17462
* | | | | Merge "Remove libc_scudo library when building asan."Christopher Ferris2019-05-131-0/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d7e66d9e7c Change-Id: Ib422be5e7d9010f26e65da3ccbcd0f9755ac6108
| * | | | Merge "Remove libc_scudo library when building asan."Christopher Ferris2019-05-131-0/+5
| |\ \ \ \
| | * | | | Remove libc_scudo library when building asan.Christopher Ferris2019-05-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Running any executable built with asan and libc_scudo results in crashes. Bug: 131810078 Test: Built the media processes with the sanitizer enabled verifying Test: that the libc_scudo.so shared library is not listed in the Test: mediaextractor and the mediaswcodec binaries. Test: Build the media processes without the sanitizer enabled verifying Test: that the libc_scudo.so shared library is listed in the Test: mediaextractor and the mediaswcodec binaries. Change-Id: Ie55a0414088787ec11d85fffcb04592ed4f23c57
* | | | | | Merge "Don't hide *.kotlin_module in turbine dependencies"Colin Cross2019-05-134-10/+21
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: f3e802bf0d Change-Id: Iae8813f9f4e8e9376d7e0f05f0834f7fc7324c80
| * | | | | Merge "Don't hide *.kotlin_module in turbine dependencies"Treehugger Robot2019-05-134-10/+21
| |\ \ \ \ \
| | * | | | | Don't hide *.kotlin_module in turbine dependenciesColin Cross2019-05-084-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The jars containing the merged header classes from transitive static dependencies were stripping all of META-INF/. Kotlin puts metadata in META-INF that is used to map the package to the static class that contains the package-level functions. This also exposed that the metadata in META-INF is always called "name.kotlin_module", so a library that contains kotlin files with a dependency that also contains kotlin files would shade the metadata file. Use a unique name instead. Fixes: 131709692 Test: m checkbuild Change-Id: I5cd276e563206e37c4c0d90fe9f346e9396f88c0