Commit 17dd0d49 authored by Wolfgang Grandegger's avatar Wolfgang Grandegger Committed by Thomas Petazzoni
Browse files

support/scripts/fix-rpath: check if the patchelf utility is executable



Signed-off-by: default avatarWolfgang Grandegger <wg@grandegger.com>
Reviewed-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 994301a2
......@@ -45,6 +45,9 @@ Environment:
TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR
(default HOST_DIR/opt/ext-toolchain)
Returns: 0 if success or 1 in case of error
EOF
}
......@@ -60,6 +63,11 @@ main() {
local find_args=( )
local sanitize_extra_args=( )
if ! "${PATCHELF}" --version > /dev/null 2>&1; then
echo "Error: can't execute patchelf utility '${PATCHELF}'"
exit 1
fi
case "${tree}" in
host)
rootdir="${HOST_DIR}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment