Commit Graph

37326 Commits

Author SHA1 Message Date
Anton Hansson
6e2cb706a9 Merge "Move stub providers to droidstubs.go" am: 93e8f79577
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1697050

Change-Id: I85ea90338b200a1425338c9b8f07031e3756dd48
2021-05-05 13:35:17 +00:00
satayev
9a6f87ebd6 Make SystemServerJars ConfiguredJarList.
Consistent with plumbing of boot jars. SystemServerJars only support /system/framework/ jars.

Bug: 180105615, 155630745
Test: m && launch_cvd
Change-Id: I58b005b7c4103c8e250090e995b1d9b2f9ed4a76
2021-05-05 14:24:02 +01:00
Anton Hansson
93e8f79577 Merge "Move stub providers to droidstubs.go" 2021-05-05 13:17:37 +00:00
Lukacs T. Berki
94175d42b9 Refactor how bp2build gets arch-specific props. am: 598dd00236 am: a2f68505af
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1697045

Change-Id: Id0287f17b1fa0411d3fe7de7b3b40c838223c9f7
2021-05-05 09:54:25 +00:00
Justin Yun
46f66059e9 Define test_min_vndk_version for cc_test
If a cc_test module defines test_options.test_min_vndk_version, the
test runs only if the ro.vndk.version of the device is defined as a
version code name or an integer value that is higher than or equal to
the value in the test_min_vndk_version proprety.

Also, move the existing test_min_api_level property to test_options
struct.

Bug: 186786268
Bug: 187258404
Test: manual test
Change-Id: I43f1cca5b60f102298726332d374e4b14c425948
2021-05-05 18:47:23 +09:00
Lukacs T. Berki
a2f68505af Refactor how bp2build gets arch-specific props. am: 598dd00236
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1697045

Change-Id: I11c6111fe77cbddb023a4550c44e6780e8f70f64
2021-05-05 09:39:01 +00:00
Anton Hansson
5260932812 Move stub providers to droidstubs.go
They fit better there than in droiddoc.go.

Test: m nothing
Change-Id: I44588f1df2094f14881f920246bd19ffc6e1615c
2021-05-05 10:36:05 +01:00
Lukacs T. Berki
598dd00236 Refactor how bp2build gets arch-specific props.
Then plumb them to LabelAttribute.

This refactoring is required because the previous implementation did not
handle properties in shards other than the first one (e.g.
version_script) well. In addition, it also makes the code paths between
bp2build and analysis more similar.

Bug: 186650430
Test: Presubmits.
Change-Id: Ic4393e8ae47f4e88816bf45c89399efd61494d22
2021-05-05 09:00:01 +02:00
Treehugger Robot
8d8719a108 Merge "Fix concurrency issues in Test_runWithTimeout" am: 8bb7d7cde4 am: 769f6a7117
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1695886

Change-Id: Ia3680b8117c80780d1ea860e9914f1a8b5640a54
2021-05-04 18:53:38 +00:00
Treehugger Robot
769f6a7117 Merge "Fix concurrency issues in Test_runWithTimeout" am: 8bb7d7cde4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1695886

Change-Id: I22d98d40c9e6843bc845116ab2bafccc5a09a769
2021-05-04 18:31:32 +00:00
Paul Duffin
07ec76efa9 Support dex_import on platform_bootclasspath am: 4977540bcb am: d40a947de4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1690875

Change-Id: I0b3db8fc192526b65aeecf406adceb2a37339002
2021-05-04 18:12:26 +00:00
Treehugger Robot
8bb7d7cde4 Merge "Fix concurrency issues in Test_runWithTimeout" 2021-05-04 18:06:56 +00:00
Paul Duffin
d40a947de4 Support dex_import on platform_bootclasspath am: 4977540bcb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1690875

Change-Id: I6a1314958ddb74d0597505b8a4a2758631546d0c
2021-05-04 17:41:32 +00:00
Colin Cross
71d6ab6827 Fix concurrency issues in Test_runWithTimeout
Use a concurrency-safe writer in runWithTimeout to avoid data races
on the bytes.Buffer passed in during tests.

