Commit graph

48275 commits

Author SHA1 Message Date
Usta Shrestha
c725f47f5d cosmetic: 1)typos 2)parameters named for clarity
Test: n/a
Bug: n/a
Change-Id: I49faa1d8dec4b729409a45e87212b271ecf9e9d1
2022-01-29 06:34:53 +00:00
Usta Shrestha
b3af19caa2 Merge "list all valid flags (commands) to soong_ui upon unknown command" 2022-01-29 06:34:19 +00:00
Usta Shrestha
defcf8d227 Merge "name parameters for clarity" 2022-01-29 06:33:55 +00:00
Treehugger Robot
3a717f0362 Merge "Fix the names of the dynamically inherited modules." am: fd8f0ffee0 am: 520820b9e2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1953696

Change-Id: I9e4bd92417ef4b29844057d531a5cd277f90d538
2022-01-29 05:19:25 +00:00
Treehugger Robot
520820b9e2 Merge "Fix the names of the dynamically inherited modules." am: fd8f0ffee0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1953696

Change-Id: I1b6f99eec33a776d307c8dec52360df8b6a0ee71
2022-01-29 05:01:30 +00:00
Treehugger Robot
fd8f0ffee0 Merge "Fix the names of the dynamically inherited modules." 2022-01-29 04:35:39 +00:00
Treehugger Robot
adea36c64b Merge "Make the Apache 2.0 text available to packages." am: a038c2f269 am: bd9b2c74d7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1964749

Change-Id: I003302782e0c5647cc364f4317de0acee5053b75
2022-01-29 02:13:29 +00:00
Treehugger Robot
bd9b2c74d7 Merge "Make the Apache 2.0 text available to packages." am: a038c2f269
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1964749

Change-Id: I839a9c68aa38036131b8074abad77ba7fa049f3c
2022-01-29 01:55:41 +00:00
Treehugger Robot
a038c2f269 Merge "Make the Apache 2.0 text available to packages." 2022-01-29 01:41:16 +00:00
Sasha Smundak
845cb29c2b Fix the names of the dynamically inherited modules.
The module name passed to rbld.inherit should be its path without the suffix.

Bug: 215182113
Test: internal
Change-Id: Ic65a5b73037be84f31f8db29f71f793b6c6034bb
2022-01-28 17:41:15 -08:00
Colin Cross
aa1cab0a62 Generate sdk_repo notice files from license metadata
Use the new license metadata files to generate the notice files
for sdk_repo modules.

Bug: 207445310
Test: m sdk_repo_build_tools
Change-Id: I8079061fbdf7417c94eebbb1b31486d3f506f931
2022-01-28 15:56:07 -08:00
Colin Cross
ce56425a6b Annotate more java dependencies for licensing
Annotate more dependencies as runtime linked or toolchain.

Bug: 207445310
Test: m checkbuild
Change-Id: Ia5dc3321a1e476b16058eee94d6dc494fe1e933e
2022-01-28 15:42:06 -08:00
Colin Cross
aff21fbf3c Track transitive packaged license deps of containers
Containers generally package the transitive installable
dependencies of their direct dependencies, track them as license
deps.

Bug: 207445310
Test: m checkbuild
Change-Id: Ic8640152cee0e0cfec5e85a1649a8adfd29d517a
2022-01-28 15:42:01 -08:00
Treehugger Robot
ddfd620501 Merge "Allow UWB to use Rust in reference HAL" am: 7afffe6af0 am: 37881daab1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960590

Change-Id: I7b0b00da85931122a4d11c085c560cb1466e02d7
2022-01-28 22:38:14 +00:00
Treehugger Robot
2f148420af Merge "Limit JIT tier for javac" am: 52ef4c3373 am: cc5e84c5a1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1964540

Change-Id: I6bb96de9e3d7e9a2a453f0db8f1e57a5fc65ebaa
2022-01-28 22:38:07 +00:00
Treehugger Robot
37881daab1 Merge "Allow UWB to use Rust in reference HAL" am: 7afffe6af0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960590

Change-Id: Ic2c3d919386b345237c6d03be06e13e836b70d21
2022-01-28 22:19:34 +00:00
Treehugger Robot
cc5e84c5a1 Merge "Limit JIT tier for javac" am: 52ef4c3373
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1964540

Change-Id: I007dad91336606d9d3c5148bd86310c51d97d717
2022-01-28 22:19:17 +00:00
Treehugger Robot
7afffe6af0 Merge "Allow UWB to use Rust in reference HAL" 2022-01-28 22:08:36 +00:00
Treehugger Robot
52ef4c3373 Merge "Limit JIT tier for javac" 2022-01-28 21:59:05 +00:00
Bob Badour
45923719be Make the Apache 2.0 text available to packages.
It might be useful to associate other library names than "Android"
with the Apache 2.0 license text.

Test: m nothing
Change-Id: I3ccbd9ca77f330bb81bf2bf4ec53cfb873befe8b
2022-01-28 12:55:32 -08:00
Cole Faust
71514c07d2 Remove variableDefinedExpr
VariableDefinedExpr was under-developed, and would not
take into account if a variable was from the globals
or product config dictionary.

