Merge changes from topic "sharedlib_in_recovery"
am: 91061985f5
Change-Id: Icaabb1cb46057771f71eb3fa0fad7be49d50dc64
This commit is contained in:
commit
aa39f52a56
2 changed files with 31 additions and 21 deletions
|
|
@ -67,24 +67,26 @@ cc_defaults {
|
||||||
"libsquashfs_utils",
|
"libsquashfs_utils",
|
||||||
"liblogwrap",
|
"liblogwrap",
|
||||||
"libext4_utils",
|
"libext4_utils",
|
||||||
"libcutils",
|
|
||||||
"libbase",
|
|
||||||
"libc",
|
|
||||||
"libseccomp_policy",
|
"libseccomp_policy",
|
||||||
"libselinux",
|
|
||||||
"liblog",
|
|
||||||
"libcrypto_utils",
|
"libcrypto_utils",
|
||||||
"libcrypto",
|
|
||||||
"libc++_static",
|
|
||||||
"libdl",
|
|
||||||
"libsparse",
|
"libsparse",
|
||||||
"libz",
|
|
||||||
"libprocessgroup",
|
"libprocessgroup",
|
||||||
"libavb",
|
"libavb",
|
||||||
"libkeyutils",
|
"libkeyutils",
|
||||||
"libprotobuf-cpp-lite",
|
"libprotobuf-cpp-lite",
|
||||||
"libpropertyinfoserializer",
|
"libpropertyinfoserializer",
|
||||||
"libpropertyinfoparser",
|
"libpropertyinfoparser",
|
||||||
|
"libselinux",
|
||||||
|
],
|
||||||
|
shared_libs: [
|
||||||
|
"libcutils",
|
||||||
|
"libbase",
|
||||||
|
"libc",
|
||||||
|
"liblog",
|
||||||
|
"libcrypto",
|
||||||
|
"libc++",
|
||||||
|
"libdl",
|
||||||
|
"libz",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -166,7 +168,6 @@ cc_binary {
|
||||||
cc_test {
|
cc_test {
|
||||||
name: "init_tests",
|
name: "init_tests",
|
||||||
defaults: ["init_defaults"],
|
defaults: ["init_defaults"],
|
||||||
static_executable: true,
|
|
||||||
srcs: [
|
srcs: [
|
||||||
"devices_test.cpp",
|
"devices_test.cpp",
|
||||||
"init_test.cpp",
|
"init_test.cpp",
|
||||||
|
|
@ -187,7 +188,6 @@ cc_test {
|
||||||
|
|
||||||
cc_benchmark {
|
cc_benchmark {
|
||||||
name: "init_benchmarks",
|
name: "init_benchmarks",
|
||||||
static_executable: true,
|
|
||||||
defaults: ["init_defaults"],
|
defaults: ["init_defaults"],
|
||||||
srcs: [
|
srcs: [
|
||||||
"subcontext_benchmark.cpp",
|
"subcontext_benchmark.cpp",
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,6 @@ LOCAL_SRC_FILES := main.cpp
|
||||||
|
|
||||||
LOCAL_MODULE:= init
|
LOCAL_MODULE:= init
|
||||||
|
|
||||||
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
||||||
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
|
||||||
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)
|
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_UNSTRIPPED)
|
||||||
|
|
||||||
|
|
@ -59,18 +58,10 @@ LOCAL_STATIC_LIBRARIES := \
|
||||||
libsquashfs_utils \
|
libsquashfs_utils \
|
||||||
liblogwrap \
|
liblogwrap \
|
||||||
libext4_utils \
|
libext4_utils \
|
||||||
libcutils \
|
|
||||||
libbase \
|
|
||||||
libc \
|
|
||||||
libseccomp_policy \
|
libseccomp_policy \
|
||||||
libselinux \
|
|
||||||
liblog \
|
|
||||||
libcrypto_utils \
|
libcrypto_utils \
|
||||||
libcrypto \
|
|
||||||
libc++_static \
|
|
||||||
libdl \
|
|
||||||
libsparse \
|
libsparse \
|
||||||
libz \
|
libselinux \
|
||||||
libprocessgroup \
|
libprocessgroup \
|
||||||
libavb \
|
libavb \
|
||||||
libkeyutils \
|
libkeyutils \
|
||||||
|
|
@ -78,6 +69,25 @@ LOCAL_STATIC_LIBRARIES := \
|
||||||
libpropertyinfoserializer \
|
libpropertyinfoserializer \
|
||||||
libpropertyinfoparser \
|
libpropertyinfoparser \
|
||||||
|
|
||||||
|
shared_libs := \
|
||||||
|
libcutils \
|
||||||
|
libbase \
|
||||||
|
liblog \
|
||||||
|
libcrypto \
|
||||||
|
libdl \
|
||||||
|
libz \
|
||||||
|
|
||||||
|
ifneq ($(BOARD_BUILD_SYSTEM_ROOT_IMAGE),true)
|
||||||
|
# init is static executable for non-system-as-root devices, because the dynamic linker
|
||||||
|
# and shared libs are not available before /system is mounted, but init has to run
|
||||||
|
# before the partition is mounted.
|
||||||
|
LOCAL_STATIC_LIBRARIES += $(shared_libs) libc++_static
|
||||||
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
||||||
|
else
|
||||||
|
LOCAL_SHARED_LIBRARIES := $(shared_libs) libc++
|
||||||
|
endif
|
||||||
|
shared_libs :=
|
||||||
|
|
||||||
LOCAL_REQUIRED_MODULES := \
|
LOCAL_REQUIRED_MODULES := \
|
||||||
e2fsdroid \
|
e2fsdroid \
|
||||||
mke2fs \
|
mke2fs \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue