mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
support/scripts: fix TABs/spaces in check-host-rpath
Commitc4e6d5c8be(core: implement per-package SDK and target) introduced leading TABs in that otherwise-space-indented script. Convert all to spaces, for homogeneity Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit2a592f0b2a) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
e7f84216d4
commit
fad6cb4d62
@@ -93,11 +93,11 @@ check_elf_has_rpath() {
|
|||||||
dir="$( sed -r -e 's:/+:/:g; s:/$::;' <<<"${dir}" )"
|
dir="$( sed -r -e 's:/+:/:g; s:/$::;' <<<"${dir}" )"
|
||||||
[ "${dir}" = "${hostdir}/lib" ] && return 0
|
[ "${dir}" = "${hostdir}/lib" ] && return 0
|
||||||
[ "${dir}" = "\$ORIGIN/../lib" ] && return 0
|
[ "${dir}" = "\$ORIGIN/../lib" ] && return 0
|
||||||
# This check is done even for builds where
|
# This check is done even for builds where
|
||||||
# BR2_PER_PACKAGE_DIRECTORIES is disabled. In this case,
|
# BR2_PER_PACKAGE_DIRECTORIES is disabled. In this case,
|
||||||
# PER_PACKAGE_DIR and therefore ${perpackagedir} points to
|
# PER_PACKAGE_DIR and therefore ${perpackagedir} points to
|
||||||
# a non-existent directory, and this check will always be
|
# a non-existent directory, and this check will always be
|
||||||
# false.
|
# false.
|
||||||
[[ ${dir} =~ "${perpackagedir}/"[^/]+/host/lib ]] && return 0
|
[[ ${dir} =~ "${perpackagedir}/"[^/]+/host/lib ]] && return 0
|
||||||
done
|
done
|
||||||
done < <( readelf -d "${file}" 2>/dev/null \
|
done < <( readelf -d "${file}" 2>/dev/null \
|
||||||
|
|||||||
Reference in New Issue
Block a user