Commit Graph

21065 Commits

Author SHA1 Message Date
Paul Duffin
2842d14c50 Merge "Ignore PrebuiltDepTag when processing APEX contents" am: 846e60dbc7 am: 246bbcc5e2
Change-Id: Ia5482682e8673cd0721c6029d03e222a9e0aefe1
2020-04-08 14:59:24 +00:00
Paul Duffin
3e5c8b4995 Merge "Stop requiring apex_available on java_library members of sdks" am: f76c64018e am: c8c4a962d4
Change-Id: I8655a0889bb8bb089e16107ec29a1c559cb290b0
2020-04-08 14:59:16 +00:00
Paul Duffin
246bbcc5e2 Merge "Ignore PrebuiltDepTag when processing APEX contents" am: 846e60dbc7
Change-Id: Ic0f43434fc9e0c503c3b5a1e91de03f66844831a
2020-04-08 14:40:36 +00:00
Paul Duffin
c8c4a962d4 Merge "Stop requiring apex_available on java_library members of sdks" am: f76c64018e
Change-Id: I8b8519220ebf6de6e653812cb27d50665f4c955d
2020-04-08 14:40:23 +00:00
Paul Duffin
846e60dbc7 Merge "Ignore PrebuiltDepTag when processing APEX contents" 2020-04-08 14:28:47 +00:00
Paul Duffin
f76c64018e Merge "Stop requiring apex_available on java_library members of sdks" 2020-04-08 14:26:39 +00:00
Ivan Lozano
bfe9780f60 Merge "Fix incorrect Rust installation paths." am: 5d7be45a2b am: ce7452eaf6
Change-Id: Ie24963175b19632e47621ecb52c05aa559ed41db
2020-04-08 12:43:35 +00:00
Ivan Lozano
e6ceee04a8 Merge "Add crtbegin_so/crtend_so to Bionic Rust libraries." am: 526291abe4 am: 5b0eb8b750
Change-Id: I1cd35f1175dcb119b2601391db2e09c80a89611c
2020-04-08 12:43:21 +00:00
Ulyana Trafimovich
7c9b35f2ad Merge "Forbid generating boot image files for jars in updatable modules." am: 0d8f61640e am: 73864e0b04
Change-Id: Iab5db838aa4cd782aeac7d58923f698b7f624d7a
2020-04-08 12:43:10 +00:00
Ivan Lozano
ce7452eaf6 Merge "Fix incorrect Rust installation paths." am: 5d7be45a2b
Change-Id: I1c319a3af25acbffba0f9d7288301f1eeb3da04b
2020-04-08 12:29:40 +00:00
Ivan Lozano
5b0eb8b750 Merge "Add crtbegin_so/crtend_so to Bionic Rust libraries." am: 526291abe4
Change-Id: I7df9cf20b2eb3007e3c75dd058104f8a0a1265c7
2020-04-08 12:29:34 +00:00
Ulyana Trafimovich
73864e0b04 Merge "Forbid generating boot image files for jars in updatable modules." am: 0d8f61640e
Change-Id: Ic7d5de766a06383288aceac25ef76bcdb9b3ac6e
2020-04-08 12:29:10 +00:00
Ivan Lozano
5d7be45a2b Merge "Fix incorrect Rust installation paths." 2020-04-08 12:27:34 +00:00
Ivan Lozano
526291abe4 Merge "Add crtbegin_so/crtend_so to Bionic Rust libraries." 2020-04-08 12:26:11 +00:00
Ulyana Trafimovich
0d8f61640e Merge "Forbid generating boot image files for jars in updatable modules." 2020-04-08 12:15:47 +00:00
Paul Duffin
a726a11db1 Add dependency tags to apex available errors am: c519244cd5 am: e554326df5
Change-Id: I981156a84819badf8f24e79beffa2f51a41e06be
2020-04-08 11:40:00 +00:00
Paul Duffin
e554326df5 Add dependency tags to apex available errors am: c519244cd5
Change-Id: Ie01421c837b52a9ab314c2163e34f1a57c2afdf3
2020-04-08 11:28:21 +00:00
Paul Duffin
dddd5469ad Ignore PrebuiltDepTag when processing APEX contents
When a source and a prebuilt module are present in the same build a
dependency is added from the source module to the prebuilt module.
Previously, the code for generating the APEX did not recognize that
tag and in some cases (e.g. for cc_(prebuilt_)library_shared) will
fail the build.

This change:
1) Adds a test to reproduce the problem.
2) Improves the debug message by pretty printing the tag.
3) Adds a new ExcludeFromApexContents interface that can be implemented
   by a tag to declare that it should be excluded from the APEX
   contents.
4) Ignores tags that implement that interface when generating APEX
   contents.
5) Implements that interface on prebuiltDependencyTag to fix the
   test.

Bug: 153326844
Test: m nothing
Change-Id: I9dd4312c4f995c816c0a31d8d733eb5d7f56e1ea
2020-04-08 08:40:44 +01:00
Paul Duffin
6534770793 Stop requiring apex_available on java_library members of sdks
Previously, adding java_library to an sdk required that the names of
any APEXes that transitively compiled against it were added to its
apex_available property. This change removes that requirement.

Also corrects the dependency path in the TestApexAvailable_IndirectDep
error which previously passed through "shared from static" static
dependency tags even though those are explicitly NOT followed when
checking apex_available settings.

Bug: 152878661
Test: m droid
Change-Id: I995ed38956c1bc210b09494812de012fed9f9232
2020-04-08 08:40:44 +01:00
Paul Duffin
c519244cd5 Add dependency tags to apex available errors
Having dependency tags in the dependency path that shows why a specific
module is considered part of an apex makes it easier to understand why
that is the case and detect possible issues.

Bug: 152762638
Test: m nothing
Change-Id: Iba2a8a5a6abe03dadee456e760aa4373cd00c07b
2020-04-08 08:40:44 +01:00
Paul Duffin
7b49cfc537 Merge "Extract DepIsInSameApex and RequiredSdks interfaces" am: 2010598a51 am: 2a9b7c8791
Change-Id: I825f791ccecd83be6060654a36403756ace30d23
2020-04-08 07:26:23 +00:00
Paul Duffin
2a9b7c8791 Merge "Extract DepIsInSameApex and RequiredSdks interfaces" am: 2010598a51
Change-Id: I2a32d1dcdfbf486d3f583665ce8b0608d599dc07
2020-04-08 07:11:17 +00:00
Paul Duffin
2010598a51 Merge "Extract DepIsInSameApex and RequiredSdks interfaces" 2020-04-08 06:55:03 +00:00
Treehugger Robot
3435c98bbf Merge changes I96f0eb03,Ie883eb45 am: 5bf1480218 am: 3893c6743b
Change-Id: Ib77584a2ec9d291e654e074b74feb474bc58be93
2020-04-08 01:17:23 +00:00
Treehugger Robot
3893c6743b Merge changes I96f0eb03,Ie883eb45 am: 5bf1480218
Change-Id: I677d267ac7457752fdbeb14b96a4d138a2c2adde
2020-04-08 00:54:56 +00:00
Treehugger Robot
5bf1480218 Merge changes I96f0eb03,Ie883eb45
* changes:
  Parameterize scopes with additional droidstubs args
  Replace references to droiddoc with droidstubs
2020-04-08 00:42:22 +00:00
TreeHugger Robot
be86a7586d [automerger skipped] Merge "Support arch variant for data attribute" into rvc-dev am: ee42b2079d -s ours
am skip reason: Change-Id I2381f78b486852da267caa363b4c4cb5660c9055 with SHA-1 67a8834735 is in history

Change-Id: I3e24b33054808845342e2356b6776aa8ae269bfb
2020-04-07 22:28:00 +00:00
TreeHugger Robot
ee42b2079d Merge "Support arch variant for data attribute" into rvc-dev 2020-04-07 22:08:45 +00:00
Automerger Merge Worker
0f2c0ad8c3 Support arch variant for data attribute
Bug: 143220441
Test: atest VtsHalDrmV1_2TargetTest
Change-Id: I2381f78b486852da267caa363b4c4cb5660c9055
Merged-In: I2381f78b486852da267caa363b4c4cb5660c9055
2020-04-07 12:52:22 -07:00
Paul Duffin
1fb487df17 Parameterize scopes with additional droidstubs args
Added droidstubsArgs field to the apiscope structure to avoid
switching on api scope type.

Bug: 153443117
Test: m nothing
Change-Id: I96f0eb033d44c6a74787ba7f1523799b05a58092
2020-04-07 18:59:12 +01:00
Paul Duffin
6d0886e279 Replace references to droiddoc with droidstubs
The java_sdk_library code used to create droiddoc and now it creates
droidstubs but it still referenced droiddoc internally. This change
removed all the remaining references except the ones that are visible
externally.

Bug: 153443117
Test: m nothing
Change-Id: Ie883eb4590f9c091d4149d7b17d7d3d91b1b5c6a
2020-04-07 18:56:14 +01:00
Ivan Lozano
12ee9cac91 Add crtbegin_so/crtend_so to Bionic Rust libraries.
Bug: 153430438
Test: Example library no longer experiences linkage errors during build.
Change-Id: I73870a68693415b37c9b7bf051b1879bcb8df0c6
2020-04-07 13:19:44 -04:00
Jooyung Han
72e5c957d4 Merge "Build VNDK APEX for VNDK-Lite" into rvc-dev am: 3978d03fb7
Change-Id: Idfbf9f998c7a8228a8b873274a91bca72b9f71f5
2020-04-07 17:06:56 +00:00
Jooyung Han
3978d03fb7 Merge "Build VNDK APEX for VNDK-Lite" into rvc-dev 2020-04-07 16:49:39 +00:00
Ivan Lozano
d6fdca8913 Fix incorrect Rust installation paths.
Rust binaries were installing to the wrong paths. This fixes
the install path by only including the archtype subdir when there's a
multilib conflict for that archtype.

Bug: 153423714
Test: Example rust module installs to expected path.
Change-Id: I63ea1ce7dae0d97d65522e0917d916b44808f442
2020-04-07 12:36:00 -04:00
Treehugger Robot
1a542748f9 Merge "Only mount dist dir to soong sandbox if it exists" am: 0263f99bf2 am: 83bb39c097
Change-Id: I2a7c3c25f44f5dbafbffcdc17f0e543a7c98a51a
2020-04-07 16:11:40 +00:00
Ulya Trafimovich
b28cc3758c Forbid generating boot image files for jars in updatable modules.
This is to guard against the potential situation when someone adds
updatable modules to the list of boot jars by mistake.

Test: aosp_walleye-userdebug builds.

Test: Manually break the checks and observe the errors:
  - move updatable module 'conscrypt' from
    PRODUCT_UPDATABLE_BOOT_JARS to ART_APEX_JARS:
      internal error: module 'conscrypt' from updatable apex 'com.android.conscrypt' is not allowed in the ART boot image

  - add updatable module 'conscrypt' to ART_APEX_JARS
    (but do not remove it from PRODUCT_UPDATABLE_BOOT_JARS):
      error: A jar in PRODUCT_UPDATABLE_BOOT_JARS must not be in PRODUCT_BOOT_JARS, but conscrypt is.

  - move updatable module 'framework-tethering' from
    PRODUCT_UPDATABLE_BOOT_JARS to PRODUCT_BOOT_JARS:
      internal error: module 'framework-tethering' from updatable apex 'com.android.tethering' is not allowed in the framework boot image

  - add non-updatable (in AOSP) module 'android.net.ipsec.ike'
    to PRODUCT_BOOT_JARS:
      internal error: failed to find a dex jar path for module 'com.android.ipsec.ike', note that some jars may be filtered out by module constraints

Bug: 147579140

