Commit Graph

35187 Commits

Author SHA1 Message Date
Paul Duffin 0a4e265ca4 Merge "Convert linkerconfig package to use test fixtures" am: 30231da694
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1655210

Change-Id: If33ff27b9f118f336b5e34306a854705334106c5
2021-03-29 11:09:01 +00:00
Paul Duffin 30231da694 Merge "Convert linkerconfig package to use test fixtures" 2021-03-29 10:34:46 +00:00
Paul Duffin 4b64ba05b6 Add bootclasspath_fragment as an alias for boot_image
This is part of the work to rename boot_image to bootclasspath_fragment
which is being done for two reasons:
1. To avoid clashing with the bootimg module type.
2. To better reflect what this represents.

While a bootclasspath_fragment can create what ART calls a boot image
(which is different to what the bootimg module type represents) it does
not have to do so.

Bug: 177892522
Test: m nothing
Change-Id: Ib45604be7adc790ded9e27a2ac812dd7522ca8db
2021-03-29 11:05:55 +01:00
Paul Duffin 837486d308 Convert java/boot_image_test.go to test fixtures
Bug: 177892522
Test: m nothing
Change-Id: I91d2bd2eabe5916fd158501bd0d4fdb608919019
2021-03-29 11:05:55 +01:00
Paul Duffin 64be7bb32f Change type of Image_name from string to *string
Bug: 177892522
Test: m nothing
Change-Id: Id72b6079f11c28df6248e71998fb97851cfc5be9
2021-03-29 11:05:55 +01:00
Paul Duffin 9ea71c0f4f Make apex/boot_image_test.go more realistic
Previously it was unrealistic because the "boot" image cannot be added
to an apex (because it references modules from multiple different
apexes). Only the "art" image can be added to an apex. So, this change
switches to use the "art" image which requires the apex name is changed
to "com.android.art".

This change also adds an equivalent test for prebuilt_boot_image as
well as a check of the module dependencies for the mybootimage module.

Bug: 177892522
Test: m nothing
Change-Id: I20089b02c80bedc072dbb950dce09bc4e8397f3a
2021-03-29 11:05:55 +01:00
Jingwen Chen 82a1a77228 Merge "Remove comment about gitignore for BUILD files." am: cb745601b9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1655347

Change-Id: I7d01c3610b529edc484e2b3fe8ef5cfecc87e08d
2021-03-29 10:03:03 +00:00
Jingwen Chen cb745601b9 Merge "Remove comment about gitignore for BUILD files." 2021-03-29 09:49:02 +00:00
Ulyana Trafimovich 07f2bbf4fc Merge changes I1f0ab4af,Iea3be0fc am: a8f6db972f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652624

Change-Id: Id1f5e16e187d9c0832e102c69724952bea21631c
2021-03-29 09:42:28 +00:00
Ulyana Trafimovich a8f6db972f Merge changes I1f0ab4af,Iea3be0fc
* changes:
  Fix AAPT path in dexpreopt.
  Allow modules that don't run verify_uses_libraries to have nonempty CLC.
2021-03-29 09:24:00 +00:00
Paul Duffin 9d0d498922 Merge "Prune test preparers in apex/boot_image_test.go" am: 0839101430
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652447

Change-Id: I3c6bb2acf19a6e9d205e7197a4f957ae4e16f3ac
2021-03-29 09:23:01 +00:00
Paul Duffin d1255ed19a Merge "Prevent apex from using preferred prebuilt_boot_image" am: fed8df3424
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1647168

Change-Id: Ib446211d4d98a294a16335fa719230875917d9c7
2021-03-29 09:22:24 +00:00
Paul Duffin 2711096f42 Merge "Convert kernel package to use test fixtures" am: acde8e7fed
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1655211

Change-Id: I5d4f2a3380b0b2e2a59c6ffdc4fb24007f3086a6
2021-03-29 09:21:41 +00:00
Paul Duffin 0839101430 Merge "Prune test preparers in apex/boot_image_test.go" 2021-03-29 08:51:03 +00:00
Paul Duffin fed8df3424 Merge "Prevent apex from using preferred prebuilt_boot_image" 2021-03-29 08:50:37 +00:00
Paul Duffin acde8e7fed Merge "Convert kernel package to use test fixtures" 2021-03-29 08:50:05 +00:00
Thiébaud Weksteen 563dc58add Merge "rust: Add features list to rust_project.json" am: 785f378f7d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652621

