Create symlink for bionic files

This change creates following symlinks for bionic files.

/system/lib/libc.so -> /apex/com.android.runtime/lib/bionic/libc.so
/system/lib/libm.so -> /apex/com.android.runtime/lib/bionic/libm.so
/system/lib/libdl.so -> /apex/com.android.runtime/lib/bionic/libdl.so
/system/bin/linker -> /apex/com.android.runtime/bin/linker
...

This allows us to not have mountpoints under /bionic.

Bug: 125549215
Test: m and inspect the symlinks in the system partition.
Change-Id: I3a58bf4f88c967862dbf06065a1af8fc4700dda3
This commit is contained in:
Jiyong Park
2019-02-25 11:05:47 +09:00
parent 33548f07a8
commit f11943527d
6 changed files with 87 additions and 10 deletions

View File

@@ -599,6 +599,14 @@ func (c *Module) bootstrap() bool {
return Bool(c.Properties.Bootstrap)
}
func isBionic(name string) bool {
switch name {
case "libc", "libm", "libdl", "linker":
return true
}
return false
}
type baseModuleContext struct {
android.BaseContext
moduleContextImpl