Commit Graph

36283 Commits

Author SHA1 Message Date
Paul Duffin 8eee268aa7 Merge "Move generation of hidden API make vars to platform_bootclasspath" am: ad7fa97f8d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1690548

Change-Id: Ie6250e02f8ca02cdaf2d43db3c7f9925f5690c14
2021-04-29 20:51:04 +00:00
Paul Duffin 5983d856c1 Merge "Fix build failure when building unbundled apps" 2021-04-29 20:19:54 +00:00
Paul Duffin ad7fa97f8d Merge "Move generation of hidden API make vars to platform_bootclasspath" 2021-04-29 20:14:16 +00:00
Paul Duffin c027119e73 Fix build failure when building unbundled apps
Bug: 186695448
Bug: 185828824
Test: tapas Calendar
      m -j60
Change-Id: I1c5365f6d2afb2f2d159e6f6ed004647ec6d2427
2021-04-29 19:50:40 +01:00
Paul Duffin 4b00abc5f7 Merge "Make platform_bootclasspath a singleton module" am: 86477cfeb2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1690547

Change-Id: I5fe5f37dfc470674f7a7fe7907584ccaf0ea1d7a
2021-04-29 18:11:24 +00:00
Paul Duffin 86477cfeb2 Merge "Make platform_bootclasspath a singleton module" 2021-04-29 17:56:21 +00:00
Andrei Onea 4985e518f8 Exclude RequiresApi from generated stubs
This annotation is required for linting, but is not useful in stubs.

Bug: 185579441
Test: cherry-pick http://ag/14098354 and regenerate stubs
Change-Id: I7e4da99a8843b9c709f3b59f125f43cbd66bda4e
2021-04-29 17:00:46 +00:00
Colin Cross ce7b244e33 Merge "Remove global state from vendor public libraries" am: e07056af41
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1689271

Change-Id: Id1e7b1e3d379698281ede2606c5e19e7922198aa
2021-04-29 16:31:40 +00:00
Colin Cross e07056af41 Merge "Remove global state from vendor public libraries" 2021-04-29 16:16:42 +00:00
Vladimir Marko 9f8079dc42 Merge "Fix profileCommand to remove the profile first." am: 8e4cd8883a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1689753

Change-Id: I4be2352e65fc8eaa4c2d394dc0c6f16b5944a6d8
2021-04-29 14:51:30 +00:00
Vladimir Marko 8e4cd8883a Merge "Fix profileCommand to remove the profile first." 2021-04-29 14:24:00 +00:00
Paul Duffin 12d29b7786 Move generation of hidden API make vars to platform_bootclasspath
Bug: 179354495
Test: rm out/soong/make_vars*
      m nothing
      grep INTERNAL_PLATFORM_HIDDENAPI_FLAGS out/soong/make_vars*
      - make sure it is still out/soong/hiddenapi/hiddenapi-flags.csv
Change-Id: I86e56512a9a2091f446bad25294d41ea1f4341ee
2021-04-29 15:11:35 +01:00
Inseob Kim 08758f08e9 Add debug ramdisk variant.
A module will be installed to /debug_ramdisk if debug_ramdisk is set to
true.

This is a reland of f84e9c05e2, with a fix
that removes /first_stage_ramdisk.

Bug: 184004542
Test: soong test
Change-Id: I739de63cfec6b0fec5a90f7c4741fc4d884d209c
2021-04-29 22:58:17 +09:00
Paul Duffin 58da3e8a80 Merge "Move dumpOatRules to platform_bootclasspath" am: 3f9c16af2d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1686128

Change-Id: I1ac493e94b9435f0012d7666649ea633b591d989
2021-04-29 12:37:28 +00:00
Paul Duffin b72a9487b8 Merge "Move generateUpdatableBcpPackagesRule to platform_bootclasspath" am: e084f1d717
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1686154

Change-Id: Ibe80a497052b3835cbd1b9a830357731f1e95562
2021-04-29 12:37:22 +00:00
Paul Duffin e3ecce67c1 Make platform_bootclasspath a singleton module
This is needed in order to allow it to implement MakeVars so it can
create make variables just like the dexpreopt_bootjars and hiddenapi
singletons currently do.

Bug: 177892522
Bug: 179354495
Test: m nothing
Change-Id: Ida5bf8abeecde531e1f6430151650065445804ac
2021-04-29 13:37:16 +01:00
Paul Duffin c1c4b84478 Merge "Differentiate between art, non-updatable and updatable modules" am: c1fc9faee6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1686153

Change-Id: I3c7dbdd542075b8c1ba477ab6f74b1e12c4c233c
2021-04-29 12:37:14 +00:00
Paul Duffin bbc5cbcf0f Merge changes I16389102,I105f4fba am: 12206326d6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1689752