It also always emitted `g.get("VARIABLE") != None`, which
is not correct behavior. In this example makefile:

```
MY_VAR :=

ifdef MY_VAR
$(info MY_VAR is defined)
else
$(info MY_VAR is not defined)
endif

ifdef MY_UNDEFINED_VAR
$(info MY_UNDEFINED_VAR is defined)
else
$(info MY_UNDEFINED_VAR is not defined)
endif

MY_VAR ?= true
MY_UNDEFINED_VAR ?= true


$(info MY_VAR after ?= is $(MY_VAR))
$(info MY_UNDEFINED_VAR after ?= is $(MY_UNDEFINED_VAR))


.PHONY: all
all:
	@:
```

We get the output:

MY_VAR is not defined
MY_UNDEFINED_VAR is not defined
MY_VAR after ?= is
MY_UNDEFINED_VAR after ?= is true

So we can see that even if a variable was set, it's considered
not defined if it was set to an empty value. However, ?= works
differently, and does require the != None, so that was left
as is.

Just use a variableRefExpr and rely on the fact
that variables will be truthy if they're defined.

Fixes: 216700361
Test: go test
Change-Id: If8944da2579e8658e3fc4f666b1f3b2815f8c8b1
2022-01-28 19:47:34 +00:00
Jared Duke
0849c14aea Limit JIT tier for javac
javac is generally a short-lived JVM invocation that doesn't greatly
benefit from deep JIT tiering. As such, favor faster startup time
by limiting to tier 1 JIT for javac execution. This should greatly
reduce overall CPU usage from Java compilation for an arbitrary
Android build (~20%), and deliver a small but modest improvement in
overall Java build times (~5%).

Representative incremental build times with this change:
  * real 18m3.507s
  * user 563m4.838s
and without:
  * real 19m11.909s
  * user 751m27.790s

Follow-up changes will apply similar flags for other short-lived JVM
build commands.

Bug: 205303544
Test: m
Change-Id: Ic6315b976063f4330902930a6cf5e5cb394c554c
2022-01-28 11:39:47 -08:00
Sam Gilbert
e607988f01 Adding metalava team to OWNERS to be able to disable metalava checks that will break platform build.
Change-Id: Ic560361afc8d982422beef33049278bf480e3964
2022-01-28 18:34:08 +00:00
Keyi Gui
dc8ac9c98c Merge "Add new file name to output inputs/outputs of actions of modules into a new file when m json-module-graph is executed." am: 0107901dec am: 2b4514dc6f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959122

Change-Id: I1fe241dc95c56fb3257d2834a6eb369100976ccf
2022-01-28 15:24:44 +00:00
Jiakai Zhang
e6e90db00a Allow installing boot images outside of APEX for prebuilt.
This change is similar to aosp/1947127, but for prebuilts.

After this change, if `bootImageConfig.installDirOnDevice` is set to a
path outside of the APEX, the build system will build a boot image from
the dex files and the profile extracted from the prebuilt APEX.
Otherwise, it keeps the current behavior: extracting the boot image from
the prebuilt APEX.

This is a no-op change. Current behavior is not affected.

Bug: 211973309
Test: m nothing
Test: -
  On internal master:
  1. Patch aosp/1947128.
  2. Patch ag/16743847 and ag/16746804.
  3. m SOONG_CONFIG_art_module_source_build=false com.google.android.art
  4. See the boot image being installed in `/system/framework/<arch>`.
Change-Id: I24ca525309fecaf3ab7a67960fbf118cd00ecd1d
2022-01-28 15:08:06 +00:00
Keyi Gui
2b4514dc6f Merge "Add new file name to output inputs/outputs of actions of modules into a new file when m json-module-graph is executed." am: 0107901dec
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959122

Change-Id: Ib6950fdbb91bf6c31766baa29f93f7660c6fe4eb
2022-01-28 15:07:45 +00:00
Keyi Gui
0107901dec Merge "Add new file name to output inputs/outputs of actions of modules into a new file when m json-module-graph is executed." 2022-01-28 14:39:31 +00:00
Pedro Loureiro
b30ad5c950 Merge "Add special case for test-only module in configuredJars method" am: e4c255cb04 am: f4ddb097e5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960850

Change-Id: Ibf8c21661030ce43aba58b60a79480152725689e
2022-01-28 10:18:37 +00:00
Pedro Loureiro
f4ddb097e5 Merge "Add special case for test-only module in configuredJars method" am: e4c255cb04
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960850

Change-Id: Id7b7d8c4d14470316a1e3cea30708f9ac7984ca9
2022-01-28 10:04:01 +00:00
Pedro Loureiro
e4c255cb04 Merge "Add special case for test-only module in configuredJars method" 2022-01-28 09:50:36 +00:00
kgui
67007248a5 Add new file name to output inputs/outputs of actions of modules into a new file when m json-module-graph is executed.
And also delete the logic in droidstubs to output JSONDataActions.

