platform_build_soong/apex
Paul Duffin ba6afd0dba Allow contents and image_name to be specified together
Previously, only one of the contents or image_name properties could be
specified at once which meant that there was no way to create a
prebuilt which lists its fixed contents while at the same time allowing
it to check that that the contents matched what the build configuration
required.

e.g. a prebuilt_bootclasspath_fragment that had image_name: "art",
could not list its contents and also check that those contents matched
the ART_APEX_JARS which the build configuration required.

This change allows contents and image_name to be specified together and
adds a check to make sure that the contents are consistent with the
configuration appropriate to the image_name. The check is only
performed for modules that are active so that a
prebuilt_bootclasspath_fragment which was created without coverage
enabled (the default) would not cause a build failure in a coverage
build unless it was preferred.

Bug: 177892522
Test: m nothing
Change-Id: Ie601f29f707b3f6030fa7d252afa2c4826cc9f8e
2021-04-26 21:21:58 +01:00
..
Android.bp Rename BootImageModule to BootclasspathFragmentModule 2021-04-23 16:59:26 +01:00
androidmk.go Support paths for vintf_fragments from Soong. 2021-04-21 09:11:32 -04:00
apex.go Delegate retrieval of dex boot jar for apex to the bootclasspath_fragment 2021-04-26 11:09:25 +01:00
apex_singleton.go Treat allowed_deps.txt source file as optional. 2021-03-18 11:15:33 +00:00
apex_test.go Merge "Support paths for vintf_fragments from Soong." 2021-04-22 17:03:31 +00:00
bootclasspath_fragment_test.go Allow contents and image_name to be specified together 2021-04-26 21:21:58 +01:00
builder.go Merge "Make apex.key and certificate overridable." 2021-04-22 15:37:22 +00:00
deapexer.go Add exported_bootclasspath_fragments to prebuilt_apex/apex_set 2021-04-23 12:12:37 +01:00
key.go Extract apex registration code into function for reuse 2021-03-09 23:03:40 +00:00
OWNERS Move allowed_deps.txt to packages/modules/common. 2021-03-17 13:44:16 +00:00
platform_bootclasspath_test.go Move monolithic stub flags generation to platform_bootclasspath 2021-04-22 14:23:28 +01:00
prebuilt.go Add exported_bootclasspath_fragments to prebuilt_apex/apex_set 2021-04-23 12:12:37 +01:00
TEST_MAPPING Add TEST_MAPPING for build/soong/apex 2019-08-07 17:33:24 +09:00
testing.go bootclasspath_fragment: Add contents to snapshot 2021-04-21 23:54:22 +01:00
vndk.go Remove global state from VNDK apexes 2021-03-02 12:23:16 -08:00
vndk_test.go Don't use incorrect version names like VER or BOARD even in tests 2021-04-05 09:32:06 +09:00