sdm660-common: Build init with shared libraries

recovery partition now supports shared librarys. Therefore, init can now
be built as a dynamic executable both for normal and recovery modes.

To save save in the recovery mode, not all libs are dynamically linked.
Libs that are only used by init in the recovery mode are still
statically linked.

Note: init is still a static executable for legacy devices where
system-as-root is not on, because the dynamic linker and shared libs
which are in /system are not available when init starts.

Bug: 63673171
Test: `adb reboot recovery; adb devices` shows the device ID
Test: device boots to the UI in normal mode.
Test: do that for both walleye (system-as-root) and bullhead (legacy
ramdisk).

Change-Id: I30c84ae6a8e507e507ad0bb71acad281316d9e90
This commit is contained in:
Jiyong Park 2018-06-01 19:26:42 +09:00 committed by OdSazib
parent ae14105f3c
commit 87a5439069
No known key found for this signature in database
GPG key ID: 0954440B60470871

View file

@ -21,6 +21,7 @@ cc_library_static {
whole_static_libs: ["libbase"],
include_dirs: [
"system/core/base/include",
"system/core/init"
]
"system/core/init",
],
shared_libs: ["libbase"],
}