Commit graph

37785 commits

Author SHA1 Message Date
Gavin Corkery
06b4c3bef1 Add allowed deps for Device Scheduling module
Test: Builds
Bug: 161353402
Change-Id: I658c0d1c7abbcfec11cb78d60e3e3cc853c658eb
2021-02-16 14:53:33 +00:00
Ivan Lozano
f5b6a1d761 Merge "rust: Emit android vndk cfg flag." am: 36eb24b3ab am: e319ba80ef am: 9d1612d44c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1587391

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id696af4e5f709304a05581a2fc70ec618a0964bf
2021-02-14 18:37:46 +00:00
Ivan Lozano
9d1612d44c Merge "rust: Emit android vndk cfg flag." am: 36eb24b3ab am: e319ba80ef
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1587391

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8edf442f3ca8f26dc76edf5f0a9740ab8c697901
2021-02-14 18:09:01 +00:00
Ivan Lozano
e319ba80ef Merge "rust: Emit android vndk cfg flag." am: 36eb24b3ab
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1587391

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1039578fbc28e41fe49359900b0a43150c917ccd
2021-02-14 17:00:47 +00:00
Ivan Lozano
36eb24b3ab Merge "rust: Emit android vndk cfg flag." 2021-02-14 16:20:46 +00:00
Colin Cross
89aceaf5bb Merge "Convert java.Dependency to JavaInfo provider" am: b87f4b4cab am: d8e4a38924 am: e34846731c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1581950

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia9d9fabb74ae93af91ac4a43ec6d822bc6748389
2021-02-13 02:31:47 +00:00
Colin Cross
e34846731c Merge "Convert java.Dependency to JavaInfo provider" am: b87f4b4cab am: d8e4a38924
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1581950

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2ff7cb15041e62bd04bfba91706fce1940f528af
2021-02-13 01:32:27 +00:00
Colin Cross
d8e4a38924 Merge "Convert java.Dependency to JavaInfo provider" am: b87f4b4cab
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1581950

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifa0dbf607e0d2ff9282106c03621aade31ba6df3
2021-02-13 01:04:56 +00:00
Colin Cross
b87f4b4cab Merge "Convert java.Dependency to JavaInfo provider" 2021-02-13 00:39:24 +00:00
Ivan Lozano
f76cdf7c20 rust: Emit android vndk cfg flag.
Pass an "android_vndk" cfg flag that indicates this code
targets the vndk. This can be useful in instances where code
might need to behave differently.

This also includes a fix to make sure our vendor Soong tests
are correctly configured.

Bug: 179907868
Test: Soong tests pass.
Test: Example module emits new cfg flags.
Change-Id: I01cdf91f6f9d42cd8a759266d5170479664bf4bc
2021-02-12 12:17:50 -05:00
Paul Duffin
a043ca3586 Merge changes I831da5fa,I866916c9 am: c66769ddd9 am: 53606f14c3 am: 37f1591a5e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1579441

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I36b9fbacf953d98633b38a9183b4d455aa27fc22
2021-02-12 11:29:52 +00:00
Paul Duffin
37f1591a5e Merge changes I831da5fa,I866916c9 am: c66769ddd9 am: 53606f14c3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1579441

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib789cc734436bdbe03aa476f4021f785ee2559c9
2021-02-12 11:13:03 +00:00
Ulyana Trafimovich
c4b10b4cc9 Merge "Preserve <uses-library> order in dexpreopt.config files." am: da68a045a3 am: 35bc2b0ec9 am: a166d44faa
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1584966

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6f47df5bb03b7b8de994c1c7a0b24a7b4e26faa4
2021-02-12 11:13:03 +00:00
Ulyana Trafimovich
a166d44faa Merge "Preserve <uses-library> order in dexpreopt.config files." am: da68a045a3 am: 35bc2b0ec9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1584966

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id0b2cd6f1970a817ebcffa42172e985e1641cd60
2021-02-12 11:00:38 +00:00
Paul Duffin
53606f14c3 Merge changes I831da5fa,I866916c9 am: c66769ddd9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1579441

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icae891ef2e16df3db3ac4c4d9f670cda89c5cc57
2021-02-12 10:51:38 +00:00
Ulyana Trafimovich
35bc2b0ec9 Merge "Preserve <uses-library> order in dexpreopt.config files." am: da68a045a3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1584966

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3fc1b2b35734117e5a80d65fa39c61e99b809ef4
2021-02-12 10:50:48 +00:00
Paul Duffin
c66769ddd9 Merge changes I831da5fa,I866916c9
* changes:
  Move logic for selecting the primary module into initHiddenAPI()
  Ensure that <x>-hiddenapi modules are included in hiddenapi-index.csv