Change-Id: Ida86926b0fc80b47228ff2975b714cb9af50a4dd
2021-04-29 12:36:24 +00:00
Paul Duffin 3f9c16af2d Merge "Move dumpOatRules to platform_bootclasspath" 2021-04-29 12:24:34 +00:00
Paul Duffin e084f1d717 Merge "Move generateUpdatableBcpPackagesRule to platform_bootclasspath" 2021-04-29 12:20:17 +00:00
Paul Duffin c1fc9faee6 Merge "Differentiate between art, non-updatable and updatable modules" 2021-04-29 12:20:06 +00:00
Paul Duffin 12206326d6 Merge changes I16389102,I105f4fba
* changes:
  Extract logic to gather deps added for <apex>:<module> pairs
  Treat "apex" system_ext the same as platform
2021-04-29 12:19:53 +00:00
Jingwen Chen b5267deaf2 Merge "bp2build: make libdl build." am: a4a930feef
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1688296

Change-Id: Iddf0295563de1a7662dc75fc229dc0a87805e6bd
2021-04-29 10:51:15 +00:00
Paul Duffin f7a5592d38 Move dumpOatRules to platform_bootclasspath
Bug: 177892522
Test: m oat-dump-boot
      - test output to make sure that this change does not change the
        generated files, at least no more than no changes do as the
	output from this rule is not deterministic. See b/186459873.

Change-Id: Ib2b4203d9bb1fd0ee9443aee4e58b54b38b491cf
2021-04-29 11:50:48 +01:00
Paul Duffin 4c094428a7 Move generateUpdatableBcpPackagesRule to platform_bootclasspath
Changes generateUpdatableBcpPackagesRule to use ModuleContext instead
of SingletonContext and moves the call from dexpreoptBootJar's
GenerateSingletonBuildActions method to platform_bootclasspath's
GenerateAndroidBuildActions.

Bug: 177892522
Test: lunch art_module_arm64
      m out/soong/module_arm64/dex_bootjars/updatable-bcp-packages.txt
      - make sure it is not affected by this change
Change-Id: I9741ae1eb9573cafe12dd7a17dc1d8449b224dc8
2021-04-29 11:50:48 +01:00
Paul Duffin 01b463bc06 Differentiate between art, non-updatable and updatable modules
Bug: 177892522
Test: lunch art_module_arm64
      m out/soong/module_arm64/dex_bootjars/updatable-bcp-packages.txt
      - make sure it is not affected by this change
Change-Id: I3d35f1664cbbaba5df3f5809859dd9815a26d05d
2021-04-29 11:50:42 +01:00
Paul Duffin 9bacf56564 Extract logic to gather deps added for <apex>:<module> pairs
Trades having to traverse a module's direct dependencies multiple times
for reusable code. While at the minute the amount of duplicated code is
small (checking a tag and appending to a list) follow up changes will
modify the gatherApexModulePairDepsWithTag module to improve error
reporting greatly increasing the benefit of deduping.

The cost of traversing a module's direct dependencies is very small as
there will be only a very few dependencies.

Bug: 177892522
Test: m nothing
Change-Id: I16389102abd8038e1bfa52b63f4153bdf92ff553
2021-04-29 11:34:59 +01:00
Jingwen Chen a4a930feef Merge "bp2build: make libdl build." 2021-04-29 10:14:26 +00:00
Paul Duffin ce7396186d Merge "Add stub_libs properties to bootclasspath_fragment snapshot" am: 50599f7735
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1686206

Change-Id: I4252cf0e5526977b95ec5af671914e987ce547e6
2021-04-29 09:53:58 +00:00
Paul Duffin 110b0add9e Treat "apex" system_ext the same as platform
Change https://r.android.com/1672245 added support to treat
system_ext:foo in the boot jars configuration the same as platform:foo,
at least for dexpreopt_bootjars.go's getBootJar.

This change replicates that mechanism in platform_bootclasspath and as
that now handles hidden API processing also made a similar change in
the isModuleInConfiguredList function.

Bug: 177892522
Bug: 154976937
Test: m nothing
Change-Id: I105f4fbaa3b0355b013b7c5618d218d888faefb6
2021-04-29 10:35:10 +01:00
Paul Duffin 50599f7735 Merge "Add stub_libs properties to bootclasspath_fragment snapshot" 2021-04-29 09:34:38 +00:00
Paul Duffin 126a48b0c5 Merge "Add support for specifying api provided by bootclasspath_fragment" am: 0948060f50
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1686205

Change-Id: I71526857f54c725257467975f20937a1bd2faa78
2021-04-29 09:22:32 +00:00
Paul Duffin 0948060f50 Merge "Add support for specifying api provided by bootclasspath_fragment" 2021-04-29 09:10:07 +00:00
Jingwen Chen 53681ef590 bp2build: make libdl build.
This CL adds support for the static and shared props, forwarding
whole_static_libs and srcs to the underlying shared library's
static_deps and static library's srcs respectively.

