From 173256b06a4d8a2c52efcc95ca6aab9a59a9f61e Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Thu, 31 Oct 2024 19:59:30 +0000 Subject: 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 --- filesystem/filesystem_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'filesystem/filesystem_test.go') 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 { -- cgit v1.2.3-59-g8ed1b