Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] support/script/check-bin-arch: ignore /usr/lib/grub
@ 2017-08-16 17:39 Andrew Pilloud
  2017-08-16 21:27 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Pilloud @ 2017-08-16 17:39 UTC (permalink / raw)
  To: buildroot

/usr/lib/grub may contain binaries for the grub bootloader. These
ELF binaries may be for other platforms.

Signed-off-by: Andrew Pilloud <andrewpilloud@igneoussystems.com>
---
 support/scripts/check-bin-arch | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/support/scripts/check-bin-arch b/support/scripts/check-bin-arch
index b822cdd60d..2bb9d0a6b9 100755
--- a/support/scripts/check-bin-arch
+++ b/support/scripts/check-bin-arch
@@ -36,6 +36,12 @@ while read f; do
 		continue
 	fi
 
+	# Skip files in /usr/lib/grub, grub legitimately installs ELF
+	# binaries that are not for the target architecture
+	if [[ "${f}" =~ ^/usr/lib/grub/.* ]]; 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.
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-16 21:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-16 17:39 [Buildroot] [PATCH 1/1] support/script/check-bin-arch: ignore /usr/lib/grub Andrew Pilloud
2017-08-16 21:27 ` Thomas Petazzoni
2017-08-16 21:42   ` Andrew Pilloud
2017-08-16 21:55     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox