From a039a46b0d050c8dc695f90b8decaa5ee7c8656d Mon Sep 17 00:00:00 2001 From: Volodymyr Zhdanov Date: Thu, 22 Oct 2020 01:33:24 +0300 Subject: [PATCH] extract_utils: implement patchelf Change-Id: I406f70ef1ce9ec7a0998f77439b7d3fa3ec4e62a --- build/tools/extract_utils.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/tools/extract_utils.sh b/build/tools/extract_utils.sh index fd7b5925..7c810236 100644 --- a/build/tools/extract_utils.sh +++ b/build/tools/extract_utils.sh @@ -1264,6 +1264,10 @@ function oat2dex() { export CDEXCONVERTER="$LINEAGE_ROOT"/prebuilts/tools-lineage/${HOST}-x86/bin/compact_dex_converter fi + if [ -z "$PATCHELF" ]; then + export PATCHELF="$LINEAGE_ROOT"/prebuilts/tools-lineage/${HOST}-x86/bin/patchelf + fi + # Extract existing boot.oats to the temp folder if [ -z "$ARCHES" ]; then echo "Checking if system is odexed and locating boot.oats..."