Commit graph

27948 commits

Author SHA1 Message Date
Treehugger Robot
aa17c4c9ff Merge "Phase out Legcay GSI" 2020-11-06 04:00:40 +00:00
Liz Kammer
94d609e59c Merge "Consolidate python version properties in mutator" am: 4e4798b7c1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1482796

Change-Id: Ic781a8d8fb25b5f4fba7218ac2f0b5041f882814
2020-11-06 02:12:19 +00:00
Matthew Maurer
5819e58fdc rust: Fix GRPC generator invocation
When using the grpc generator, the plugin expects to also have access to
the protobuf generator. This patch ensures that aprotoc will use the
Soong copy of the protobuf generator, rather than trying to use a
locally installed version from PATH.

Test: m nothing
Change-Id: I26da4d18c97017da7d8cd9515a07a2b7b2575342
2020-11-06 01:40:41 +00:00
Liz Kammer
4e4798b7c1 Merge "Consolidate python version properties in mutator" 2020-11-06 01:29:25 +00:00
Jingwen Chen
f0eb5c9bfb Merge "bazel overlay: fix regression to "list of string" bpdocs type." am: b0a713acf9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1488618

Change-Id: I1d2fffa720bf87ded7666ad6f9b4ca7df711d003
2020-11-06 00:22:58 +00:00
Jingwen Chen
50f93d2078 Rename bazel overlay to queryview.
Bazel overlay is an experimental feature. This renames the feature to 'queryview' to better describe its purpose, and also move away from the already overloaded 'overlay' term in Android.

Test: m queryview && bazel query --package_path=out/soong/queryview //...
Change-Id: I8b5068c7db46cb61a03a8e87af9c7c9077ebeff9
2020-11-05 19:17:14 -05:00
Jingwen Chen
b0a713acf9 Merge "bazel overlay: fix regression to "list of string" bpdocs type." 2020-11-06 00:04:04 +00:00
Nikita Ioffe
77e1d4b4e5 Update apex/allowed_deps.txt
Bug: 171330443
Bug: 171668006
Test: build/soong/scripts/update-apex-allowed-deps.sh
Change-Id: I5f3d834687121ba967d1e3aeb301c87679b2078d
Merged-In: I5f3d834687121ba967d1e3aeb301c87679b2078d
2020-11-05 21:46:26 +00:00
Treehugger Robot
35cbb262e1 Merge "rust_bindgen: respect custom OUT_DIR" am: f5b2a5feb7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1488500

Change-Id: I9825e1e7eb01d4fc42de8600c97e55c4c695b9a5
2020-11-05 20:16:14 +00:00
Treehugger Robot
f5b2a5feb7 Merge "rust_bindgen: respect custom OUT_DIR" 2020-11-05 19:54:46 +00:00
Ivan Lozano
5cfcc80818 Merge "Add rust_grpcio module type." am: 86a1db7baf
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1483684

Change-Id: I65ee02019464b4e395928738061dd4f601be9ada
2020-11-05 18:29:30 +00:00
Ivan Lozano
86a1db7baf Merge "Add rust_grpcio module type." 2020-11-05 17:47:11 +00:00
Patrice Arruda
9be91078d8 Merge "Collect useful resource information of each executed process in soong_ui." am: bb42c44e71
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1466664

Change-Id: I00f056e654a72dcfe5777dd43c6f8e07f58853de
2020-11-05 17:30:04 +00:00
Patrice Arruda
bb42c44e71 Merge "Collect useful resource information of each executed process in soong_ui." 2020-11-05 17:17:43 +00:00
Thiébaud Weksteen
3e0d3f6ef5 Use Rust 1.47.0 prebuilts
Bug: 171280890
Test: cd external/rust; mm
Change-Id: I61097821a73a28a383a07b1fdcfe867872397b43
2020-11-05 17:35:34 +01:00
Thiébaud Weksteen
71512f3265 rust: set STD_ENV_ARCH
In 1.47.0, std::env requires the STD_ENV_ARCH environment variable to be
set to the target architecture [1].

[1] 8e8939b804/library/std/src/env.rs (L866)

