summaryrefslogtreecommitdiffstats
path: root/support/scripts
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-03-21 21:35:16 +0100
committerPeter Korsgaard <peter@korsgaard.com>2017-03-21 22:14:50 +0100
commitba72d71d79f623ae2a7c62a6fa32a77b951666ac (patch)
tree62c055a43de982febeb55a28838d5afc563d8f53 /support/scripts
parent2f6c5e513cf6688f9343a25ac90138e9ad751eb5 (diff)
downloadbuildroot-ba72d71d79f623ae2a7c62a6fa32a77b951666ac.tar.gz
buildroot-ba72d71d79f623ae2a7c62a6fa32a77b951666ac.zip
support/script/check-bin-arch: ignore /usr/share
/usr/share normally should not contain binaries executable for the target platform. However, it might contain ELF binaries for other platforms, such as firmware files installed by Qemu or pru-software-support. Instead of special-casing each package, let's simply ignore /usr/share. Fixes: http://autobuild.buildroot.net/results/6f3fea9f6adaef1573fbb0dd6903b5d99e470610/ (pru-software-support) http://autobuild.buildroot.net/results/fe8892bc22a03299fc41e30bfea5e42166838f88/ (qemu) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support/scripts')
-rwxr-xr-xsupport/scripts/check-bin-arch7
1 files changed, 7 insertions, 0 deletions
diff --git a/support/scripts/check-bin-arch b/support/scripts/check-bin-arch
index b3e2024617..e1c99e6e7a 100755
--- a/support/scripts/check-bin-arch
+++ b/support/scripts/check-bin-arch
@@ -29,6 +29,13 @@ while read f; do
continue
fi
+ # Skip files in /usr/share, several packages (qemu,
+ # pru-software-support) legitimately install ELF binaries that
+ # are not for the target architecture
+ if [[ "${f}" =~ ^\./usr/share/.* ]]; then
+ continue
+ fi
+
# Get architecture using readelf. We pipe through 'head -1' so
# that when the file is a static library (.a), we only take
# into account the architecture of the first object file.
OpenPOWER on IntegriCloud