mk: simplify elfcheck()

fe_() called inside subshell, ftw

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-05 15:51:04 +01:00
parent 437ac2454c
commit c2182d8219

6
mk
View File

@@ -370,10 +370,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()