Commit graph

58759 commits

Author SHA1 Message Date
Alix Espino
4479c0fd9d Merge "deletion of clang_cflags & clang_asflags from Soong" am: 68eeffbc40 am: cd346e6757
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2154033

Change-Id: I226c9b8bbc20a5487112be9b378ce82ab320f6cb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-12 17:18:55 +00:00
Alix Espino
cd346e6757 Merge "deletion of clang_cflags & clang_asflags from Soong" am: 68eeffbc40
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2154033

Change-Id: I2259a420a0bd89197d8cb3a7ff6befabb9d4f110
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-12 15:40:15 +00:00
Alix Espino
68eeffbc40 Merge "deletion of clang_cflags & clang_asflags from Soong" 2022-09-12 15:11:20 +00:00
Sam Delmerico
ea13cbadd0 Merge "add jacocoagent by default to Java modules" am: 43c0eb17ae am: 7fd3c3b1f9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2208216

Change-Id: I76bfac4bf1c9848190e47e7a0e3163a00185ba45
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-12 15:01:46 +00:00
Alix Espino
af8abbfc8b Merge changes I82d3a384,I3b03f0a3 am: c0cca3f4e1 am: 1016dedeaa
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2137954

Change-Id: I7cfad92c4713ec18e2022aa8f74374eaa63df687
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-12 15:01:36 +00:00
Sam Delmerico
7fd3c3b1f9 Merge "add jacocoagent by default to Java modules" am: 43c0eb17ae
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2208216

Change-Id: Iac446378ae141ed6712f77a70b138ad730403586
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-12 14:03:47 +00:00
Alix Espino
1016dedeaa Merge changes I82d3a384,I3b03f0a3 am: c0cca3f4e1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2137954

Change-Id: I23fbffd830593ccbf06a6ff68cfaeee7b2ba814d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-12 14:03:36 +00:00
Sam Delmerico
43c0eb17ae Merge "add jacocoagent by default to Java modules" 2022-09-12 13:32:09 +00:00
Alix Espino
c0cca3f4e1 Merge changes I82d3a384,I3b03f0a3
* changes:
  product_variables srcs in prebuilt_etc
  refactoring build_conversion.go to remove panic
2022-09-12 13:31:46 +00:00
Jingwen Chen
8f8ac0edaf Merge "Allowlist more modules under the adb package." am: 3c0c2db93a am: 052901988c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2213297

Change-Id: I03e8165daeaa21eb03806ec806b51a24e4be2125
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-12 05:49:34 +00:00
Jingwen Chen
052901988c Merge "Allowlist more modules under the adb package." am: 3c0c2db93a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2213297

Change-Id: I37bd46e1f711633c2dd72c4d51d2e2adb6d52e62
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-12 05:20:12 +00:00
Jingwen Chen
3c0c2db93a Merge "Allowlist more modules under the adb package." 2022-09-12 04:52:20 +00:00
Treehugger Robot
21fb4c5a78 Merge "Don't close file descriptors when starting python program" am: 797aa42e28 am: 27db0b2761
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2213921

Change-Id: I517201856d35e73f5092ff7a01a7d0a000b65b78
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-10 02:00:04 +00:00
Treehugger Robot
27db0b2761 Merge "Don't close file descriptors when starting python program" am: 797aa42e28
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2213921

Change-Id: I01423e38f681ff09b82a713f9b56767e1d6a331c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-10 01:30:34 +00:00
Treehugger Robot
797aa42e28 Merge "Don't close file descriptors when starting python program" 2022-09-10 00:54:48 +00:00
Treehugger Robot
b57956075f Merge "[memtag-stack] work around stack limit in lld" am: c4fe27e907 am: dbb097bb74
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2213117

Change-Id: Id3cb3b78413d5cac73c89058533f2924f359caf9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-10 00:37:04 +00:00
Treehugger Robot
dbb097bb74 Merge "[memtag-stack] work around stack limit in lld" am: c4fe27e907
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2213117

Change-Id: I08ccf0e9911658f9884ded4e921587d09926cb86
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-10 00:06:52 +00:00
Treehugger Robot
c4fe27e907 Merge "[memtag-stack] work around stack limit in lld" 2022-09-09 23:38:06 +00:00
Vinh Tran
06f5d7d697 Merge "Convert aidl.export_aidl_headers in cc library to Bazel" am: c3d86d6bf0 am: c5ceefce19
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2198881

