Commit Graph

32193 Commits

Author SHA1 Message Date
Treehugger Robot 0157cc658a Merge "Add context for invalid extensions for cc compile" 2020-12-04 17:41:06 +00:00
Paul Duffin 7f48eeff59 Improve error messages for missing dependencies
Adds some additional information into the paths that are created when
modules are missing in Soong but SOONG_ALLOW_MISSING_DEPENDENCIES=true.

Test: try and build platform against art prebuilts
Bug: 171061220
Change-Id: Ifbcc0af5bdbd15409758a3b6f216cf9b3b5dba31
2020-12-04 16:21:57 +00:00
Treehugger Robot e3705046ff Merge "Allow RBE-related environment variables to be visible during Bazel action execution." am: 06e7b6d906
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1517239

Change-Id: I29062e8d87548da2db2b4a238f7e740fbee02b83
2020-12-04 16:09:22 +00:00
Treehugger Robot 06e7b6d906 Merge "Allow RBE-related environment variables to be visible during Bazel action execution." 2020-12-04 15:48:26 +00:00
Thiébaud Weksteen e6d47da771 Merge "Includes rust_binary in rust-project.json" am: 4bfb2b99f8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1517037

Change-Id: I86c9d56d527c269bd72dec5c31ac32a0abfd866a
2020-12-04 15:28:33 +00:00
Liz Kammer e2861131e6 Add context for invalid extensions for cc compile
Change-Id: I342e8ece56bbe632232d83670d14f9368ed9f0ff
Test: treehugger
2020-12-04 15:19:22 +00:00
Thiébaud Weksteen 4bfb2b99f8 Merge "Includes rust_binary in rust-project.json" 2020-12-04 14:37:14 +00:00
Rupert Shuttleworth ad532f21ab Allow RBE-related environment variables to be visible during Bazel action execution.
Test: Manually.
Change-Id: I1acfdd5f30b2e08288508da8136029e454316622
2020-12-04 11:27:54 +00:00
Jiyong Park e386754898 target.apex.exclude_[shared|static]_libs to cc_* modules
The property is used to exclude some shared and static libs when the
module is built for an APEX.

Bug: 166468760
Test: m
Change-Id: I0dcaa4ae94c01aa00dc5539c60d3054c57fd8824
2020-12-04 18:09:39 +09:00
Treehugger Robot 00fd1c09d5 Merge "Don't use module names with "prebuilt_" prefixes in make dependencies." am: d348c41af5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1515504

Change-Id: Id640558409539dd91f945f35786085afcbbf8fa3
2020-12-04 07:32:25 +00:00
Treehugger Robot d348c41af5 Merge "Don't use module names with "prebuilt_" prefixes in make dependencies." 2020-12-04 06:23:51 +00:00
Treehugger Robot 22e8d2c427 Merge "Add comments/refactor for python.go" am: 2859d737f0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1502093

Change-Id: Iec08f7d0e6766dabc7ae1b1c4c57b1f6c48304ba
2020-12-04 05:08:16 +00:00
Jingwen Chen 4133ce6912 Add bp2build mode to soong_build.
This CL adds a new CONVERT_TO_BAZEL env var, and a bp2build goal. It
reuses the queryview architecture, but registers no mutators before
converting to BUILD files. This gives us a blank slate of the module
graph to work with, and create a shadow/alternate pipeline of mutators
to converge the Bazel BUILD graph to be semantically equivalent with the
Android.bp graph (after apply its current set of mutators).

The command to do so is:

    $ CONVERT_TO_BAZEL=true m bp2build

To not clobber with queryview, the generated files are in
out/soong/bp2build.

Test: CONVERT_TO_BAZEL=true m bp2build && bazel query --config=bp2build //...
Test: m queryview && bazel query --config=queryview //..
Test: soong tests
Test: TH presubmit
Fixes: 174465461
Signed-off-by: Jingwen Chen <jingwen@google.com>
Change-Id: I4dd0ccc73abc345d70a50ca2803d6f400cd8c863
2020-12-03 23:36:57 -05:00
Treehugger Robot 2859d737f0 Merge "Add comments/refactor for python.go" 2020-12-04 03:45:21 +00:00
Kiyoung Kim 41e45d90b3 Merge "Add linkerconfig to Runtime APEX" am: 2ba87f466c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1513630

Change-Id: I52d9e487f3dba459bde89db08182227b8f1ad526
2020-12-04 01:35:45 +00:00
Martin Stjernholm 2856c66c99 Don't use module names with "prebuilt_" prefixes in make dependencies.
The distinction between foo and prebuilt_foo doesn't exist in make, so
this could create invalid dependencies when both source and prebuilt
modules exist and the prebuilts are preferred.