Bug: 171280890
Test: cd external/rust; mm
Change-Id: If4ddf4b9bad2a1a7518a358a5fb597170a97c67e
2020-11-05 17:35:17 +01:00
Christopher Parsons
320fb35fe7 Merge "After bazel execution, symlink results in out/" am: fde53fff96
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1488096

Change-Id: I0838c6441b30b37c81abf4b4d2a8319a90620df6
2020-11-05 15:30:32 +00:00
Shao-Chuan Lee
aa3231cd6b rust_bindgen: respect custom OUT_DIR
Bug: 172551033
Test: m
Change-Id: I1f760de7cb03ec0bcad5c66ac08bb88ca77c26cd
2020-11-06 00:12:02 +09:00
Christopher Parsons
fde53fff96 Merge "After bazel execution, symlink results in out/" 2020-11-05 14:54:47 +00:00
Nikita Ioffe
256d717359 Merge changes from topic "apex-allowed-deps" am: a6d18b6830
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1486216

Change-Id: I6f88cd44305d5d069babe7a629d66e82b0f31a87
2020-11-05 14:12:06 +00:00
Nikita Ioffe
e9ab014f6e Update apex/allowed_deps.txt am: 3b834bf347
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1486244

Change-Id: I92730f7d507eddeabcf3c1f8104ddcaadc6272b6
2020-11-05 14:11:34 +00:00
Nikita Ioffe
a6d18b6830 Merge changes from topic "apex-allowed-deps"
* changes:
  Add PHONY for apex-allowed-deps check.
  Update apex/allowed_deps.txt
2020-11-05 14:02:33 +00:00
Ivan Lozano
6a3d1e9831 Add rust_grpcio module type.
Adds a new SourceProvider type to generate grpcio code from protos.
Since it's so similar to protobuf, it's basically just a different type
of rust_protobuf.

Bug: 171504899
Test: Example module compiles.
Change-Id: I9882f3ac4d4aeaae0191f2b557e9612b5c7a9ac9
2020-11-05 08:53:52 -05:00
Jingwen Chen
3b478b35f4 Move hardcoded bazel flags from soong_ui to common.bazelrc. am: 70b7eeed1c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1488616

Change-Id: I9a5ea1ec5556ca4cd66f377af7e6741f2cf0bddf
2020-11-05 12:59:39 +00:00
Anton Hansson
30a4c9d665 Remove dead code
I removed the last use of this method in r.android.com/1450117.

Bug: 169395887
Test: m nothing
Change-Id: I3bbb600d92dac8d9c3dec0eee14c45cdfd320ce0
2020-11-05 10:49:45 +00:00
Jingwen Chen
222ff4d186 bazel overlay: fix regression to "list of string" bpdocs type.
A recent change to Blueprint [1] added the feature to infer the type of
list elements to more than just "list of strings", but this also changed
the text to "list of string" (without s). This CL fixes the bazel
overlay, which uses "list of strings".

Test: m bazel_overlay && bazel query //...  --package_path=out/soong/bazel_overlay

[1]: 764a771917%5E%21/#F1

Change-Id: I7522d15b1ce751807e1881ce1e94f068d226b316
2020-11-05 03:55:20 -05:00
Jingwen Chen
70b7eeed1c Move hardcoded bazel flags from soong_ui to common.bazelrc.
Test: USE_BAZEL=1 m
Signed-off-by: Jingwen Chen <jingwen@google.com>
Change-Id: Ib675dba8bfaf615bf3752a4bb4531b818526f267
2020-11-05 03:31:28 -05:00
Chris Parsons
c09495bf96 After bazel execution, symlink results in out/
This ensures that USE_BAZEL=1 mode has the same directory structure
under out/ as it does without USE_BAZEL=1.

Test: Manually verified building USE_BAZEL=1 aosp_flame with droid and
libc

Change-Id: I27e810772d1bf04bd7930ea122217b93d2fd48b4
2020-11-04 20:56:14 -05:00
Patrice Arruda
ca221f3e6d Collect useful resource information of each executed process in soong_ui.
Collect the resource information of each executed process in soong_ui
for metrics analysis.