Test: local.

Change-Id: Ib5d6f1f69c16c41f128e481131775c7699f96464
2022-01-28 13:52:50 +08:00
Treehugger Robot
aae5c94a71 Merge "Add option to generate BTF debug info for bpf programs" am: c7afdefa26 am: e375f4c53e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1909413

Change-Id: I710db9e741688a5bf511e4310718f9b11d012d30
2022-01-28 02:23:24 +00:00
Treehugger Robot
e375f4c53e Merge "Add option to generate BTF debug info for bpf programs" am: c7afdefa26
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1909413

Change-Id: I9455f10bd7428124fc06acf2daf1d0ee28186473
2022-01-28 02:07:09 +00:00
Treehugger Robot
c7afdefa26 Merge "Add option to generate BTF debug info for bpf programs" 2022-01-28 01:51:05 +00:00
Chih-hung Hsieh
5b6b03c78e Merge "Add tidy.md document" am: 7892c6d76d am: be0ae56298
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960242

Change-Id: I6579e511bf9a71d536c8e33194d3edca850afd1b
2022-01-27 23:32:15 +00:00
Treehugger Robot
cb6b5d76b8 Merge "Revert "Reland "Enable hwasan use after scope detection.""" am: cd22b62add am: 86f074a1a4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1962182

Change-Id: I8efc969683a728d859c7b5975fe842c539bd8040
2022-01-27 23:31:18 +00:00
Chih-hung Hsieh
be0ae56298 Merge "Add tidy.md document" am: 7892c6d76d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1960242

Change-Id: I9e9ea796d168deb01b050c30edac2dde8f899264
2022-01-27 23:14:38 +00:00
Treehugger Robot
86f074a1a4 Merge "Revert "Reland "Enable hwasan use after scope detection.""" am: cd22b62add
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1962182

Change-Id: Ib97eeda88c2f7e8d06c3a6719db6c290d14aee7d
2022-01-27 23:14:05 +00:00
Chih-hung Hsieh
7892c6d76d Merge "Add tidy.md document" 2022-01-27 23:07:25 +00:00
Treehugger Robot
cd22b62add Merge "Revert "Reland "Enable hwasan use after scope detection.""" 2022-01-27 22:54:24 +00:00
Treehugger Robot
6eb40a5b78 Merge changes I728208ed,Ifdb50809 am: 428d5ad909 am: 6d67ba6d67
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1963682

Change-Id: I5a6295033577cbbb2c422c8f9fb4591d3c416044
2022-01-27 22:30:32 +00:00
Treehugger Robot
2c73bdc0a9 Merge changes from topic "musl_rust" am: 6bf833f428 am: 4e93dd995d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959700

Change-Id: Iaab355ed72ecf9f30d6ce95fcfcf6c705dc286ed
2022-01-27 22:30:20 +00:00
Colin Cross
d89da5d931 Support genrules as CrtBegin and CrtEnd in rust am: 018cbebd71 am: 8d32422e83
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959899

Change-Id: Ic03f2aeb985725cf10b747e01afb01d3659acd7e
2022-01-27 22:30:20 +00:00
Colin Cross
6523b07c3b Support multiple crtbegin and crtend dependencies am: fe605e14ee am: 592ba33d9c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959699

Change-Id: I26c2bcdb3a6c2170e14e6ef3242cbe3f7944dffb
2022-01-27 22:30:18 +00:00
Treehugger Robot
6d67ba6d67 Merge changes I728208ed,Ifdb50809 am: 428d5ad909
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1963682

Change-Id: I69b8673594f7309d838f455d2c8208f80c453d23
2022-01-27 22:22:35 +00:00
Treehugger Robot
428d5ad909 Merge changes I728208ed,Ifdb50809
* changes:
  [cc] Add per-file OWNERS for cc/coverage.go
  [cc/coverage] Override/disable -Wframe-larger-than
2022-01-27 22:17:29 +00:00
Treehugger Robot
4e93dd995d Merge changes from topic "musl_rust" am: 6bf833f428
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959700

Change-Id: Ie235f8ca7f40149f069ed64db7611a1be10b88bf
2022-01-27 22:13:04 +00:00
Colin Cross
8d32422e83 Support genrules as CrtBegin and CrtEnd in rust am: 018cbebd71
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959899

Change-Id: I5d6cc23f9ddac0016183ba21c21da95c7de12a1a
2022-01-27 22:13:03 +00:00
Colin Cross
592ba33d9c Support multiple crtbegin and crtend dependencies am: fe605e14ee
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1959699

Change-Id: I8565370140a3c295063cb168c4829448699d09c3
2022-01-27 22:13:01 +00:00
Treehugger Robot
6bf833f428 Merge changes from topic "musl_rust"
* changes:
  Support building rust modules against musl libc
  Support genrules as CrtBegin and CrtEnd in rust
  Support multiple crtbegin and crtend dependencies
2022-01-27 21:39:18 +00:00