2021-02-12 10:28:28 +00:00
Ulyana Trafimovich
da68a045a3 Merge "Preserve <uses-library> order in dexpreopt.config files." 2021-02-12 10:22:39 +00:00
Eric Holk
cbc000ca0a Add statsd exports to be consumed by unbundled modules am: 7529f06707 am: 442baf1b3d am: 560593e209
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1584325

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icd7bc21fcff95f4b5e58cf9466fb4327847de020
2021-02-12 04:48:34 +00:00
Eric Holk
560593e209 Add statsd exports to be consumed by unbundled modules am: 7529f06707 am: 442baf1b3d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1584325

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0ce728eb413f1fe243cfe2a772a7d021aa628e03
2021-02-12 02:20:59 +00:00
Eric Holk
442baf1b3d Add statsd exports to be consumed by unbundled modules am: 7529f06707
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1584325

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0a7ff0c17fd33319ec16ac959b45c59d40c2dee1
2021-02-12 01:44:59 +00:00
Ivan Lozano
078ba30797 Merge "rust: Use prebuilts for x86 host target." am: 05ad76b459 am: 4c4815d7c1 am: 28b2c1d879
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1581843

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If7247ee819206abab5e7f9b97ed638451a657638
2021-02-11 19:53:06 +00:00
Ivan Lozano
28b2c1d879 Merge "rust: Use prebuilts for x86 host target." am: 05ad76b459 am: 4c4815d7c1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1581843

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icd36403807e60a1be0023201d738cfd2a6a855a2
2021-02-11 19:30:47 +00:00
Eric Holk
7529f06707 Add statsd exports to be consumed by unbundled modules
This is needed first for ART to enable statsd metrics reporting, but
this will be needed by more modules as they become unbundled.

Test: build-mainline-modules.sh
Bug: 178500083
Change-Id: I5af0b8db7a24c86ffd3f34732ac747a4fc6a7a55
2021-02-11 19:02:40 +00:00
Ivan Lozano
4c4815d7c1 Merge "rust: Use prebuilts for x86 host target." am: 05ad76b459
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1581843

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I78ff4ea594310b5d7085fcad66af761d61c41cde
2021-02-11 17:57:55 +00:00
Ivan Lozano
05ad76b459 Merge "rust: Use prebuilts for x86 host target." 2021-02-11 17:39:11 +00:00
Ulya Trafimovich
65556a87d3 Preserve <uses-library> order in dexpreopt.config files.
Library order is important because it is used to construct class loader
context, which is then written into OAT/ODEX files and chacked against
class loader context constructed by PackageManager on the device. If the
orders are different, dexpreopted code is rejected.

Soong avoids using Go maps for class loader context representation
precisely for that reason. However, for the modules defined in makefiles
dexpreopt configs were serialized to JSON and unmarshaled to Go maps,
which resulted in wrong order of libraries. This CL changes Go
representation of class loader contexts imported from JSON and makes the
order stable.

Bug: 132357300
Test: lunch cf_x86_64_phone-userdebug && m && launch_cvd \
      adb wait-for-device && adb root && adb logcat \
      | grep -E 'ClassLoaderContext [a-z ]+ mismatch'
      # empty grep output, no errors
Change-Id: I15f51617f9573c0bbcb324cf2592daf719cad586
2021-02-11 16:58:51 +00:00
Paul Duffin
f75e527c2b Move logic for selecting the primary module into initHiddenAPI()
Bug: 178361284
Test: m droid
      Verified that hiddenapi files (both aggregated ones and for the
      individual modules) are not affected by this change.
      Also verified that the hiddenapi files created when using the
      prebuilts (using SOONG_CONFIG_art_module_source_build=false) are
      the same as when using the source. There is a slight difference
      in the order but otherwise identical.
Change-Id: I831da5fa41eb7668b07bbdc4dd08ec2cdb8803d0
2021-02-11 15:43:28 +00:00
Paul Duffin
e7975ff77c Ensure that <x>-hiddenapi modules are included in hiddenapi-index.csv
Adds a test that makes sure that <x>-hiddenapi modules that provide
additional annotations for the <x> boot jar module are included when
generating the hiddenapi-index.csv file.

Bug: 178361284
Test: m nothing
Change-Id: I866916c9275af17954e0634347d183228d4ddc17
2021-02-11 15:43:28 +00:00
Lev Proleev
029d6d6348 Merge "Add NNAPI AIDL interface to allowed deps" am: 56ca4e4706 am: 3cd706324f am: 645c630372
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1579440

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic7abf46e9e53ae6cbd2f4b4136b5e74bbfc8576e
2021-02-10 18:34:03 +00:00
Lev Proleev
645c630372 Merge "Add NNAPI AIDL interface to allowed deps" am: 56ca4e4706 am: 3cd706324f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1579440

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I65714886e2db1a5b97af16144813c00df8ab18c7
2021-02-10 18:02:18 +00:00
Lev Proleev
3cd706324f Merge "Add NNAPI AIDL interface to allowed deps" am: 56ca4e4706
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1579440

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie4da671f20f3fd1209468cba9aa9b0110cbf2506
2021-02-10 17:09:00 +00:00
Dario Freni
4985a53e2e [automerger skipped] Add no_op binary. am: 1c9b37e761 -s ours
am skip reason: Change-Id I8ae519da164f1f5355d4c2dfeca88a497cda7990 with SHA-1 0d3ff6d918 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/13470048

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0a78506a9e20a767aa5c71aedf1daf03847cb7cf
2021-02-10 16:53:57 +00:00
Lev Proleev
56ca4e4706 Merge "Add NNAPI AIDL interface to allowed deps" 2021-02-10 16:45:19 +00:00
Dario Freni
1c9b37e761 Add no_op binary.
Even if this binary is only used in a testing apex for dynamic common
library apex that will be removed once we have a production version
ready, we need said apex to be marked as updatable too.