Bug: 181095653
Fixes: 187149270
Test: Test_runWithTimeout
Test: go test -race ./cmd/run_with_timeout
Change-Id: I57a889765cb9ee7b42983f0906313e0c2d1e414e
2021-05-04 09:15:30 -07:00
Paul Duffin
4977540bcb Support dex_import on platform_bootclasspath
Maintain compatibility with previous behavior by ignoring dex_import
during hidden API processing.

Bug: 179354495
Test: m nothing
Change-Id: I976b02129bf981b7b61dce233567d6f89e04f92d
2021-05-04 14:07:23 +01:00
Treehugger Robot
6ea1ef4dde Merge "bp2build: build static version of libstdc++." am: ee4e7fe76f am: 5603f8daac
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1693386

Change-Id: I242da21208061c29082b3a7079a0594f0dfecf31
2021-05-04 09:28:51 +00:00
Treehugger Robot
5603f8daac Merge "bp2build: build static version of libstdc++." am: ee4e7fe76f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1693386

Change-Id: I6f1a91fbcc6bbdf8f37d7bf7a0f54a43a20ec819
2021-05-04 09:13:14 +00:00
Treehugger Robot
ee4e7fe76f Merge "bp2build: build static version of libstdc++." 2021-05-04 08:46:37 +00:00
Jingwen Chen
179856a69d bp2build: build static version of libstdc++.
This CL adds the ability to filter cc_library modules to only generate
their static variant of their shared variant isn't ready.

For example, the libstdc++ library is buildable as a static library,
which libc depends on. However, the shared variant of libstdc++ depends
on libc, which has to come later.

This CL introduces that abstraction to break up bp2build conversion into
more atomic steps to help with conversion.

