Commit Graph

71353 Commits

Author SHA1 Message Date
Treehugger Robot
b84435c0ab Merge "Revert "Add BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN"" into main 2023-08-23 06:34:30 +00:00
Treehugger Robot
d971111a64 Merge "Add apex compat symlinks to LOCAL_SOONG_INSTALL_SYMLINKS" into main am: df6610869a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2721815

Change-Id: Ic3d35b769322f38b000c7278f54a0ddb1971f2fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-23 05:56:36 +00:00
Treehugger Robot
df6610869a Merge "Add apex compat symlinks to LOCAL_SOONG_INSTALL_SYMLINKS" into main 2023-08-23 05:24:48 +00:00
Jihoon Kang
f51ec393fe Denylist reverse dependency of tradefed
aosp/2719934 lists tradefed as libs, causing bp2build failure as the
module is not converted to bazel. Thus, denylist the module to resolve
bp2build failure

Test: TH & ABTD
Bug: 297039097
Change-Id: I41f2673636a7564fd6fb75ae97b93613f9098365
2023-08-23 05:24:02 +00:00
Jooyung Han
8d4a1f03b0 apex: Remove host support
Since we no longer support "zip" APEX, we don't need "host" support.

For example, we don't need go/python binary support.

Bug: 279835185
Test: m
Change-Id: I6e8d2b205e42662f31866dc9ac7507524effd144
2023-08-23 14:01:21 +09:00
Jooyung Han
a0503a51a0 apex: Remove apexPackagingMutator
Bug: 279835185
Test: m
Change-Id: I2f5293a5a86d2ea66c1107659abc2e746fe2775e
2023-08-23 14:01:17 +09:00
Jooyung Han
06a8a1c384 apex: Remove 'zip' apex support
zip apex is no longer supported.

Bug: 279835185
Test: m
Change-Id: I651b0dc4e0efe766f61e97b1e5dd263e0ab74102
2023-08-23 14:01:13 +09:00
Treehugger Robot
8653ac40e1 Merge "Denylist prebuilts_etc modules to resolve bp2build failure" into main am: 15aed3b882
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2721995

Change-Id: I69859daa80e695e3b2ebec3962e19c5da20b77cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-23 03:27:14 +00:00
Treehugger Robot
f846ddbfba Merge "Denylist "bouncycastle-test-lib" to resolve build failures" into main am: 49275e73cc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2721953

Change-Id: I79724ed2eccffac929b73a15cb37e8fc36b25cd1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-23 03:27:11 +00:00
Jason Wu
6d8d44af24 bp2build converter for sh_test followup
Test: m nothing
Bug: 283486885
Change-Id: Ib8229e75dfcd9fd251fb1a83485cf5f88bdc3afb
2023-08-22 23:07:33 -04:00
Treehugger Robot
15aed3b882 Merge "Denylist prebuilts_etc modules to resolve bp2build failure" into main 2023-08-23 02:47:09 +00:00
Treehugger Robot
49275e73cc Merge "Denylist "bouncycastle-test-lib" to resolve build failures" into main 2023-08-23 02:47:09 +00:00
Treehugger Robot
b4e3a1e81c Merge "Skip py2-cmd tests on Mac" into main am: 344505951c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2722573

Change-Id: I5f942b710b0b69ad3a666550fa542fca50e745ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-23 02:09:30 +00:00
Inseob Kim
3a61b6edae Revert "Add BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN"
Revert submission 2715179-BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN

Reason for revert: not needed

Reverted changes: /q/submissionid:2715179-BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN

Change-Id: I3bc8f2006b2f82159ae308467ea74ad62a60ec6f
2023-08-23 02:07:40 +00:00
Treehugger Robot
344505951c Merge "Skip py2-cmd tests on Mac" into main 2023-08-23 01:20:04 +00:00
Treehugger Robot
af1d58b3a8 Merge "Use vndk snapshot libraries txt files if exist" into main am: 1aa6493fc4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2719234

Change-Id: I2a244a41300f86ae396e3238f20b5f2bba02015f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-23 00:57:02 +00:00
Treehugger Robot
1aa6493fc4 Merge "Use vndk snapshot libraries txt files if exist" into main 2023-08-23 00:25:53 +00:00
Dan Willemsen
b1094d602b Temporarily disable python precompilation for py3.11
The precompilation logic assumes that the source tree matches the python
prebuilts, which is not necessarily true. This very much breaks during
major version upgrades, so just disable precompilation temporarily while
we generate new prebuilts.

Bug: 278602456
Test: treehugger
Change-Id: Idb206bb1d971e8c0fa556c75419623c3bc457898
2023-08-22 19:09:44 -04:00
Dan Willemsen
b2d1cf93c7 Skip py2-cmd tests on Mac
Mac no longer builds python2