Bug: 177879489
Bug: 179013728
Test: builds
Change-Id: I8ae519da164f1f5355d4c2dfeca88a497cda7990
Merged-In: I8ae519da164f1f5355d4c2dfeca88a497cda7990
(cherry picked from commit 0d3ff6d918)
2021-02-10 15:23:25 +00:00
Treehugger Robot
fbc7b966a2 Merge "Add LOCAL_LICENSE_KINDS to build/soong" am: b68036f44b am: 0a1087f291 am: 66a854d585
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1575543

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Icb7ac70ed37be73b84da59f8e1ad88daea3bfa80
2021-02-10 09:28:19 +00:00
Treehugger Robot
66a854d585 Merge "Add LOCAL_LICENSE_KINDS to build/soong" am: b68036f44b am: 0a1087f291
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1575543

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I17bbc2d510465587580cf26e55e4f65a952e198c
2021-02-10 08:30:03 +00:00
Treehugger Robot
0a1087f291 Merge "Add LOCAL_LICENSE_KINDS to build/soong" am: b68036f44b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1575543

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If59098de6ca2cb7767ebf84e6e994f8e458336ba
2021-02-10 08:02:07 +00:00
Treehugger Robot
b68036f44b Merge "Add LOCAL_LICENSE_KINDS to build/soong" 2021-02-10 07:18:29 +00:00
Bob Badour
f731275ee2 Merge "Change WTFPL and BeerWare to notice per recent change." am: c6226d668e am: 1e7c3be48a am: 954cb01b1c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1570963

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iefd5a46b43a33b775463fce510d5379a79761fd4
2021-02-10 05:17:50 +00:00
TreeHugger Robot
cb6aec829a [automerger skipped] Merge "Fix broken build" into stage-aosp-master am: 6caae707ee am: a0f3390d25 -s ours
am skip reason: Change-Id Ib909e678072ac5f2baefc7e273e89ef77b3b31ad with SHA-1 cc70391de2 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/13538311

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic924273f82b8dced05e0f30e9adff4dfe635a22c
2021-02-10 05:17:21 +00:00
Bob Badour
954cb01b1c Merge "Change WTFPL and BeerWare to notice per recent change." am: c6226d668e am: 1e7c3be48a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1570963

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibff0733195609dca5c08d20de123d44faf0d9861
2021-02-10 04:52:45 +00:00
TreeHugger Robot
a0f3390d25 Merge "Fix broken build" into stage-aosp-master am: 6caae707ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/build/soong/+/13538311

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7a0644dde6b80fee76f3943bdeba4603ed3b0c40
2021-02-10 04:52:21 +00:00
Bob Badour
1e7c3be48a Merge "Change WTFPL and BeerWare to notice per recent change." am: c6226d668e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1570963

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I602a7f46ae22d320888d2b891795c4cd8de4a3fe
2021-02-10 04:27:18 +00:00
TreeHugger Robot
6caae707ee Merge "Fix broken build" into stage-aosp-master 2021-02-10 04:14:24 +00:00
Bob Badour
b98ac88735 Merge "Allow cross-cutting dependencies like licenses." am: a3348295d4 am: c54c5770db am: 1ceaa1295c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1579112

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifc52afba3187b8a0964563ed70c17645ed401ddd
2021-02-10 04:02:34 +00:00
Treehugger Robot
2a0da80814 Merge "Remove lingering debug statement from previous submission" am: c59c512e98 am: b1f881876c am: abebf740d0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1582603

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4458278779e1e5a26e1c329a1737d67e9c48775f
2021-02-10 04:00:59 +00:00
Bob Badour
c6226d668e Merge "Change WTFPL and BeerWare to notice per recent change." 2021-02-10 03:44:26 +00:00
Bob Badour
1ceaa1295c Merge "Allow cross-cutting dependencies like licenses." am: a3348295d4 am: c54c5770db
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1579112

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I684cfc27181c698d877be341c735cfe922b24357
2021-02-10 03:42:45 +00:00
Treehugger Robot
abebf740d0 Merge "Remove lingering debug statement from previous submission" am: c59c512e98 am: b1f881876c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1582603

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifdb738562ad01834c492826178d7f708d48eb61f
2021-02-10 03:41:33 +00:00