summaryrefslogtreecommitdiffstats
path: root/support
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-09-05 20:59:04 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-09-05 20:59:04 +0200
commitcb0f3fa13f315a1aa0469d3479673860dcba8eb9 (patch)
tree181803dfad893792812c808c5d2a798c5b6794ef /support
parentc96b8675ea03a5d3194d439f740c725dd239ed1a (diff)
downloadbuildroot-cb0f3fa13f315a1aa0469d3479673860dcba8eb9.tar.gz
buildroot-cb0f3fa13f315a1aa0469d3479673860dcba8eb9.zip
support/scripts/check-bin-arch: fix symbolic link check
Commit c96b8675ea03a5d3194d439f740c725dd239ed1a ("support/scripts/check-bin-arch: ignore symbolic links") was bogus, because it tested ${f}, which is the relative path of the file inside ${TARGET_DIR}, so we end up testing if ${f} on the system is a symbolic link. This commit fixes that by testing ${TARGET_DIR}/${f}. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/scripts/check-bin-arch2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/scripts/check-bin-arch b/support/scripts/check-bin-arch
index 700ee3f65e..887b6613cd 100755
--- a/support/scripts/check-bin-arch
+++ b/support/scripts/check-bin-arch
@@ -38,7 +38,7 @@ while read f; do
# Skip symlinks. Some symlinks may have absolute paths as
# target, pointing to host binaries while we're building.
- if [[ -L "${f}" ]]; then
+ if [[ -L "${TARGET_DIR}/${f}" ]]; then
continue
fi
OpenPOWER on IntegriCloud