Bug: b/169453825
Test: m nothing; "lunch 1" && m
Change-Id: I8c7fe019111921c4c59174d133b85439ec825885
2020-11-04 23:35:43 +00:00
Artur Satayev
ed667a8345 Add PHONY for apex-allowed-deps check.
Bug: 149622332
Test: m apex-allowed-deps-check
Change-Id: I5848779b4ad04dd4c95e2667f7f62dd2949ac95e
Merged-In: I5848779b4ad04dd4c95e2667f7f62dd2949ac95e
(cherry picked from commit 01aa11e833)
2020-11-04 20:50:03 +00:00
Martin Stjernholm
1e04109c6e Always set apex_available in SDK snapshots.
Also fix //apex_available:platform that could get lost in the generated
apex_available properties. It only happened if a module didn't specify
an apex_available setting and then got extra entries from
apex.BaselineApexAvailable.

Test: Build ART SDK with libnativeloader_lazy in the SDK, and check
  that the generated prebuilt module has //apex_available:platform
  (before https://r.android.com/1480559).
Change-Id: I9df20aee63455932a7e558993f0f26769cb02792
2020-11-04 18:44:14 +00:00
Martin Stjernholm
122554224f Merge "Move hardcoded apex_available's for ART modules into ART blueprints." am: af3bf0dd5d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1480084

Change-Id: Ifb74f896a73ef16bb05f175c2665b702875e8caa
2020-11-04 17:38:57 +00:00
Nikita Ioffe
3b834bf347 Update apex/allowed_deps.txt
Test: build/soong/scripts/update-apex-allowed-deps.sh
Change-Id: Iad138bdb439e3ebc7a145dec7875b8bb5756d755
2020-11-04 17:12:27 +00:00
Martin Stjernholm
af3bf0dd5d Merge "Move hardcoded apex_available's for ART modules into ART blueprints." 2020-11-04 16:28:26 +00:00
Jingwen Chen
3c3ad6a444 Add dependency on dexpreopt.config to soong_build doc generation. am: ebb0b574c8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1483797

Change-Id: I5c3128fb4cde9dfaaf284edbbcd5e47dd2ce619a
2020-11-04 14:28:01 +00:00
Jingwen Chen
ebb0b574c8 Add dependency on dexpreopt.config to soong_build doc generation.
This was caught while running the soong_build docs action under Bazel as
ninja executor. Since the config file is not an explicit input to the
action, it's not present in Bazel's execution root during action
execution time, leading to a missing file error. To fix it, add the file
as an input to the action, if it's configured in product variables.

New soong_build statement:

build out/soong/docs/soong_build.html: s.writedocs.soongDocs $
        out/.module_paths/Android.bp.list out/soong/soong.variables $
        out/soong/dexpreopt.config | out/soong/.bootstrap/bin/soong_build
    outDir = out/soong/docs

Test: m
Test: USE_BAZEL=1 m
Bug: 161958189
Fixes: 161958189
Change-Id: I2bf264e848bb29ac91f4196fbe9c4ecf3cea8a2c
2020-11-04 01:51:40 -05:00
Treehugger Robot
589415ee27 Merge "Always generate profiling debug info" am: 37f5a8fb86
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1485818

Change-Id: I1283cc0d45bf2f4f1fe5d5c47ad75e896461b036
2020-11-04 03:38:24 +00:00
Treehugger Robot
37f5a8fb86 Merge "Always generate profiling debug info" 2020-11-04 02:58:02 +00:00
Nikita Ioffe
c2f75a0a5f Merge changes Ifd056230,I97f26b78,I19d58582 am: e546621f3a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1486221

Change-Id: I755060ab3ded61809aea67f39958ac616a68b581
2020-11-03 21:10:09 +00:00
Steven Moreland
4d51fccc6a Update VNDK version for common graphics HALs. am: 9efbd038a7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1486220

Change-Id: I3356238ba52093ef75b5096196e3fdbcae386fa3
2020-11-03 21:10:06 +00:00
Nikita Ioffe
1a7f5608e1 Manually update apex/allowed_deps.txt am: f9b945196b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1486219

Change-Id: I69120543f76b4f10044d667791b717c7225683f8
2020-11-03 21:09:29 +00:00
Nikita Ioffe
e546621f3a Merge changes Ifd056230,I97f26b78,I19d58582
* changes:
  Add new neuralnetworks targets to apex/allowed_deps.txt
  Update VNDK version for common graphics HALs.
  Manually update apex/allowed_deps.txt
2020-11-03 20:38:21 +00:00
Anton Hansson
e86e51e756 Merge "Make genrules uninstallable ETC instead of PHONY" am: e5b1bd4c72
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1485742

Change-Id: Ife9ec515b87742d7b30c91d463a5e52b5664437c
2020-11-03 20:05:18 +00:00
Anton Hansson
e5b1bd4c72 Merge "Make genrules uninstallable ETC instead of PHONY" 2020-11-03 19:23:00 +00:00
Yi Kong
110cd5fe7f Always generate profiling debug info
The additional debug info is used for sampling PGO. This does not affect
the size of final stripped binaries.

Also removed `-gmlt` flag in pgo.go, since it's actually a lower level
of debug option than the default (-g).

Test: build, verify final binaries are identical size
Bug: 79161490
Change-Id: Ie4cf4998695f78a50a7ac7a7a0853c625cbd8880
2020-11-03 18:13:21 +00:00
Slava Shklyaev
af7e511921 Add new neuralnetworks targets to apex/allowed_deps.txt
Generated with build/soong/scripts/update-apex-allowed-deps.sh

Bug: 160669906
Test: m
Change-Id: Ifd056230dd352fe3fa1c462d1e090aef5bbeb09d
Merged-In: Ifd056230dd352fe3fa1c462d1e090aef5bbeb09d
(cherry picked from commit 7f0c05539f)
2020-11-03 17:40:01 +00:00
Steven Moreland
9efbd038a7 Update VNDK version for common graphics HALs.
We are adding things to them, and in order for core libraries like libui
to use them, the newer versions need to be in the VNDK.

Bug: 170435409
Test: build
Change-Id: I97f26b78758f2eed128fc46db03b5f6ba3f2245f
Merged-In: I97f26b78758f2eed128fc46db03b5f6ba3f2245f
(cherry picked from commit 25281087a9)
2020-11-03 17:35:43 +00:00
Nikita Ioffe
f9b945196b Manually update apex/allowed_deps.txt
This is one in a series of cls to make sure that
build/soong/scripts/update-apex-allowed-deps.sh is a no-op on cleanly
checked out aosp/master.

This cl is an intersection of the following:
ag/I9f98361aa248b82cb58527a5cd59e6d17c3e8723,
ag/I19ba5900ddff84948cfa29e48e31cd609e61dbdb,
build/soon/apex/allowed_deps.txt in aosp/master

Test: presubmit
Merged-In: I9f98361aa248b82cb58527a5cd59e6d17c3e8723
Change-Id: I19d58582de85e1ae1ef1c2b997d568235ca17710
2020-11-03 17:30:31 +00:00
Ulya Trafimovich
8cbc5d269b Rework class loader context implementation.
The old representation consisted of a list of libraries (UsesLibraries),
a list of optional libraries (OptionalUsesLibraries) and a mapping from
library name to its build/install paths (LibraryPaths). The separation
into lists and map was necessary because of special handling of
compatibility libraries, which is now unified with normal libraries.

The new representation is a mapping from target SDK version to a tree
structure ClassLoaderContext. Each node of the tree represents a library
and contains library name, build/install paths and a slice of
subcontexts for dependencies. The same library may occur in the tree
multiple times in case it is a dependency of multiple libraries. The
order in which libraries are added matters (the resulting tree shape may
be different).

Test results have to be updated, as the resulting <uses-library> list is
reodered (previously it was a sorted list of map keys, and now it is
formed by a depth-first preorder traversal of the class loader tree).

Test: lunch aosp_cf_x86_phone-userdebug && m
Bug: 132357300
Bug: 168686456
Change-Id: I11be8cd2967f004fd58753d7c5fb99fed179cd63
2020-11-03 15:15:46 +00:00
Treehugger Robot
6fd83b4b86 Merge "Allow comments from linker.config.json" am: 5f99726550
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1471502

Change-Id: Ieb19399ad0c995725b3a2b0544f97ed21f1b2563
2020-11-03 13:12:10 +00:00