Test: prebuilt/build-tools/build-prebuilts.sh on Mac
Change-Id: I5857ba7ec023021e660e86df3573e4b6e3d1902b
2023-08-22 18:41:25 -04:00
Mark White
a15790ac1e java_library support for building headers-only
Flag for java_library modules to build just the Turbine headers and
skip building an impl jar.

Test: go test java
Bug: 289776578
Change-Id: Iad0babf951710476bc32df93c25d17065a14ab84
2023-08-22 21:29:05 +00:00
Colin Cross
c2a62d40fa Strip zip64 extras after writing local header when copying
writeHeader generates zip64 extras that are correct for the local
header, but incorrect for the central directory header.  Strip the
extras again after writeHeader so that the central directory header
extras are recreated correctly.

Test: Zip2Zip64
Bug: 296314205
Change-Id: I1ca6a5745a9f97426df6c111db444facdfa25b2e
2023-08-22 14:24:25 -07:00
Jihoon Kang
49defa67fe Denylist prebuilts_etc modules to resolve bp2build failure
Recently introduced prebuilts_etc modules that possess identical name
and src properties fail with `self-edge` error, thus denylist the two
modules.

Test: ABTD
Bug: 297039097
Change-Id: I430cdb20e4a20985f35abff05d3335959317b509
2023-08-22 20:34:49 +00:00
Cole Faust
62d430381b Merge "Add transitive shared libs to LOCAL_SHARED_LIBRARIES for rust modules" into main am: 1311c1af27
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2715849

Change-Id: I694fccbd20fcbb87952977a8c1f019cfcba6ddc1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-22 19:57:41 +00:00
Cole Faust
1311c1af27 Merge "Add transitive shared libs to LOCAL_SHARED_LIBRARIES for rust modules" into main 2023-08-22 19:26:14 +00:00
Cole Faust
d22afe96d7 Add apex compat symlinks to LOCAL_SOONG_INSTALL_SYMLINKS
We want to make FULL_SYSTEMIMAGE_DEPS more accurate so that we can
remove the need for `m installclean`.

Currently, the compat symlinks are installed by adding them as
dependencies of other installed files. Doing this doesn't end up
propagaing the compat symlinks all the way to FULL_SYSTEMIMAGE_DEPS.

Add them to LOCAL_SOONG_INSTALL_SYMLINKS, which will cause them to
be propagated to FULL_SYSTEMIMAGE_DEPS.

Bug: 205632228
Test: Full build with a change to delete files not in FULL_SYSTEMIMAGE_DEPS from the staging dir
Change-Id: Idc7fc0a0dbf7c8ac3f0628c16413cd1df69a7821
2023-08-22 11:59:07 -07:00
Jihoon Kang
b06d8a51ea Denylist "bouncycastle-test-lib" to resolve build failures
aosp/2711135 adds `bouncycastle-test-lib` module, which is a
reverse dependency of the denylisted `bouncycastle`, causing
bp2build failure. This change denylists the module to resolve the
failure.

Test: TH
Bug: 297039097
Change-Id: Idbb8f5a17bd5727c53686ba16fe3ff1215e0d0ed
2023-08-22 18:30:05 +00:00
Tomislav Novak
f734f00898 soong: HWASan exclude path support
Adds the ability to centrally disable HWASan for multiple modules when
building with SANITIZE_TARGET=hwaddress. Soong version of the patchset.

HWASan takes precedence over CFI and several other sanitizers that it's
incompatible with[1], which can be problematic for modules that require
those sanitizers (e.g. those that depend on vendor prebuilts where only
sanitized variants are provided). This patch adds an easy way to disable
HWASan for such modules while still keeping it globally enabled.

Test: build with HWASAN_EXCLUDE_PATHS set and verify with readelf that
      relevant modules have no references to __hwasan symbols

[1] bb31ca1168/core/config_sanitizers.mk (236)

Change-Id: I5824f71f2a400c64cde29e2c7afdd167d851d337
2023-08-22 18:15:14 +00:00
Yu Liu
d136a6aa01 Support dynamic config file for cc_test.
Bug: 280028705
Test: local build
Change-Id: Ife445f6a7642bf08651ed7a9501a60950f05f9c4
2023-08-22 17:33:20 +00:00
Motomu Utsumi
44591557f4 Add package/modules/Connectivity bpf_headers path
Following CLs will move frameworks/libs/net to packages/modules/Connectivity.
This CL is a preparation for that.

Bug: 296014682
Test: m
Change-Id: Ie6483d1e5dfbf6c4745c10d3bb031344368c8c8f
2023-08-22 19:24:24 +09:00
Jeongik Cha
208785ebe0 Merge "Reland "Make glob output include product name"" into main am: 962bcdb18e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2693106

Change-Id: I774ffb1c052ef45e64036a6edb318bf0f68bd212
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-22 05:19:21 +00:00
Jeongik Cha
962bcdb18e Merge "Reland "Make glob output include product name"" into main 2023-08-22 04:41:43 +00:00
Chun-Yi Lee
adafb24027 Merge "Revert "Add apex compat symlinks to LOCAL_SOONG_INSTALL_SYMLINKS"" into main am: 516a188206
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2720713

