summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbig biff <bigbiff@teamw.in>2019-11-08 00:47:20 +0100
committerGerrit Code Review <gerrit2@gerrit.omnirom.org>2019-11-08 00:47:20 +0100
commit8c0bcc8ba0d43cf3c88c9b63b10994a262ec125e (patch)
treef28bcbcfde1d1ab628927dab22d55f5f4cd1e416
parentcache: Fix typo in twrp-functions.cpp for A/B devices (diff)
parentAdd ld.config.txt for Android 8.x+ trees (diff)
downloadandroid_bootable_recovery-8c0bcc8ba0d43cf3c88c9b63b10994a262ec125e.tar
android_bootable_recovery-8c0bcc8ba0d43cf3c88c9b63b10994a262ec125e.tar.gz
android_bootable_recovery-8c0bcc8ba0d43cf3c88c9b63b10994a262ec125e.tar.bz2
android_bootable_recovery-8c0bcc8ba0d43cf3c88c9b63b10994a262ec125e.tar.lz
android_bootable_recovery-8c0bcc8ba0d43cf3c88c9b63b10994a262ec125e.tar.xz
android_bootable_recovery-8c0bcc8ba0d43cf3c88c9b63b10994a262ec125e.tar.zst
android_bootable_recovery-8c0bcc8ba0d43cf3c88c9b63b10994a262ec125e.zip
Diffstat (limited to '')
-rw-r--r--etc/Android.mk9
-rw-r--r--etc/init.rc1
-rwxr-xr-xetc/init.recovery.ldconfig.rc2
-rw-r--r--prebuilt/Android.mk1
4 files changed, 13 insertions, 0 deletions
diff --git a/etc/Android.mk b/etc/Android.mk
index 4aeb251dc..ca549ea29 100644
--- a/etc/Android.mk
+++ b/etc/Android.mk
@@ -60,6 +60,15 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26; echo $$?),0)
LOCAL_SRC_FILES := init.recovery.hlthchrg26.rc
include $(BUILD_PREBUILT)
+
+ include $(CLEAR_VARS)
+ LOCAL_MODULE := init.recovery.ldconfig.rc
+ LOCAL_MODULE_TAGS := eng
+ LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
+ LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+
+ LOCAL_SRC_FILES := init.recovery.ldconfig.rc
+ include $(BUILD_PREBUILT)
else
include $(CLEAR_VARS)
LOCAL_MODULE := init.recovery.hlthchrg.rc
diff --git a/etc/init.rc b/etc/init.rc
index 348471d4f..e0889c44d 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -1,4 +1,5 @@
import /init.recovery.logd.rc
+import /init.recovery.ldconfig.rc
import /init.recovery.mksh.rc
import /init.recovery.usb.rc
import /init.recovery.service.rc
diff --git a/etc/init.recovery.ldconfig.rc b/etc/init.recovery.ldconfig.rc
new file mode 100755
index 000000000..ad9c29680
--- /dev/null
+++ b/etc/init.recovery.ldconfig.rc
@@ -0,0 +1,2 @@
+on fs
+ export LD_CONFIG_FILE /sbin/ld.config.txt
diff --git a/prebuilt/Android.mk b/prebuilt/Android.mk
index d33079994..4640d03d0 100644
--- a/prebuilt/Android.mk
+++ b/prebuilt/Android.mk
@@ -370,6 +370,7 @@ ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0)
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libvintf.so
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libtinyxml2.so
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/android.hidl.token@1.0.so
+ RELINK_SOURCE_FILES += $(TARGET_OUT_ETC)/ld.config.txt
ifneq ($(wildcard system/core/libkeyutils/Android.bp),)
RELINK_SOURCE_FILES += $(TARGET_OUT_SHARED_LIBRARIES)/libkeyutils.so
endif