summaryrefslogtreecommitdiff
path: root/linkerconfig
diff options
context:
space:
mode:
author Kiyoung Kim <kiyoungkim@google.com> 2020-11-16 10:48:44 +0900
committer Kiyoung Kim <kiyoungkim@google.com> 2020-12-01 14:09:03 +0900
commit24dfc1fbb2d2ccf5377613f3c0bc4b088f39fd0e (patch)
tree060f5989cb00f962d3b72baf664233c1d9ce3d7b /linkerconfig
parent493e7ec3eee7e62035326eff5defbeb0cca6de82 (diff)
Generate system stub library list at build time
List of stub libraries from system (and bionic APEX) is currently managed in static file. This change generates the list at build time and adds to the system config so linkerconfig can use it. Bug: 172889962 Test: Build cuttlefish and confirmed list is generated in /system/etc/linker.config.pb Change-Id: Ie0400e9d1098b0de19c6a7c25f261384aadde0a3
Diffstat (limited to 'linkerconfig')
-rw-r--r--linkerconfig/linkerconfig.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/linkerconfig/linkerconfig.go b/linkerconfig/linkerconfig.go
index 1c44c746f..623c9dd12 100644
--- a/linkerconfig/linkerconfig.go
+++ b/linkerconfig/linkerconfig.go
@@ -102,6 +102,7 @@ func (l *linkerConfig) AndroidMkEntries() []android.AndroidMkEntries {
entries.SetString("LOCAL_MODULE_PATH", l.installDirPath.ToMakePath().String())
entries.SetString("LOCAL_INSTALLED_MODULE_STEM", l.outputFilePath.Base())
entries.SetBoolIfTrue("LOCAL_UNINSTALLABLE_MODULE", !installable)
+ entries.SetString("LINKER_CONFIG_PATH_"+l.Name(), l.OutputFile().String())
},
},
}}