Change-Id: I4c20d486f27ee4350732d647495ed42efc0ee017
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-22 02:56:57 +00:00
Treehugger Robot
c17e5b8ac8 Merge "Add BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN" into main am: 4f53e94198
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2714999

Change-Id: I897917496fdb3acc0edc52facdff1d7d03a8fdde
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-22 02:55:58 +00:00
Chun-Yi Lee
516a188206 Merge "Revert "Add apex compat symlinks to LOCAL_SOONG_INSTALL_SYMLINKS"" into main 2023-08-22 02:11:23 +00:00
Treehugger Robot
4f53e94198 Merge "Add BUILD_BROKEN_VENDOR_SEAPP_USES_COREDOMAIN" into main 2023-08-22 02:09:45 +00:00
Chun-Yi Lee
0a693c5b5c Revert "Add apex compat symlinks to LOCAL_SOONG_INSTALL_SYMLINKS"
Revert submission 2718295-colefaust_track_apex_compat_symlinks

Reason for revert: To validate if this change is causing the build breakage.

Reverted changes: /q/submissionid:2718295-colefaust_track_apex_compat_symlinks

Change-Id: I1896530219cf984efdf9ca7f4b14d8784367f242
2023-08-22 01:18:45 +00:00
Justin Yun
74217d9177 Use vndk snapshot libraries txt files if exist
For the trunk stable next build, we have duplicated modules for the
vndk libraries txt files: one from the generated list, the other from
the prebuilt vndk snapshot files.
If the current vndk version provided by the vndk snapshots, use the
txt file from the prebuilt vndk snapshot.

Bug: 296777146
Test: lunch cf_x86_64_phone-next-userdebug && m nothing
Change-Id: I18bd7b7c77bd37c26c5e0b15cb020a59d50f4f2f
2023-08-22 10:11:52 +09:00
Krzysztof Kosiński
4353fab901 Enable -Wgnu-designator
Bug: 296606895
Test: presubmit
Change-Id: I2ef67807fef8376ea08f65f60439b7c3b6f73e83
2023-08-21 23:55:44 +00:00
Cole Faust
24935919a1 Merge "Add apex compat symlinks to LOCAL_SOONG_INSTALL_SYMLINKS" into main am: f36d157ce7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2718295

Change-Id: I1250f20a99766b5adf244700c1dabc36f36eeb28
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-21 22:15:24 +00:00
Cole Faust
f36d157ce7 Merge "Add apex compat symlinks to LOCAL_SOONG_INSTALL_SYMLINKS" into main 2023-08-21 21:54:37 +00:00
Treehugger Robot
8224ccfa09 Merge "Handle proto.include_dirs in bp2build for CC" into main am: 4147e5c1d1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2711114

Change-Id: Id41a9f2d4e0acbfce0a1a81041fdeeeb9ef394e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-21 21:08:33 +00:00
Treehugger Robot
5fa60b81d7 Merge "Document why certain warnings are disabled." into main am: 0415285596
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2717854

Change-Id: I6b3b35865855cfe1aec508e3b6e816db9c5ef850
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-21 21:07:24 +00:00
Treehugger Robot
0ef92f4dde Merge changes I8ee7e5c7,Ibfcd2bc5 into main am: 97048ab022
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2719834

Change-Id: I79eb54f666dad6cfa763ddcd9a81ade9e5cd2336
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-21 21:07:11 +00:00
Treehugger Robot
4147e5c1d1 Merge "Handle proto.include_dirs in bp2build for CC" into main 2023-08-21 20:43:02 +00:00
Treehugger Robot
0415285596 Merge "Document why certain warnings are disabled." into main 2023-08-21 20:42:00 +00:00
Treehugger Robot
97048ab022 Merge changes I8ee7e5c7,Ibfcd2bc5 into main
* changes:
  Add bazelbuild-rules_rust and tinyjson to soong_integration_tests
  Add bazelbuild-rules_cc to soong_integration_tests
2023-08-21 20:31:58 +00:00
Elliott Hughes
fd1157fdaa Merge "Switch to toybox dd." into main am: b98da95f1b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1192988

Change-Id: I4ffb7a0e41631b77f568412a8b3821d1dfbd8bff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-21 19:59:29 +00:00
Elliott Hughes
b98da95f1b Merge "Switch to toybox dd." into main 2023-08-21 19:30:29 +00:00
Yu Liu
8ca82ba45d Merge "Fix a bug where the default AndroidTest.xml was not picked up." into main am: ae2f16e9f7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2717344

Change-Id: I54bee6048e9d3f6a4d36c5fc4883bce7d579d28a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-21 19:25:21 +00:00
Yu Liu
ae2f16e9f7 Merge "Fix a bug where the default AndroidTest.xml was not picked up." into main 2023-08-21 18:44:37 +00:00