Change-Id: Ia5818ce02c0e36286b7fc4e42f60420f2b52a3b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 23:27:19 +00:00
Vinh Tran
c5ceefce19 Merge "Convert aidl.export_aidl_headers in cc library to Bazel" am: c3d86d6bf0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2198881

Change-Id: I1750e820bff268051138b1035bb055c7c24e2c9a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 22:56:43 +00:00
Sam Delmerico
7532d1cf36 Merge "Revert "Revert "add bazel AIDL examples to bp2build""" am: df96fdd5b6 am: 8b7f702dad
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2199860

Change-Id: Ia316e8383cdf8ed2c8de3b7fcc8144b31635585f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 22:28:32 +00:00
Vinh Tran
c3d86d6bf0 Merge "Convert aidl.export_aidl_headers in cc library to Bazel" 2022-09-09 22:26:41 +00:00
Sam Delmerico
8b7f702dad Merge "Revert "Revert "add bazel AIDL examples to bp2build""" am: df96fdd5b6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2199860

Change-Id: I159208065a45d6e60cb8b7a36303aac19e160972
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 22:00:27 +00:00
Sam Delmerico
df96fdd5b6 Merge "Revert "Revert "add bazel AIDL examples to bp2build""" 2022-09-09 21:38:33 +00:00
Florian Mayer
f79b210ddf [memtag-stack] work around stack limit in lld
Change-Id: Iee4a5ba9f9789f684d78e232078e36898e0c16d9
2022-09-09 14:24:11 -07:00
Alix
1879c68261 deletion of clang_cflags & clang_asflags from Soong
Clang_cflags and clang_asflags are depecrated.
Set up BUILD_BROKEN flags so partners can bypass errors
from using them

Bug: 226636335
Test: m nothing & treehugger
Change-Id: Ic1d90b72decc4c6c1f7e6dda95a2c56ab2c26d86
2022-09-09 21:03:34 +00:00
Alix
bbfd538326 product_variables srcs in prebuilt_etc
bp2build conversion handles product_variable srcs

bug: 228353067
Test: prebuilt_etc_conversion_test.go
Change-Id: I82d3a384ee14d4e981d502dd9eb824c87d5ae2c7
2022-09-09 20:52:09 +00:00
Sam Delmerico
1e3f78f866 add jacocoagent by default to Java modules
On coverage builds, R8 will fail to properly optimize and fail the build
if ignore_warnings: false, because jacoco injects dependencies on
jacocoagent classes, but the jacocoagent library is not part of the
classpath libraries passed in to R8 in its arguments.

Instead we can add jacocoagent as a libs dependency for these modules so
that it will get pulled into the r8 flags.

Bug: 243903417
Test: m
Change-Id: Icc24cc260b896fc800125a0318308d823ccf7a83
2022-09-09 16:50:38 -04:00
Treehugger Robot
09872407b5 Merge "Fix gen_notice init to support arch and dist." am: 5aa5dc4121 am: a17300b55a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2212476

Change-Id: Id948d67473f25bc8401235819110f3da1de8a80f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 20:35:31 +00:00
Chih-hung Hsieh
7d05fbeb61 Merge "Prepare to build clang-r468909" am: 2c3bb705e0 am: f0e6d77f75
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2190384

Change-Id: I12266e49c115125288584e1115474cbcbb581584
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 20:35:05 +00:00
Alix
94e2603ab7 refactoring build_conversion.go to remove panic
Returning errors throughout instead of calling panic()
Errors will be more useful for testing

Test: bp2build tests
Change-Id: I3b03f0a30e7a80878e91c7f0e2df5a94d9d6b780
2022-09-09 20:25:51 +00:00
Vinh Tran
fde57eb9d1 Convert aidl.export_aidl_headers in cc library to Bazel
Export/not aidl headers aren't fully properly functional until b/239311679 is fixed.

Test: go test
Bug: 243023967
Change-Id: I33ec9a591b4bc53aa0aa95d099159cb0a79c39cb
2022-09-09 16:02:51 -04:00
Treehugger Robot
a17300b55a Merge "Fix gen_notice init to support arch and dist." am: 5aa5dc4121
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2212476

