summaryrefslogtreecommitdiff
path: root/filesystem/filesystem_test.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-10-31 19:59:30 +0000
committer Spandan Das <spandandas@google.com> 2024-11-01 00:28:00 +0000
commit173256b06a4d8a2c52efcc95ca6aab9a59a9f61e (patch)
tree6921ce8323c1dd70eaa0e3501c7ae77e2938d928 /filesystem/filesystem_test.go
parent8fe68dcfd71efa99aebf7f5ef2f3b19d78621a24 (diff)
Use a boolean to determine if linker.config.pb should be generated
vendor and product generate a linker.config.pb even if `PRODUCT_VENDOR_LINKER_CONFIG_FRAGMENTS` or `PRODUCT_PRODUCT_LINKER_CONFIG_FRAGMENTS` are empty respectively. This CL introduces a new property to determine if a filesystem should generate a linker.config.pb. The autogenerated vendor and product filesystem modules will set this property to true. Test: go test ./filesystem Bug: 376515221 Change-Id: Ibd007df0d287034f4d227a6054bd83937570ec27
Diffstat (limited to 'filesystem/filesystem_test.go')
-rw-r--r--filesystem/filesystem_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/filesystem/filesystem_test.go b/filesystem/filesystem_test.go
index 8fe5daca0..f767eaed1 100644
--- a/filesystem/filesystem_test.go
+++ b/filesystem/filesystem_test.go
@@ -670,7 +670,10 @@ func TestInstallLinkerConfigFile(t *testing.T) {
android_filesystem {
name: "myfilesystem",
deps: ["libfoo_has_no_stubs", "libfoo_has_stubs"],
- linker_config_srcs: ["linker.config.json"],
+ linkerconfig: {
+ gen_linker_config: true,
+ linker_config_srcs: ["linker.config.json"],
+ },
partition_type: "vendor",
}
cc_library {