Test: TH (bazel build //bionic/... incl. libstdc++'s static variant)
Bug: 186489250
Bug: 186822597

Change-Id: I3e2fe748e4e3d3b656760da4807f342d67c8f45f
2021-05-04 02:06:41 +00:00
Colin Cross
57230dd2a0 Merge changes If6996bd8,I91df5c3f am: b55ceca568 am: f40a872210
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1691595

Change-Id: I1590eed9ebbfe556383a15f142f2782076492869
2021-05-03 23:49:34 +00:00
Colin Cross
f40a872210 Merge changes If6996bd8,I91df5c3f am: b55ceca568
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1691595

Change-Id: Ib337642ce088bd056bb3f20b5cde16b0222d133c
2021-05-03 23:25:45 +00:00
Colin Cross
b55ceca568 Merge changes If6996bd8,I91df5c3f
* changes:
  Time out and dump stacks from R8 processes after 30 minutes
  Add a wrapper command to detect timeouts
2021-05-03 23:06:22 +00:00
Colin Cross
0e446159bc Support blueprint_go_binary in PathForModuleSrc
Allow blueprint_go_binary to be used as test data by supporting it in
PathForModuleSrc.

Also make python use GetDirectDepsWithTag instead of VisitDirectDeps
so it doesn't fail on the dependency to a Blueprint (non-Android)
module.

Fixes: 186528269
Test: manual
Change-Id: Ibc1d7caf7bf1fa5db805c3b885a95df4baee0ecf
2021-05-03 13:35:32 -07:00
Treehugger Robot
fc29dcc7a5 Merge "Add fmtlib_ndk back to the deny list because it fails in mixed builds postsubmit." am: 1ea9624f9a am: 4949451e65
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1693785

Change-Id: Ib720f5a5c38616a669a5b6303cb7a831a3f842bf
2021-05-03 17:24:56 +00:00
Hamzeh Zawawy
cb040b1f70 Merge "Add support for packaging rust fuzzers" am: 0a91eab365 am: ca272e7203
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1691209

Change-Id: Ic5627ae4a37cfd7e14b2be20ed689b3ede5fa18e
2021-05-03 17:24:44 +00:00
Treehugger Robot
4949451e65 Merge "Add fmtlib_ndk back to the deny list because it fails in mixed builds postsubmit." am: 1ea9624f9a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1693785

Change-Id: Ic6bbe9497a6093409a17b2f4b6571d33f4a51c28
2021-05-03 17:05:10 +00:00
Hamzeh Zawawy
ca272e7203 Merge "Add support for packaging rust fuzzers" am: 0a91eab365
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1691209

Change-Id: Icaa9e41e51812baf67c1a498eab9eb27cdb4f034
2021-05-03 17:04:01 +00:00
Treehugger Robot
1ea9624f9a Merge "Add fmtlib_ndk back to the deny list because it fails in mixed builds postsubmit." 2021-05-03 16:55:23 +00:00
Hamzeh Zawawy
0a91eab365 Merge "Add support for packaging rust fuzzers" 2021-05-03 16:43:08 +00:00
David Srbecky
eb6141f003 Merge "Use create_minidebuginfo tool instead of bash script." am: 67f8051a86 am: 140b0d8ac6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1690871

Change-Id: Ie546016fa565682f40490b0313e3e78ed5c73777
2021-05-03 16:17:21 +00:00
David Srbecky
140b0d8ac6 Merge "Use create_minidebuginfo tool instead of bash script." am: 67f8051a86
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1690871

Change-Id: I8d95e2b4c16ce872a3cad1f2ae08c88de8a03ba7
2021-05-03 16:04:00 +00:00
David Srbecky
67f8051a86 Merge "Use create_minidebuginfo tool instead of bash script." 2021-05-03 15:42:01 +00:00
Rupert Shuttleworth
52e6672613 Add fmtlib_ndk back to the deny list because it fails in mixed builds postsubmit.
But add it to the mixed builds deny list instead of the bp2build deny list.

Test: Waiting for another postsubmit to run.
Change-Id: Ief51356758304b3f13c95df401e310d4f5e236f7
2021-05-03 10:05:55 -04:00
Rupert Shuttleworth
e681f6a4a4 Update info on some deny-list entries. am: fb955387db am: 67d91646f1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1693465

Change-Id: I231e73686d2e46af37cf4d7534273bdab5493848
2021-05-03 11:12:34 +00:00
Rupert Shuttleworth
67d91646f1 Update info on some deny-list entries. am: fb955387db
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1693465

Change-Id: I304e53115f9fbc36f1c3b7fc59b42b4624c9a5e7
2021-05-03 10:48:52 +00:00
Jingwen Chen
2a5d835950 bp2build: remove manifest file for bp2build-sync. am: 2b54eb8375 am: f343400f06
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1693286

Change-Id: I83f032bd389ef3a544f8de67826c44ff3fdf2aa6
2021-05-03 09:11:34 +00:00
Jingwen Chen
f343400f06 bp2build: remove manifest file for bp2build-sync. am: 2b54eb8375
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1693286

Change-Id: I575a6df510d322878dcac9b331dedd5f4e7de82b
2021-05-03 08:48:46 +00:00
Rupert Shuttleworth
fb955387db Update info on some deny-list entries.
(Some info has been relocated to blockers in Buganizer)

Also remove libjemalloc5 and fmtlib_ndk from the deny list as they don't seem to need to be there at the moment.

Test: bazel build //bionic/...
Test: build/bazel/scripts/run_presubmits.sh

Change-Id: I87e9dd3d4a83291efbcc15d6b99187b57d45ad18
2021-05-03 04:47:03 -04:00
Jingwen Chen
2b54eb8375 bp2build: remove manifest file for bp2build-sync.
The latter doesn't exist anymore, so there's no more need for the
bp2build file manifest.

Bug: 185817076
Test: TH
Change-Id: I6638b84eb371ced98474e3ca5026e3b33b824767
2021-05-03 06:49:54 +00:00
Treehugger Robot
919995fc96 Merge "Add debug ramdisk variant." am: cbaef6ff0f am: 33edfca5da
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1690925

Change-Id: I45a03b530810292ababf78cf1f3e636def943416
2021-05-03 00:34:48 +00:00
Treehugger Robot
33edfca5da Merge "Add debug ramdisk variant." am: cbaef6ff0f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1690925

Change-Id: Ifc90b7a054768748d13bba54e63170a4c2cf8bba
2021-05-03 00:13:50 +00:00
Treehugger Robot
cbaef6ff0f Merge "Add debug ramdisk variant." 2021-05-02 23:54:40 +00:00
hamzeh
c651b5295b Add support for packaging rust fuzzers
Test: make haiku-rust
Change-Id: Idd4d836d11e0ae615b59c6648d49348449589787
2021-05-01 00:55:42 -07:00
David Srbecky
69315e4ea7 Use create_minidebuginfo tool instead of bash script.
The behaviour is semantically identical, however,
the tool additionally sorts the symbols by address,
compresses frame unwind information more efficiently,
and improves random-accessibility for lazy decompression.

Overall, the changes balance and the output size is same,
however, libunwindstack can access the data much faster
while using less memory (due to the lazy decompression).
It will also enable further improvements in the future.

Bug: 110133331
Test: ART unwinding tests, run prefetto on the device.
Change-Id: Id48f9fe67fb67fcf2b90cc3b217b71bb8f5147ca
2021-05-01 00:06:07 +01:00
Colin Cross
29c294b2cf Time out and dump stacks from R8 processes after 30 minutes
R8 processes are sometimes hanging on the build servers.  Wrap R8 with
run_with_timeout to dump the stacks with jstack and kill the process
after 30 minutes.  Switch from running with the r8-compat-proguard
shell script to running the jar directly so that jstack gets the pid
of the java process.

Bug: 181095653
Test: m checkbuild
Test: m NetworkStackNextIntegrationTests
Test: m USE_RBE=true RBE_R8=true RBE_R8_EXEC_STRATEGY=remote NetworkStackNextIntegrationTests
Change-Id: If6996bd8eb39c7a8453d79e825004339c009ade2
2021-04-30 14:14:46 -07:00
Colin Cross
9b6bcc6bff Add a wrapper command to detect timeouts
Add a command that can be used to wrap actions with a timeout, and
optionally run an extra debugging command on timeout.

Bug: 181095653
Test: run_with_timeout_test.go
Change-Id: I91df5c3fb5277968717815a4ad4612113766dab1
2021-04-30 14:14:45 -07:00
Chris Parsons
eadbd4334d Support multilib properties in bp2build am: c424b76f76 am: 5b710bf057
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1691268

Change-Id: I888d97e5fc542325e37e15af87fb8c4efc6c1c2a
2021-04-30 18:00:06 +00:00
Chris Parsons
5b710bf057 Support multilib properties in bp2build am: c424b76f76
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1691268

Change-Id: I193eb41fe687131a562ea9f928b767cfa8a86c26
2021-04-30 17:44:51 +00:00
Chris Parsons
c424b76f76 Support multilib properties in bp2build
This combines properties among "multilib" and "arch" stanzas in selects
generated by bp2build.

With this fix, libc_gdtoa may be removed from the denylist.

This change also refactors a portion of arch.go, specifically bp2build's
arch mutator, adding a number of comments along the way, to hopefully
make this code clearer for future readers.

Test: mixed_libc.sh
Change-Id: If2beea672957cfb1af6760406ba507181ec38f77
2021-04-30 13:21:36 -04:00
Colin Cross
e77e82d12a Merge "Add prebuilt_rfsa module type" am: 8d0ed7ebd5 am: adf79a5e3e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1671668

Change-Id: I3bb2190f1a1f438969fd5df2b5be2cd96c7c7466
2021-04-30 17:07:47 +00:00