Change-Id: I1dd10300aef83f96e43afb27c4cfff47e59195e3
2021-03-29 08:40:25 +00:00
Jingwen Chen 2288f3155b Remove comment about gitignore for BUILD files.
Change-Id: Ic1c795d9d961b309d269b1bc4bccb7522f288e9b
Rationale: we haven't modified any gitignore file. lberki has a new proposal to steer this in a new direction, so let's reflect the comment to the current reality.
2021-03-29 08:31:28 +00:00
Thiébaud Weksteen 785f378f7d Merge "rust: Add features list to rust_project.json" 2021-03-29 07:58:08 +00:00
Paul Duffin e5ac250ab4 Convert kernel package to use test fixtures
Bug: 181070625
Test: m nothing
Change-Id: Ibd3cc62feec1b911d74451d53cea81607d3bec36
2021-03-29 01:25:26 +01:00
Paul Duffin 2a2fb66d6c Convert linkerconfig package to use test fixtures
Bug: 181070625
Test: m nothing
Change-Id: Ic85e353ad8fa2aa324cd75d5bca8a1e31fd977a8
2021-03-29 01:17:03 +01:00
Paul Duffin 70dbd886a7 Merge "Make TestingBuildParams.RelativeToTop() modify (Writable)Path(s)" am: cf7f2e0a9e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652618

Change-Id: I604ff21243c03fe70ee7ce8097536a6d37d14e47
2021-03-28 22:43:19 +00:00
Paul Duffin 52bfaa43f9 Prune test preparers in apex/boot_image_test.go
Cut down the preparers to only those needed by these tests.

Bug: 177892522
Test: m nothing
Change-Id: I811977b0331dd38c25623aa96e09e85ba5cf7c57
2021-03-28 23:02:18 +01:00
Paul Duffin 396229f7cf Prevent apex from using preferred prebuilt_boot_image
Bug: 177892522
Test: m nothing
Change-Id: I8530ffa4c5123f6055a6ca25421c17bb6fc037f0
2021-03-28 23:02:18 +01:00
Paul Duffin cf7f2e0a9e Merge "Make TestingBuildParams.RelativeToTop() modify (Writable)Path(s)" 2021-03-28 22:00:05 +00:00
Martin Stjernholm 855e90b57c Make test_for arch variant.
To be able to avoid registering dependencies on nonexistent host APEXes
in host builds.

Test: art/tools/buildbot-build.sh --host
  with http://r.android.com/q/topic:libdexfile-noext applied
Bug: 183217299
Change-Id: Iaa6411b511b6f50da01827b49852607ae825bc83
2021-03-28 22:06:34 +01:00
Martin Stjernholm 4e6c269de5 Don't use APEX stubs between internal libs in the same APEX when
building test_for modules.

This extends the current approach where test modules always depend on
the platform variants of the APEX libs, and only skips the stubs on
them. It still has the limitation that the internal libs must have the
exact same apex_available lists.

Also some improvement of the test accuracy in TestTestFor.

Test: m libartagent-target
  with http://r.android.com/q/topic:libdexfile-noext applied
Bug: 183217299
Change-Id: I2118b8a22c887077867a3ddbbe73437b4a29a6ad
2021-03-28 22:06:34 +01:00
Martin Stjernholm 1461c4dbca Add FilterListPred.
Test: cd build/soong; go test ./android
Change-Id: Ibbdd3cbdb822bd2e843096a22cdd08c827b70526
2021-03-28 22:06:33 +01:00
Martin Stjernholm 32312eb75a Don't panic on "go test" invocations from the command line.
Test: cd build/soong; go test ./android
Bug: 183650682
Change-Id: I2d1bbda21cb262eafc7f7d329206720809399985
2021-03-28 22:06:33 +01:00
Colin Cross db081efb32 Merge changes I71a83e3a,I66101c0c,Ie387c8c4,Iea742e75 am: 045ed0f684
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652575

Change-Id: I2e3c9d968656092d75bb0a6bd721d8c7f1654410
2021-03-26 15:51:53 +00:00
Colin Cross 045ed0f684 Merge changes I71a83e3a,I66101c0c,Ie387c8c4,Iea742e75
* changes:
  Strengthen metalava sandbox support using sbox
  Move metalava's output files into a subdirectory
  Fix lint warnings in droidstubs.go
  Split droidstubs out of droiddoc.go
2021-03-26 15:14:53 +00:00
Ivan Lozano f34d6487ae Merge "rust: Add whole_static_libs, revert static_lib" am: 352bdf29b3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652928

Change-Id: I1d34ee0df6f7dd7ba36ff5d57fa677748092a566
2021-03-26 13:35:43 +00:00
Ivan Lozano 352bdf29b3 Merge "rust: Add whole_static_libs, revert static_lib" 2021-03-26 13:01:14 +00:00
Treehugger Robot 22d43c0676 Merge changes from topic "min_sdk_version" am: 10906f5cc6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1646949

