- Jun 27, 2019
-
-
Paul Duffin authored
Adds a package module type with a default_visibility property. The package module type can only be specified once per package. Bug: 133290645 Test: m droid Change-Id: Ibb2fb499c9ea88ecaa662d3cd2cbde478e4b9a4b
-
Paul Duffin authored
-
Hsin-Yi Chen authored
-
- Jun 26, 2019
-
-
Treehugger Robot authored
-
Colin Cross authored
Keep a running map of the critical path to each edge as it finishes. At the end of the build, find the edge with the longest critical path and print the path to out/soong.log. Test: critical_path_test.go Change-Id: Ie01d26b068b768156b166bff00cdc3273e8124ca
-
Colin Cross authored
-
Treehugger Robot authored
-
Mathieu Chartier authored
-
Mathieu Chartier authored
This reverts commit 4a047317. Reason for revert: NDK build broken Change-Id: Id98bf9d5f82ed72d8c489264cf9d754e8ea1d27e
-
Mathieu Chartier authored
-
Paul Duffin authored
Bug: 134566750 Test: m droid Change-Id: I9496a121e28fabe0c60959ac8ccea60ec4b58544
-
Paul Duffin authored
The string "core.platform.api.stubs" is never passed to the toModule function since change I6bb6c1a0ea24437c8253dc5d8fabd37edabc9d3e. Bug: 134566750 Test: m droid Change-Id: Ia425a433cd762bba30be72e837fa4199580e5b6c
-
Treehugger Robot authored
-
Treehugger Robot authored
-
- Jun 25, 2019
-
-
Dan Willemsen authored
Bison is currently looking for m4 directly in `/usr/bin/m4`, instead of through $PATH, so it hadn't been tracked via the $PATH interposer checks. But if you don't install m4 at all, it starts failing. Bug: 117561006 Bug: 130111713 Test: Run on a machine without m4, build passes Change-Id: I3fbad64127c183de79c17511e979fd5df946eb80
-
Mathieu Chartier authored
From now on, the only supported approach is to use a boot image profile. Test: make Change-Id: Ibd8fbd1dd81db0a7b3f3b3e626a70dcc26510224
-
Colin Cross authored
Mainline builds privileged apps unbundled and then uses them as prebuilts, so they need to respect the privileged flag when deciding whether or not to uncompress the dex. Bug: 135772877 Test: TestUncompressDex Change-Id: I91da7116b779ae35c0617ef77dbcb9788902370c
-
Jaewoong Jung authored
Test: apex_test.go Change-Id: Ib96ea4ec5d5ff0d8e8cf4a9eb479099cf2b1977c
-
Jaewoong Jung authored
* changes: Embed NOTICE output as an APEX asset. Optionally embed NOTICE files in apks.
-
Hsin-Yi Chen authored
This commit enables ABI diff for libraries without source. Stub libraries are excluded. Test: ./create_reference_dumps.py -products aosp_arm64 Test: make Bug: 135728451 Change-Id: Idbe276db6f5e057175fc098f0226cb38996faa17
-
Treehugger Robot authored
-
Jaewoong Jung authored
Instead of outputting an aggregated NOTICE file as an intermediate build resource to allow Make to include it in the final system-wide NOTICE, process and embed it as an asset in the final APEX. This allows us to update the NOTICE contents automatically when an APEX is updated. Fixes: 135218846 Test: Built mainline modules, apex_test.go Change-Id: Ic851b330fe93be1f602907d44ecc7886c3b0171b
-
Jaewoong Jung authored
If embed_notices or ALWAYS_EMBED_NOTICES is set, collect NOTICE files from all dependencies of the android_app, merge them with the app's own one (if exists), transform it to HTML, gzip it, and put it as an asset in the final APK output. Bug: 135460391 Test: app_test.go Change-Id: I52d92e2fd19b3f5f396100424665c5cc344190d8
-
Elliott Hughes authored
This reverts commit 3b584b78. Reason for revert: missing --mode. Change-Id: I0cde94c38905e26c79c31a03fd0177d7d57daa32
-
- Jun 24, 2019
-
-
Treehugger Robot authored
-
Colin Cross authored
-
Elliott Hughes authored
-
Patrice Arruda authored
Soong_ui produces a build_error raw file to $(OUT_DIR) where the file contains a list of build action errors. Each build action error represents an error raised by a command. The build_error file is populated if there was a build error. Bug: b/132969697 Test: Ran m for successful build. Introduced a broken build change, ran m and verified using printproto that build_error was generated successfully. Change-Id: I690ca1778b4e56f144a3173ba1d16d8494c32c15
-
Colin Cross authored
When printing the action table, color the duration of commands that have been running for 30 seconds yellow, and commands that have been running for 60 seconds red. Test: manual Change-Id: I61cb21b0dae10811d345cb9f62cd07915cfc69ee
-
Paul Duffin authored
Corrects an error message that refers to no_framework_libs. Removes any tests that use no_framework_libs:true where possible as there are duplicate tests for sdk_version:"core_platform". Otherwise, switches them over to use sdk_version:"core_platform". Bug: 134566750 Test: m droid Change-Id: I41abe1a49f5c744e3393ca9cdf0c41888f810c9f
-
Treehugger Robot authored
-
- Jun 22, 2019
-
-
Colin Cross authored
Don't pass --legacy by default, it is rarely necessary and converts some errors into warnings that crash at runtime. The modules that need it have had --legacy added to aaptflags. Bug: 135597368 Test: m java Change-Id: Ib05a07ead4084dd32ba28df26708d81bb53f2f2a
-
Colin Cross authored
--legacy will soon no longer be passed by default to all aapt2 compiles. Allow it to be specified in aaptflags by passing it to aapt2 compile when it is present and filtering it out from the flags passed to aapt2 link. Bug: 135597368 Test: m java Change-Id: Ib65d1a9b7c32ae4ff5ab6f58e66aedfb5f296712
-
- Jun 21, 2019
-
-
Colin Cross authored
* changes: Fix data races in finder_test.go Optimize sanitizerRuntimeDepsMutator
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
- Jun 20, 2019
-
-
Patrice Arruda authored
There was one case that did not work: 1) Create dir in root source tree 2) Run "m libc" The build would fail as it was using the mma logic. A separate one named BUILD_MODULES was added to allow building specific modules in any directories using the "m" command. Bug: b/130049705 Test: unit test cases, ran "m libc" in a tmp directory inside of the source tree. Change-Id: I8d23e685a673a311001ee8edd89bd73b662392dd
-
Colin Cross authored
Fix data races by incrementing clock before starting the finder. Fixes: ================== WARNING: DATA RACE Read at 0x00c0003be1c0 by goroutine 99: android/soong/finder/fs.(*MockFs).WriteFile() build/soong/finder/fs/fs.go:159 +0x869 android/soong/finder.(*Finder).dumpDb() build/soong/finder/finder.go:1163 +0x296 android/soong/finder.(*Finder).goDumpDb.func1() build/soong/finder/finder.go:337 +0x3c Previous write at 0x00c0003be1c0 by goroutine 43: android/soong/finder.TestDirectoryNotPermitted() build/soong/finder/fs/fs.go:155 +0x49a testing.tRunner() prebuilts/go/linux-x86/src/testing/testing.go:865 +0x163 Goroutine 99 (running) created at: android/soong/finder.(*Finder).goDumpDb() build/soong/finder/finder.go:336 +0x8d android/soong/finder.(*Finder).loadFromFilesystem() build/soong/finder/finder.go:380 +0x12b android/soong/finder.newImpl() build/soong/finder/finder.go:197 +0x38d android/soong/finder.newFinderAndErr() build/soong/finder/finder_test.go:58 +0x245 android/soong/finder.newFinderWithNumThreads() build/soong/finder/finder_test.go:42 +0xb3 android/soong/finder.TestDirectoryNotPermitted() build/soong/finder/finder_test.go:38 +0x386 testing.tRunner() prebuilts/go/linux-x86/src/testing/testing.go:865 +0x163 Goroutine 43 (running) created at: testing.(*T).Run() prebuilts/go/linux-x86/src/testing/testing.go:916 +0x65a testing.runTests.func1() prebuilts/go/linux-x86/src/testing/testing.go:1157 +0xa8 testing.tRunner() prebuilts/go/linux-x86/src/testing/testing.go:865 +0x163 testing.runTests() prebuilts/go/linux-x86/src/testing/testing.go:1155 +0x523 testing.(*M).Run() prebuilts/go/linux-x86/src/testing/testing.go:1072 +0x2eb main.main() out/soong/.bootstrap/soong-finder/test/test.go:157 +0x1dc ================== Test: run finder_test.go with race detector enabled Change-Id: Ia77090dabaf8b14a80ac9ce938fef75f1d382574
-
Colin Cross authored
sanitizerRuntimeDepsMutator only modifies the currently visited module, it can visit modules in parallel. Also, stop recursing into modules that are not static dependencies, and stop recursing if the module already has all modifications that the mutator could make. Test: m checkbuild Change-Id: I95a57f763a91940f1854ba3c587a2f70e8baba97
-