mk: simplify elfcheck()

fe_() called inside subshell, ftw

Signed-off-by: Leah Rowe <leah@libreboot.org>
25.04_branch
Leah Rowe 2025-05-05 15:51:04 +01:00
parent e2f6e7a410
commit 4a9376adc4
1 changed files with 2 additions and 4 deletions

6
mk
View File

@ -368,10 +368,8 @@ check_defconfig()
elfcheck()
{
# TODO: very hacky check. do it properly (based on build.list)
for elftest in "$dest_dir"/*; do
[ -e "$elftest" ] && e "$elftest" f && return 1
done; :
# TODO: *STILL* very hacky check. do it properly (based on build.list)
( fe_ "exit 1" "$dest_dir" -type f ) || return 1; :
}
handle_makefile()