Use common interface to build linker configuration
Current filesystem logic is quite separated with systemimage, so it can
end up generating linker configuration twice which can end up an error
case. This change creates a common interface and let both filesystem and
systemimage can implement their own function to generate linker
configuration.
Bug: 324995772
Test: Compared linker.config.pb of generic_system_image with this patch
Change-Id: Ic515e54deeafbae74fd02bb023661606aa7e0b7c
diff --git a/apex/apex_test.go b/apex/apex_test.go
index 988c1ce..0515f71 100644
--- a/apex/apex_test.go
+++ b/apex/apex_test.go
@@ -10426,7 +10426,10 @@
deps: [
"libfoo",
],
- linker_config_src: "linker.config.json",
+ linkerconfig: {
+ gen_linker_config: true,
+ linker_config_srcs: ["linker.config.json"],
+ },
}
cc_library {