Test: TH
Fixes: 186609667
Change-Id: I84f838361c7758b256b2a163af894c502de03109
2021-04-29 08:59:02 +00:00
Vladimir Marko 982e384a63 Fix profileCommand to remove the profile first.
This fixes a discrepancy between clean and incremental
builds exposed by
    https://android-review.googlesource.com/1671710 .

Test: m
Bug: 148067697
Change-Id: I0de078045075417a4123f7c3821c723f1e8e6b68
2021-04-29 09:10:30 +01:00
Treehugger Robot 56a2ac8cd7 Merge "bp2build: convert //external/arm-optimized-routines/..." am: af44591fbe
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1689686

Change-Id: I7deb6ada01914448b7d42f38e4752394f126eadb
2021-04-29 06:29:53 +00:00
Treehugger Robot af44591fbe Merge "bp2build: convert //external/arm-optimized-routines/..." 2021-04-29 05:58:25 +00:00
Colin Cross d9be64ea31 Merge "Remove obsolete llndk_library" am: 5423a9c513
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1687470

Change-Id: I503f60464bff0d80da1029c2fae571fcdf389f63
2021-04-29 00:14:26 +00:00
Colin Cross f7bcd42a4a Clean symbols directory during installclean
Installclean is used in some build server builds when switching between
different TARGET_BUILD_APPS, remove the symbols directory so it doesn't
accumulate old symbols files.

Bug: 186507256
Test: m && m installclean && m
Change-Id: I316703cd0985ee555959a6dcdb39d5a702ab0332
2021-04-28 16:52:52 -07:00
Colin Cross 5423a9c513 Merge "Remove obsolete llndk_library" 2021-04-28 23:25:06 +00:00
Jingwen Chen 282881683f bp2build: convert //external/arm-optimized-routines/...
Also update modules in denylist that depend on arm-optimized-routines libraries.

Bug: 186388919
Test: bazel build //external/arm-optimized-routines/...
Test: TH
Change-Id: If449b30288a4f852e5fcf31d923eda6cec1eb043
2021-04-28 22:11:44 +00:00
Paul Duffin 895c7140a9 Add stub_libs properties to bootclasspath_fragment snapshot
Bug: 177892522
Test: m nothing
Change-Id: I7644122c4abed8e8bc2cc7b58f408bee3bdc91f6
2021-04-28 22:02:00 +01:00
Paul Duffin 1093158faf Add support for specifying api provided by bootclasspath_fragment
The hidden API processing needs access to dex stub jars for the API
scopes provided by the bootclasspath_fragment so that it can mark the
corresponding dex members as being part of that API. This change adds
the ability to specify the modules that provide those jars, resolve the
modules to dex jar stubs and make them available for other modules and
tests to use.

While the stubs are only needed for hidden API at the moment these were
not added to the hidden_api properties section as there are other parts
of the build that may need to access the stubs in future, e.g. api
fingerprint and aidl generation.

The stubs properties can be affected by coverage as when coverage is
enabled the jacoco-stubs needs adding to the list, just like how
jacocoagent is added to the contents.

Bug: 177892522
Test: m nothing
Change-Id: I31097d1ca45c84adeba4cbb38f693698cb289e99
2021-04-28 21:59:46 +01:00
Steven Moreland 641a88278e Merge "more no include_dir" am: 1cc8f451d1
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1688777

Change-Id: Ie3969884fd0de485250d4e72132fe0a336b9346a
2021-04-28 19:47:05 +00:00
Treehugger Robot d6dcaa9cfd Merge "Add GetEmbeddedPrebuilt and IsModulePrebuilt" am: 6065b0666a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1689388

Change-Id: I1862f175c55769991d56d791c9df88bb33fef1a6
2021-04-28 19:46:13 +00:00
Treehugger Robot 109f42b6c8 Merge "Update bp2build allow/denylisting for system" am: 12bcc130ea
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1688980

Change-Id: I0edb2c5f2ba546b80a10593db82412dd90dbd7bb
2021-04-28 19:22:47 +00:00
Treehugger Robot a3a8017789 Merge "Generate rustdoc index." am: c0ec1dd962
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1689272

Change-Id: Ia89dcb701c2bdec89cfcba29e1c46b43e954b483
2021-04-28 19:21:30 +00:00
Andrei-Valentin Onea b45d115816 Merge "Replace source based system server stubs" am: b75031e918
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1642101

Change-Id: I9c7ad8b66e74092cd1146625a8062a44837d0517
2021-04-28 19:08:49 +00:00
Steven Moreland 1cc8f451d1 Merge "more no include_dir" 2021-04-28 17:24:38 +00:00
Treehugger Robot 6065b0666a Merge "Add GetEmbeddedPrebuilt and IsModulePrebuilt" 2021-04-28 15:58:04 +00:00