Change-Id: I1eff11647deade433d49e4c50b07aa2c61e1e9c1
2021-03-26 08:51:33 +00:00
Treehugger Robot 10906f5cc6 Merge changes from topic "min_sdk_version"
* changes:
  Versioned CRT objects are built with correct __ANDROID_API__
  Always respect min_sdk_version
2021-03-26 08:07:28 +00:00
Colin Cross bc13992711 Support sandboxing droiddoc and droidstubs with args properties
args properties can access arbitrary files with $(location) expansions,
so they need to pass them through RuleBuilderCommand.PathsForInputs
to produce a path inside the sandbox.  Extract the arg expansion out
of collectDeps into a new expandArgs method that takes the
RuleBuilderCommand.

Test: TestDroidstubsSandbox
Change-Id: I9022d17bf3cb64c97b2008c4c1b733bf48edca95
2021-03-25 22:21:23 -07:00
Rupert Shuttleworth f576ed0a3d Remove lib_dns from bp2build converter denylist (module name typo, should be libc_dns). am: b33f9d87c4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652837

Change-Id: Id9b6ec08294dbd3a5b0998007bdcd8fe96dcff69
2021-03-26 00:19:18 +00:00
Rupert Shuttleworth 1089fb2b36 Don't convert libc_dns using the cc_library_static bp2build converter. am: a9e182440d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652836

Change-Id: I34d0d29102b087d85c4530c87417da387e9d364a
2021-03-25 22:33:29 +00:00
Rupert Shuttleworth b33f9d87c4 Remove lib_dns from bp2build converter denylist (module name typo, should be libc_dns).
Test: TH.
Change-Id: I636b7d6d09e96f6e25525ca48783281892a1eb02
2021-03-25 22:23:00 +00:00
sophiez ae5da5ba78 NDK API coverage
Update the gen_ndk_usedby_apex.sh script to generate NDK API list with
library name.

Test: TARGET_BUILD_APPS=com.android.adbd m dist apps_only

Change-Id: I799e03ad7d81a4184229f658fd6c8824b9ba6e1f
2021-03-25 22:12:04 +00:00
Rupert Shuttleworth a9e182440d Don't convert libc_dns using the cc_library_static bp2build converter.
Test: Manually ran bp2build-incremental presubmit in a new AOSP checkout.
Change-Id: I063f6f244c34c4456af77fb25579f95d724e8893
2021-03-25 21:56:15 +00:00
Colin Cross e9e22b86dd Merge "Use interface for $(location) values in genrules" am: d91c9b1c04
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652572

Change-Id: I15ba550b81defafd2a00d491d993b087e8a834a0
2021-03-25 21:38:54 +00:00
Rupert Shuttleworth 5b5f675f48 Merge "Add bp2build support for cc_library_static." am: 0f256ff07d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652835

Change-Id: I1741bd8bd080566558253740d695218bd6cf3c60
2021-03-25 21:36:45 +00:00
Colin Cross 0b0fcae3ca Merge changes Ie8721dcd,If1827b9d,Iec250a2d,I3f46f611,Idf136919, ... am: ba5fff85a7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1651847

Change-Id: I984e8e17f4471ef9cc55ed36c7a319a1420ee5bf
2021-03-25 21:36:09 +00:00
Colin Cross d91c9b1c04 Merge "Use interface for $(location) values in genrules" 2021-03-25 21:06:55 +00:00
Rupert Shuttleworth 0f256ff07d Merge "Add bp2build support for cc_library_static." 2021-03-25 21:01:29 +00:00
Colin Cross ba5fff85a7 Merge changes Ie8721dcd,If1827b9d,Iec250a2d,I3f46f611,Idf136919, ...
* changes:
  Replace ANDROID_SDK_HOME with ANDROID_PREFS_ROOT for metalava
  Simplify lint rules using improved RuleBuilder rsp support
  Support multiple rsp files in RuleBuilder
  Pass rsp files into sbox and rewrapper
  Add test for sbox input sandboxing
  Support multiple rsp files in REParams
  Move response file handling to a separate package
2021-03-25 20:55:56 +00:00
Treehugger Robot 96d2fbe9d9 Merge "Remove obsolete comment on PrebuiltPostDepsMutator" am: d411f069ff
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1650858

Change-Id: I583d2c166427e8230e676b95c12aebd03acc6c27
2021-03-25 20:08:50 +00:00
Treehugger Robot d411f069ff Merge "Remove obsolete comment on PrebuiltPostDepsMutator" 2021-03-25 19:37:51 +00:00
Paul Duffin 8313fb112c Merge "Filter duplicate modules in platform_compat_config_singleton" am: f329307878
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1652267

Change-Id: I850c1a2bd54411a6c90d507b050a5466becab111
2021-03-25 18:21:13 +00:00