trees: fix build issue caused by bad elf check

we're not checking for bad elfs, but the check itself was bad

due to a quirk in how sh works. really, really obscure bug.

fixed now!

if the given directory didn't actually exist, or there were no
files in it, it'd be searching for the file named "*"

which is obviously wrong

Signed-off-by: Leah Rowe <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-06-07 11:20:45 +01:00
parent 7aa9f22409
commit 0b7566cb78
1 changed files with 1 additions and 0 deletions

View File

@ -204,6 +204,7 @@ elfcheck()
{
# TODO: very hacky check. do it properly (based on build.list)
for elftest in "$dest_dir"/*; do
[ -e "$elftest" ] || continue
e "$elftest" f && return 1
done
}