mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
support/scripts/fix-rpath: check if the patchelf utility is executable
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
994301a26f
commit
17dd0d49da
@ -45,6 +45,9 @@ Environment:
|
|||||||
|
|
||||||
TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR
|
TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR
|
||||||
(default HOST_DIR/opt/ext-toolchain)
|
(default HOST_DIR/opt/ext-toolchain)
|
||||||
|
|
||||||
|
Returns: 0 if success or 1 in case of error
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,6 +63,11 @@ main() {
|
|||||||
local find_args=( )
|
local find_args=( )
|
||||||
local sanitize_extra_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
|
case "${tree}" in
|
||||||
host)
|
host)
|
||||||
rootdir="${HOST_DIR}"
|
rootdir="${HOST_DIR}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user