summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-07-13 11:18:51 +0000
committer Paul Duffin <paulduffin@google.com> 2022-07-13 13:07:47 +0000
commitd854abf00f41f856ea2edef1533c7ce282fa8346 (patch)
tree779998f1041ee3160bf3eb4bc04204b3825f9f24
parent2d55dd1740cab5ab551e030fc183340d1e3dea39 (diff)
Dedup *fragments information common to apex and sdk
Previously, both the sdk and apex had to specify the same *fragments property to ensure that building a system image from a prebuilt version of the module (both APEX and sdk snapshots) would work. This change avoids the duplication by adding the apex to the sdk which allows the sdk to automatically export any APIs and related information provided by the APEX. At the moment that just includes information from *fragments properties but may expand in future. Bug: 232401814 Test: # Build snapshots with a fixed build number BUILD_NUMBER=fixed packages/modules/common/build/mainline_modules_sdks.sh # Remove api diff files as they contain file stamps of generated files so # differ every time they are generated. find out/dist/mainline-sdks -name \*txt | xargs rm # Save the snapshots away. mv out/dist/mainline-sdks before-changes # Apply this change. # Repeat the first two steps above and then run the following to verify # that this change had no effect on the generated snapshot contents. meld before-changes out/dist/mainline-sdks Change-Id: I0d69d80cd3ceae32768ce1a6ee0ce457d6e110ab
-rw-r--r--apex/Android.bp7
1 files changed, 5 insertions, 2 deletions
diff --git a/apex/Android.bp b/apex/Android.bp
index 6dbb5b357d..0d2ac1d197 100644
--- a/apex/Android.bp
+++ b/apex/Android.bp
@@ -66,8 +66,11 @@ android_app_certificate {
sdk {
name: "wifi-module-sdk",
- bootclasspath_fragments: ["com.android.wifi-bootclasspath-fragment"],
- systemserverclasspath_fragments: ["com.android.wifi-systemserverclasspath-fragment"],
+ apexes: [
+ // Adds exportable dependencies of the APEX to the sdk,
+ // e.g. *classpath_fragments.
+ "com.android.wifi",
+ ],
}
// Encapsulate the contributions made by the com.android.wifi to the bootclasspath.