Test: `m` with ART module prebuilts with prefer:true in the tree
Test: m nothing
Bug: 172480615
Change-Id: I90b76a8f38493882b3330d1b6789159852e59d55
2020-12-04 01:00:23 +00:00
Kiyoung Kim 2ba87f466c Merge "Add linkerconfig to Runtime APEX" 2020-12-04 01:00:22 +00:00
Treehugger Robot ac0b51ec1d Merge "Dogfood the new IR Kotlin compiler backend." am: cf8b2ee16e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1515505

Change-Id: I3fd93fd7633f78f12093af3b690b762f42e7f35d
2020-12-04 00:09:07 +00:00
Treehugger Robot cf8b2ee16e Merge "Dogfood the new IR Kotlin compiler backend." 2020-12-04 00:05:07 +00:00
Sophie Zheng 94443b9511 Merge "Automated NDK API coverage used by Mainline modules build integration." am: 8baa8b50a8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1496322

Change-Id: I960f808499c2f63cfb04c98fe4e35cdc65b94e4a
2020-12-03 23:56:09 +00:00
Sophie Zheng 8baa8b50a8 Merge "Automated NDK API coverage used by Mainline modules build integration." 2020-12-03 23:30:21 +00:00
Yifan Hong d2694d71e0 Merge "Do not install init.rc for (vendor_)ramdisk variants." am: 4396c01aff
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1516202

Change-Id: I586cc3fbd5bab032ab8477f809e3c7b1f141f7a5
2020-12-03 22:29:44 +00:00
Treehugger Robot 440ad728a4 Merge "Rename __ANDROID_SDK_VERSION__." am: fe9e0c775c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1502112

Change-Id: I72397bc3c7da996d44a088a252ca58124118da47
2020-12-03 22:29:10 +00:00
Yifan Hong 4396c01aff Merge "Do not install init.rc for (vendor_)ramdisk variants." 2020-12-03 22:27:53 +00:00
Treehugger Robot fe9e0c775c Merge "Rename __ANDROID_SDK_VERSION__." 2020-12-03 22:09:56 +00:00
Steven Moreland b9157b152e vndk.go: remove keymint
keymint-unstable is the VNDK variant (and this list is only checked to
be a superset of the desired libraries).

The other library exists, but it is removed because it's not in the VNDK
and this list is only for VNDK libs.

Bug: 173660792
Test: build
Change-Id: I0e1a2a7af13f132cd3bfa4ca1305c098acbe747b
2020-12-03 21:44:14 +00:00
Colin Cross c5666f9231 Merge "Pass pctx and ctx to NewRuleBuilder" am: 897a5ad507
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1500984

Change-Id: Idd3ca2ed1b5ea6c0d666c35d1669bc90ee6edfdc
2020-12-03 20:16:11 +00:00
Colin Cross 897a5ad507 Merge "Pass pctx and ctx to NewRuleBuilder" 2020-12-03 20:07:30 +00:00
Thiébaud Weksteen 064f6e957e Includes rust_binary in rust-project.json
Until now, only rust_library (and their derivatives such as
rust_library_host) were reported in rust-project.json. Adds support for
rust_binary and rust_tests.

Bug: 174743191
Test: Validate auto-completion in keystore2_main.rs
Change-Id: I17b3ec29e233f29b7abd16dc771070ada48d17fb
2020-12-03 20:58:32 +01:00
Ulya Trafimovich 65b031910b Do not propagate <uses-library> deps through static SDK component libs.
If some Java library/app depends on an SDK component library (e.g. stubs
library), then it transitively depends on the SDK library itself
(because the component library has a dependency on its SDK library).

Previously having this transitive dependency resulted in adding the SDK
library to the <uses-library> dependencies of the library/app. However,
this doesn't make sense if the app has a *static* dependency on the
component library. This patch stops adding <uses-library> dependency in
that case.

Bug: 132357300
Test: m nothing
Test: added new Soong test that would previously fail with an error:
   invalid build path for <uses-library> "fred"
Change-Id: I697a65e461037c95ec56b6c321afa4ec52ccbbec
2020-12-03 16:50:22 +00:00
Christopher Parsons 8987c1a94a Merge "Add comments to cc/cc.go" am: 47f0e63ba0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1515403

Change-Id: If3bf5a608443dd7335c601ce540a75d8cf86854b
2020-12-03 16:30:07 +00:00
Orion Hodson 1f2bffb492 Merge "Add 'append' command for conv_linker_config" am: 8523735341
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1515153

Change-Id: Ie97a570c69d1d06242b51af54b4b94273d607ae4
2020-12-03 16:29:17 +00:00
Christopher Parsons 47f0e63ba0 Merge "Add comments to cc/cc.go" 2020-12-03 16:15:31 +00:00
Orion Hodson 8523735341 Merge "Add 'append' command for conv_linker_config" 2020-12-03 15:23:34 +00:00
Mads Ager ad2bfda285 Dogfood the new IR Kotlin compiler backend.
Test: make
Test: atest com.android.systemui