Change-Id: I25ca2f52530fcfa1f9823b2cfa3485db9c0d0db1
2020-04-07 17:09:59 +01:00
Treehugger Robot
83bb39c097 Merge "Only mount dist dir to soong sandbox if it exists" am: 0263f99bf2
Change-Id: I8c584771ae2b5b31eb19d54529f022d77ce5711f
2020-04-07 15:59:41 +00:00
Treehugger Robot
0263f99bf2 Merge "Only mount dist dir to soong sandbox if it exists" 2020-04-07 15:39:28 +00:00
Paul Duffin
923e8a5e9e Extract DepIsInSameApex and RequiredSdks interfaces
The DepIsInSameApex() and RequiredSdks() methods were defined in a few
places to avoid having to depend on the whole ApexModule/SdkAware
interfaces directly. However, that has a couple of issues:
1) It duplicates functionality making it difficult to change, changes
   to the definitions outside the main interfaces do not cause compile
   time failures, instead they result in a runtime change in behavior
   which can be difficult to debug.
2) IDE navigation (specifically in Intellij) does not detect that the
   duplicate definitions can resolve to the definitions in the main
   interface.

This change extracts the methods into their own interfaces and reuses
those interfaces instead of duplicating the methods to fix both of
these issues.

Bug: 152878661
Test: m nothing
Change-Id: I0cfdf342a14eb0bfb82b1bd17e0633d81c7facfb
2020-04-07 15:26:06 +01:00
Treehugger Robot
2271f611c0 Merge "Do not propagate the stub symbol file to prebuilts." am: 046280147e am: aeae600d81
Change-Id: I2edd3a881429c5ad1df840c6dcae7a39182c5b74
2020-04-07 13:19:10 +00:00
Treehugger Robot
aeae600d81 Merge "Do not propagate the stub symbol file to prebuilts." am: 046280147e
Change-Id: Ia24caae8453cd8e0d3ca8808ab980e4a1e5c0c90
2020-04-07 13:05:58 +00:00
Treehugger Robot
046280147e Merge "Do not propagate the stub symbol file to prebuilts." 2020-04-07 12:43:49 +00:00
Colin Cross
4afb560a76 Merge "Revert "Add sdk mutator for native modules"" am: d66b121000 am: 193bdf5784
Change-Id: Id45f244ee8a091e31be765b48f3e173bbf6d00fd
2020-04-07 04:57:37 +00:00
Colin Cross
193bdf5784 Merge "Revert "Add sdk mutator for native modules"" am: d66b121000
Change-Id: Idac6294deaf089ada8544e681b9e0c1c5f37e243
2020-04-07 04:39:25 +00:00
Colin Cross
d66b121000 Merge "Revert "Add sdk mutator for native modules"" 2020-04-07 04:25:34 +00:00
Colin Cross
f8e80229fe Revert "Add sdk mutator for native modules"
Revert submission 1242911-sdk_version_variant

Reason for revert: b/153394225
Reverted Changes:
Ife99745fb:Use libnativewindow for platform variant of libagq...
I1bae84c43:Use libnativewindow for platform variant of androi...
I6e6021ed3:Use stl to depend on libc++
Ife99745fb:Use libnativewindow for platform variant of libRSS...
I2c9f439b9:Fix static dependency on libprotobuf-cpp-lite-ndk
Iff2aff9cf:Set sdk_version for cc_genrules used by modules wi...
I7d72934aa:Add sdk mutator for native modules
Ief378a007:Use sdk variant of Soong modules when LOCAL_SDK_VE...

Bug: 149591340
Change-Id: I798fa902c779469c6382b6699351e5d12bf14785
Fixes: 153394225
2020-04-07 04:21:21 +00:00
Colin Cross
365d94c660 Merge "Add sdk mutator for native modules" am: f5d6756a35 am: 0cc91697fe
Change-Id: I96646663a8455e7a4e8184e0a2db6b22b11b75e3
2020-04-07 02:35:40 +00:00
Colin Cross
0cc91697fe Merge "Add sdk mutator for native modules" am: f5d6756a35
Change-Id: Ie2716b58c5c974b2b5da5f6a04769e677490301e
2020-04-07 02:05:11 +00:00
Colin Cross
f5d6756a35 Merge "Add sdk mutator for native modules" 2020-04-07 01:52:11 +00:00