Revert "Generate soong_config_module_type inline in the snapshot"
This reverts commit d29f8e0597.
Although I tested this well using unit tests they don't test
everything and although I tested the unpacking of some snapshots I did
not test what happens when all the ART sdk/module_exports
snapshots are unpacked. I just did and the build broke.
The build broke because while the soong_config_module_type modules are
marked as being Nameless (and so according to the documentation do not
have to have unique names) it turns out that is not true.
There is at least one place in the build where the names of Nameless
modules are checked and as a result this breaks.
I could fix the build breakage reasonably easily but the problem is
that I would have to apply that fix on all partners otherwise they
wouldn't be able to receive the next set of snapshots which is too
high a cost.
So, I am reverting this and will limit the use of inline
soong_config_module_type modules to optional modules.
Reason for revert: Breaks the build when snapshots are unpacked.
Bug: 233965247
Change-Id: I1faae863c48f1fbfd49d2545f242401bdd4f8f8a
This commit is contained in:
@@ -1,30 +1,13 @@
|
||||
// This is auto-generated. DO NOT EDIT.
|
||||
|
||||
// Soong config variable module type added by test_art.
|
||||
soong_config_module_type {
|
||||
name: "art_prebuilt_java_import",
|
||||
module_type: "java_import",
|
||||
config_namespace: "art_module",
|
||||
bool_variables: ["source_build"],
|
||||
properties: ["prefer"],
|
||||
}
|
||||
|
||||
// Soong config variable module type added by test_art.
|
||||
soong_config_module_type {
|
||||
name: "art_prebuilt_prebuilt_bootclasspath_fragment",
|
||||
module_type: "prebuilt_bootclasspath_fragment",
|
||||
config_namespace: "art_module",
|
||||
bool_variables: ["source_build"],
|
||||
properties: ["prefer"],
|
||||
}
|
||||
|
||||
// Soong config variable module type added by test_art.
|
||||
soong_config_module_type {
|
||||
name: "art_prebuilt_prebuilt_platform_compat_config",
|
||||
module_type: "prebuilt_platform_compat_config",
|
||||
config_namespace: "art_module",
|
||||
bool_variables: ["source_build"],
|
||||
properties: ["prefer"],
|
||||
// Soong config variable stanza added by test_art.
|
||||
soong_config_module_type_import {
|
||||
from: "prebuilts/module_sdk/art/SoongConfig.bp",
|
||||
module_types: [
|
||||
"art_prebuilt_java_import",
|
||||
"art_prebuilt_prebuilt_bootclasspath_fragment",
|
||||
"art_prebuilt_prebuilt_platform_compat_config",
|
||||
],
|
||||
}
|
||||
|
||||
package {
|
||||
|
||||
@@ -1,21 +1,12 @@
|
||||
// This is auto-generated. DO NOT EDIT.
|
||||
|
||||
// Soong config variable module type added by test_common_mainline_module.
|
||||
soong_config_module_type {
|
||||
name: "module_java_sdk_library_import",
|
||||
module_type: "java_sdk_library_import",
|
||||
config_namespace: "ANDROID",
|
||||
bool_variables: ["module_build_from_source"],
|
||||
properties: ["prefer"],
|
||||
}
|
||||
|
||||
// Soong config variable module type added by test_common_mainline_module.
|
||||
soong_config_module_type {
|
||||
name: "module_prebuilt_bootclasspath_fragment",
|
||||
module_type: "prebuilt_bootclasspath_fragment",
|
||||
config_namespace: "ANDROID",
|
||||
bool_variables: ["module_build_from_source"],
|
||||
properties: ["prefer"],
|
||||
// Soong config variable stanza added by test_common_mainline_module.
|
||||
soong_config_module_type_import {
|
||||
from: "packages/modules/common/Android.bp",
|
||||
module_types: [
|
||||
"module_java_sdk_library_import",
|
||||
"module_prebuilt_bootclasspath_fragment",
|
||||
],
|
||||
}
|
||||
|
||||
package {
|
||||
|
||||
Reference in New Issue
Block a user