Change-Id: Ia6bd7c412f38968d9530b0edbead4a7109786773
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 19:49:09 +00:00
Chih-hung Hsieh
f0e6d77f75 Merge "Prepare to build clang-r468909" am: 2c3bb705e0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2190384

Change-Id: I3b423ce8917c03128474d9659eae64c21a1364c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 19:48:49 +00:00
Treehugger Robot
5aa5dc4121 Merge "Fix gen_notice init to support arch and dist." 2022-09-09 19:34:06 +00:00
Chih-hung Hsieh
2c3bb705e0 Merge "Prepare to build clang-r468909" 2022-09-09 19:15:49 +00:00
Treehugger Robot
7264542611 Merge "Work around stack frame size for memtag-stack" am: 383e29bc12 am: e5fc44e7c8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2212777

Change-Id: I8c971d3c1473e93584f7066f651c97eb13db33b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 18:30:22 +00:00
Steven Moreland
cc5250c2ab Merge "FailIfNoMatchingErrors specify using regex" am: 7ae3a3c170 am: d2c7b8405f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2198646

Change-Id: I50471fb0f5b89c2ae92d304cb1bdca4b3a816838
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 18:29:44 +00:00
Treehugger Robot
e5fc44e7c8 Merge "Work around stack frame size for memtag-stack" am: 383e29bc12
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2212777

Change-Id: I86318d306918180e42ba6549e9ad2064805c83d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 17:59:45 +00:00
Steven Moreland
d2c7b8405f Merge "FailIfNoMatchingErrors specify using regex" am: 7ae3a3c170
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2198646

Change-Id: I38ddb455b6ead411fbe95b8ff6920c4549f28bc2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 17:58:41 +00:00
Treehugger Robot
383e29bc12 Merge "Work around stack frame size for memtag-stack" 2022-09-09 17:46:45 +00:00
Steven Moreland
7ae3a3c170 Merge "FailIfNoMatchingErrors specify using regex" 2022-09-09 17:27:23 +00:00
Cole Faust
d02ca056a3 Don't close file descriptors when starting python program
Python programs run via a wrapper script. That wrapper script
can be started with open file descriptors, for example by using
the <(echo foo) syntax in bash. The shouldn't be closed when
starting the real script.

Bug: 203436762
Test: Presubmits
Change-Id: Ib20450f713b15c8a5527d1e433bfd9635cead85f
2022-09-09 10:27:15 -07:00
Vinh Tran
163f197f3c Merge "Convert av-types-aidl aidl_interface to Bazel" am: 095a1af1a1 am: e4b7867550
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2200819

Change-Id: Ifa21f79b05f4f1b8edaf03046c9c9f0c27e507dc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 15:32:09 +00:00
Vinh Tran
e4b7867550 Merge "Convert av-types-aidl aidl_interface to Bazel" am: 095a1af1a1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2200819

Change-Id: I6464dbeaae7e3c66b462c86640be4c4a45c9860e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 15:02:41 +00:00
Vinh Tran
095a1af1a1 Merge "Convert av-types-aidl aidl_interface to Bazel" 2022-09-09 14:45:22 +00:00
Jingwen Chen
426efba5f0 Allowlist adbd_test. am: d4a0b1f63c am: 52acb2e8d0
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2213296

Change-Id: I4676f624f20e2a932259721a6185fe01e7374515
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 13:43:55 +00:00
Jingwen Chen
52acb2e8d0 Allowlist adbd_test. am: d4a0b1f63c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2213296

Change-Id: I6286dd76b1029ae73c72643f7af0e1d1fcb91690
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-09 13:13:56 +00:00
Jingwen Chen
2247acae0c Allowlist more modules under the adb package.
These are all buildable.

Bug: 239041723
Bug: 243025934

Test: presubmits
Change-Id: Id3de8d9b7f2f83fca78f26708dabb4b93372fc16
2022-09-09 12:17:53 +00:00
Jingwen Chen
d4a0b1f63c Allowlist adbd_test.
Builds and passes on cuttlefish.

Test: $ lunch aosp_x86_64 && b build //packages/modules/adb:adbd_test --config=android && adb push bazel-bin/packages/modules/adb/adbd_test /data/tmp/adbd_test && adb shell /data/tmp/adbd_test

Bug: 239041723
Bug: 243025934
Change-Id: Ic73378c770b654fad5fcf99a672977eda8fe2e06
2022-09-09 10:32:43 +00:00