Change-Id: I610058001bde19554c55dee5a79ad1782abc3186
2020-12-03 12:23:55 +01:00
Treehugger Robot a900c0b3bd Merge "Reduce default shard size." am: f202e4e793
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1516203

Change-Id: I142662846c682f6d000f8f6726fa9763a64daab5
2020-12-03 08:22:02 +00:00
Kiyoung Kim 4ee686ddca Add 'append' command for conv_linker_config
Add 'append' command for conv_linker_config so any item can be appended
to linker.config.pb file.

Bug: 174646355
Test: buildbot_build.sh succeeded
Change-Id: Ic3f12ee5e5c0e7ca7c27d4a8cff347e93061eb5f
2020-12-03 17:09:56 +09:00
Treehugger Robot f202e4e793 Merge "Reduce default shard size." 2020-12-03 07:08:00 +00:00
Treehugger Robot b4c453cc2d Merge "WriteFileRule: Chunk long content and merge them to result" am: c0a7b832f3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1513213

Change-Id: I2a0f18f91a70681538d628948abc8b7d9b9f48ee
2020-12-03 05:47:58 +00:00
sophiez c80a2b392e Automated NDK API coverage used by Mainline modules build integration.
Add gen_ndk_usedby_apex.sh script to generate NDK API list used by Mainlain modules when modules get build.

Test: TARGET_BUILD_APPS=com.android.adbd m dist apps_only

Forrest run: android-build.googleplex.com/builds/forrest/run/L97800000742565481

Change-Id: I39e5aa7c74eff46aba06808642b2bd67ae45ba1e
2020-12-03 05:45:20 +00:00
Treehugger Robot c0a7b832f3 Merge "WriteFileRule: Chunk long content and merge them to result" 2020-12-03 04:44:02 +00:00
Xin Li f6524d1e2e Merge "Add car-ui-lib-overlayable to apex allowed_deps" into stage-aosp-master 2020-12-03 03:19:01 +00:00
Evgenii Stepanov f47c90db24 Reduce default shard size.
Current HWASan build on master fails if OUT_DIR is ~17 characters,
passes with 3. Halve defaultShardSize to avoid this.

Bug: 170327170
Test: build with long OUT_DIR

Change-Id: I04e3cae91118891c0e28d895108670dd0d373a3f
2020-12-02 18:56:57 -08:00
Yifan Hong 919dae1e67 Do not install init.rc for (vendor_)ramdisk variants.
Previously, the vendor_ramdisk variant of a module installs the
init.rc file to /vendor/etc/init.

In first stage init, no init rc files are read, so no init rc files
should be installed to any ramdisks.

This change removes LOCAL_INIT_RC for the (vendor_)ramdisk variant
of a module, so that init rc file is not installed for (vendor_)ramdisk
variant of a module.

Test: m snapuserd snapuserd.vendor_ramdisk
      and manually inspect the out directory
Fixes: 174587489
Change-Id: I71227d807244b6538be0d6acce5e94f129a86065
2020-12-02 18:55:29 -08:00
Jingwen Chen 8f936a3cae Merge "Remove soong.config, FileConfigurableOptions, MegaDevice config." am: 97d85c8a61
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1510575

Change-Id: I91e64071b7ee5c2679fa3315ef0a5ec212eb8274
2020-12-03 02:51:28 +00:00
Jingwen Chen 97d85c8a61 Merge "Remove soong.config, FileConfigurableOptions, MegaDevice config." 2020-12-03 02:07:35 +00:00
Inseob Kim 496ad8c655 Merge "map list files must have newline characters" am: 7ad102164b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1512738

Change-Id: I6a08f6700ebcddf9032ae14560372544afc395b2
2020-12-03 00:35:42 +00:00
Inseob Kim 7ad102164b Merge "map list files must have newline characters" 2020-12-03 00:06:59 +00:00
Chris Parsons ef6e0cf5f7 Add comments to cc/cc.go
Test: N/A
Change-Id: I2e221a40fdf9d6975891dedf0bf8a7db3e3943f1
2020-12-02 16:46:53 -05:00
Saeid Farivar Asanjan 8cb9f3f5ef Add car-ui-lib-overlayable to apex allowed_deps
Bug: 168062639
Test: manual
Change-Id: If31714ad0ab00af65e6f880fb8f7224e2c46d0a3
Merged-In: If31714ad0ab00af65e6f880fb8f7224e2c46d0a3
(cherry picked from commit 0b94aab5ef)
2020-12-02 08:58:34 -08:00