Treehugger Robot
93ca271c21
Merge "Vendor apex sets "vndkVersion" when it uses vndk libs" am: da62908229
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2330035
Change-Id: Ie7557b723485adc600f52e5bbd585a6ce0d4721d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-12-08 03:24:16 +00:00
Jooyung Han
d045ebca4c
Vendor apex sets "vndkVersion" when it uses vndk libs
...
Vendor apex with "use_vndk_as_stable:true" sets the dependency in
"requireNativeLibs: ":vndk"". But this isn't enough because the APEX
won't work if VNDK version mismatches.
Now, when a vendor apex uses VNDK libs, "vndkVersion" is set as well in
apex_manifest so that apexd can abort the installation/staging when
device's VNDK version mimatches.
Bug: 222620439
Test: VendorApexHostTestCases
Test: built vendor apex how has "vndkVersion" field in its
apex_manifest
Change-Id: If03340c230efe854ab932cdf472c276f7646ad0c
2022-12-08 09:42:03 +09:00
Treehugger Robot
612a0e28e5
Merge "Add option to override defaultManifestVersion" am: 720e0ce5e2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2323675
Change-Id: I254fb1d934928aa069139eaf4377e84630d34bfa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-12-06 12:43:00 +00:00
Sahana Rao
16ebdfdf0f
Add option to override defaultManifestVersion
...
Add an option to override defaultManifestVersion using environment
variable. The environment variable will be used to override the apex
version locally when developing a desert release feature in
mainline-prod branch. Overriding the apex version in mainline-prod
branch allows us to install apex built in mainline-prod branch to device
running code from git_master which has a higher apex version than
mainline-prod branch.
Bug: b/233608815
Bug: b/196860838
Test: presubmit
Test: go test -v ./build/soong/apex/
Change-Id: I8ac2aae2b6b29da7f09db6edb893e0a0f0691e51
2022-12-06 07:15:44 +00:00
Treehugger Robot
1ed3a7a0f7
Merge changes Ia4016240,Iba586155 am: a36589c4ca
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2309617
Change-Id: I14b21791d36601bc832c382391b003a1e9b4cd71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-12-02 11:18:24 +00:00
Treehugger Robot
a36589c4ca
Merge changes Ia4016240,Iba586155
...
* changes:
Allow choosing which soong_build invocations to run in the debugger
Show module type in a module section of the Android-TARGET.mk
2022-12-02 10:36:07 +00:00
Jingwen Chen
9867290c71
Merge "Convert apex_available (for supported modules) to bazel tags." am: 8ec23f846d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2321580
Change-Id: I813778da920431fe7a46384782ffbfc19e435444
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-12-02 07:41:55 +00:00
Sasha Smundak
5c4729df93
Show module type in a module section of the Android-TARGET.mk
...
The first line of each section will be
```
include $(CLEAR_VARS) # <module type>
...
```
Bug: 257037252
Test: treehugger
Change-Id: Iba586155b682fe4e1e5817d8397eda8f9d9c8789
2022-12-01 21:12:11 -08:00
Jingwen Chen
c4c34e1eab
Convert apex_available (for supported modules) to bazel tags.
...
The tags will then be read by an aspect applied from apex attributes to
validate that the deps are explicitly opt-in to the appropriate apex.
The semantics of this is the same as the Soong apex_available property.
This also adds the "base_apex_name" attr to override_apex conversion so
that apex_available checks continue to work on the non-Google and non-Go
apex names.
Test: presubmits
Fixes: 218841706
Change-Id: I19b3637da9aa47573b252d74f62b601fbdc3784d
2022-12-01 06:25:25 +00:00
Anton Hansson
912316068b
Ignore native bridge archs for apex selection am: 805e0a53ef
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2318630
Change-Id: I0d655c0efb51396423aae1836d32d104ac25393f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-29 17:12:52 +00:00
Anton Hansson
805e0a53ef
Ignore native bridge archs for apex selection
...
This leads to an arm64 apex being used on a device that is mixed
x86_64 with nativebridge=arm64. A device like that doesn't appear
to work with arm64 binaries. For example, the boringssl-self-check
binary crashes on boot.
Bug: 260115309
Test: unit test
Test: boot emulator with this combination
Change-Id: Ic4a91974290a05b1799f755fcf52ef226d68f4c2
2022-11-29 12:56:37 +00:00
Treehugger Robot
6ba2a5b746
Merge "Allow stubs implementation to be omitted" am: 378124baf1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2301917
Change-Id: I6fb94bba4db679feb806ff8712d21eb7191b8b1c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-24 11:46:32 +00:00
Alan Stokes
73feba3330
Allow stubs implementation to be omitted
...
When defining a stubs library, allow specifying that the
implementation library does not need to be installed. This allows for
cases where the implementation is deployed in some non-standard way -
e.g. inside a Microdroid virtual machine.
Without this, we get build errors like: "TARGET module
com.android.compos requires non-existent TARGET module: libvm_payload".
Default behavior is unchanged. The change is protected by an allowlist
to limit usage to the immediate use case.
Bug: 243512108
Test: builds; soong tests pass
Test: Remove allowlist, see build failure
Change-Id: Iaae75f2e93b842f5944a7518cc95069d62c5a638
2022-11-22 16:00:02 +00:00
Treehugger Robot
7db19f9485
Merge "Make htmlGzNotice an internal variable instead of apexBundle field." am: 3d99948e29
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2305471
Change-Id: I58654133c2d27b6d50dbd3716388e68c92233b17
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-16 23:51:23 +00:00
Treehugger Robot
3d99948e29
Merge "Make htmlGzNotice an internal variable instead of apexBundle field."
2022-11-16 23:19:44 +00:00
Ulya Trofimovich
545835d5e9
Merge "Do not assume that boot image profile exists when building ART apex." am: a672771df9
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2304851
Change-Id: Icec9811bdfee0183f46992a59a0f0899f5bbe9ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-16 19:54:15 +00:00
Ulya Trofimovich
a672771df9
Merge "Do not assume that boot image profile exists when building ART apex."
2022-11-16 19:36:31 +00:00
Jingwen Chen
4a9630b4ad
Make htmlGzNotice an internal variable instead of apexBundle field.
...
It's not read outside of the function / action generation logic, so keep
it inside the function.
Test: presubmits
Fixes: 190817312
Change-Id: I0626e6c86adc584abb2a251cbc7ffb1bec2c7f59
2022-11-16 19:12:35 +00:00
Ulya Trafimovich
f5c548db17
Do not assume that boot image profile exists when building ART apex.
...
If the apex is built without boot images, profile may not exist.
Test: treehugger
Change-Id: I0824100d0ac38f4b7b71b302b401a0c66c3ff3cf
2022-11-16 14:59:05 +00:00
Wei Li
788cfa3bd4
Add support of <APEX>-installed-files.txt in mixed build. am: 78c07de1dc
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2293858
Change-Id: I149341ca99e071667dd76e6ca947cf8a0a2e5f68
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-12 03:55:25 +00:00
Wei Li
78c07de1dc
Add support of <APEX>-installed-files.txt in mixed build.
...
Bug: 239084750
Test: CIs
Change-Id: Ie3823d1a620c3924111e71aa97df727565261c98
2022-11-11 22:46:33 +00:00
Prerana Patil
61ae375077
Merge "Revert "Don't add flattened files apex as dependencies of an image apex"" am: 62253d193b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2295898
Change-Id: Ib5464e80ca8375778957e0bf59fb5068011c9ba6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-09 20:53:05 +00:00
Prerana Patil
62253d193b
Merge "Revert "Don't add flattened files apex as dependencies of an image apex""
2022-11-09 20:29:03 +00:00
Prerana Patil
b1896c88d5
Revert "Don't add flattened files apex as dependencies of an image apex"
...
This reverts commit b81814a7b4
.
Reason for revert: breaking build 9271471
Change-Id: I1876f45b79779d7e8ec46a78bf71bf7fec09e62b
2022-11-09 18:14:34 +00:00
Liz Kammer
50c74643c7
Connect base.zip to mixed builds am: 303978dcd2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2288162
Change-Id: Iff9e5f7cf0570b0062daf286a3ac9f85f41a3218
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-09 18:04:39 +00:00
Liz Kammer
303978dcd2
Connect base.zip to mixed builds
...
Test: go test soong tests
Test: mixed_droid
Change-Id: Iaf1fbd1e7cde63892b01a9c9f4cd29ae69e2d6e3
2022-11-09 08:16:54 -05:00
Jingwen Chen
112492c0ba
bazel apex: Add mixed builds support for <module>_using.xml file. am: 1ec7785ec5
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2290033
Change-Id: If1c73659efde6100b147a7ca416760fd4ee0312e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-09 09:24:07 +00:00
Jingwen Chen
1ec7785ec5
bazel apex: Add mixed builds support for <module>_using.xml file.
...
This file contains the java APIs parsed by the 'dexdeps' tool within the gen_java_usedby_apex.sh.
Bug: 239084755
Fixes: 239084755
Test: presubmits
Change-Id: Ia271783a6be3ea3a343481306cde1aaba2166e88
2022-11-09 06:30:03 +00:00
Treehugger Robot
f0adbcd03d
Merge "Don't add flattened files apex as dependencies of an image apex" am: 926d00c2ad
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2285522
Change-Id: Icb3b05caa4ff658e93ac30039e9375b4f9934c8b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-09 05:38:53 +00:00
Treehugger Robot
926d00c2ad
Merge "Don't add flattened files apex as dependencies of an image apex"
2022-11-09 05:00:29 +00:00
Wei Li
644c9fea7f
Merge "Add support of <APEX>_backing.txt in mixed build." am: 9b9fe02960
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2290700
Change-Id: Ib470b91244d6d0ee29500d01beac2878064fd7ff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-08 23:29:34 +00:00
Wei Li
cc73a05670
Add support of <APEX>_backing.txt in mixed build.
...
Bug: 239081456
Test: CIs
Change-Id: I8a8a5e606d5b1bc19294fc92cd469e7aa01cdb43
2022-11-08 12:00:42 -08:00
Jingwen Chen
e3716ca39e
bazel apex: Add mixed builds support for <module>_using.txt file. am: 0c9a276ded
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2287093
Change-Id: I27b3b9d70ac36a99e00abbe840efbd1581f4f75e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-08 02:51:18 +00:00
Jingwen Chen
0c9a276ded
bazel apex: Add mixed builds support for <module>_using.txt file.
...
Test: presubmits
Change-Id: I7203fcccb09f6c93e702550ffa47a4029c3351dd
2022-11-07 23:16:12 +00:00
Liz Kammer
22f7ad00ef
Merge "Add apex_test for mixed builds" am: f1c70ed5ad
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2288161
Change-Id: Ic48f6d8e0e15ce4c474810b99cfda4def165aa38
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-07 22:28:45 +00:00
Liz Kammer
0e255ef6e6
Add apex_test for mixed builds
...
Test: go test soong tests
Change-Id: I33327e1fe7d6a4bbf32890d9fbd5453c28a9c5b1
2022-11-07 11:11:37 -05:00
Treehugger Robot
5aa7aca857
Merge "Remove unnecessary TestMain()" am: 9fa8a2e220
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2288158
Change-Id: Ia8a4d2e0da4e5a542dc8cb7e242642da68d68032
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-05 01:15:56 +00:00
Treehugger Robot
9fa8a2e220
Merge "Remove unnecessary TestMain()"
2022-11-05 00:30:04 +00:00
Liz Kammer
fdb6321d23
Remove unnecessary TestMain()
...
Test: go test Soong tests
Change-Id: I2a8710361b1a32d71417b6c7bbc19e87fa8b36ae
2022-11-04 16:24:29 -04:00
Cole Faust
b81814a7b4
Don't add flattened files apex as dependencies of an image apex
...
The image apex does not need all the files that make up a flattened
apex.
Bug: 254205429
Test: go tests
Change-Id: Iff05f2d01f11397bc9e9bf31868112575268969b
2022-11-04 11:05:49 -07:00
Colin Cross
1c9d4dc64d
Merge "Add support for per-arch configuration in apex_defaults" am: a493e5ff91
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2266192
Change-Id: I5fbededf29db88b32585a079d4819a2d0e33069a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-03 14:38:09 +00:00
Colin Cross
a493e5ff91
Merge "Add support for per-arch configuration in apex_defaults"
2022-11-03 14:00:45 +00:00
Colin Cross
3958986725
Merge "Add exclude_* properties to apex arch-specific properties" am: a3599abc75
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2283143
Change-Id: I79bc652a8f32cbd5bc9ea1c6549b75750dd4d1be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-03 01:28:47 +00:00
Colin Cross
70572ed01e
Add exclude_* properties to apex arch-specific properties
...
The libcronet prebuilt JNI library doesn't exist for riscv64 yet.
Add exclude_* properties to apex arch-specific properties so that
the libcronet dependency can be excluded from the apex that contains
when the arch is riscv64 until it exists for riscv64.
Test: TestApexWithArch
Change-Id: Ic395a077824f0f60b90178530fbfae8a96b3782f
2022-11-02 14:31:46 -07:00
Colin Cross
cb29876dcb
Merge "HACK: use arm64 apex prebuilts for riscv64" am: cc7a5dcf44
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2281571
Change-Id: I73464238cb8b4beeb60402096c789adea361ab0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-11-01 23:05:10 +00:00
Colin Cross
abacbe8436
HACK: use arm64 apex prebuilts for riscv64
...
There are no riscv64 apex prebuilts, which breaks the build when
provenance_metadata singelton tries to run a tool on all the input
apexes that don't exist. Hack it to provide the arm64 apex for now
if no riscv64 apex is specified, which will allow the build to pass.
Test: lunch aosp_riscv64-userdebug && m droid
Change-Id: Ic39936539803615ea4b7f817daf7b59ab7c40e7e
2022-11-01 19:13:17 +00:00
Wei Li
60c7023976
Merge "Support new attributes added in ApexInfo in mixed build." am: aff9a46ca5
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2271722
Change-Id: I9bef770a5e86bb14518abbbbb95a1d410f195b5d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-29 02:01:28 +00:00
Wei Li
32dcdf9038
Support new attributes added in ApexInfo in mixed build.
...
Bug: 243748589
Test: CI
Change-Id: I6c9869464fe91ebf62811d92cf4403f2c7c9e8a9
2022-10-28 14:06:57 -07:00
Yu Liu
99416d29a6
Merge "Support apex_test." am: 2ff53da9f8
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2265965
Change-Id: I13c1017e5c91f83c649933c0cdf33a38c0f225ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2022-10-26 17:07:57 +00:00
Yu Liu
4c212ce058
Support apex_test.
...
Bug: 249744489
Test: Manual and unit test.
Change-Id: I866debf7ffee54a0f4649b5e5425a8e3cc3042a1
2022-10-24 10:35:12 -07:00