mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
build/firmware/coreboot: confirm compiled roms
return with error status if no images were compiled if a rom image fails to compile, then it will also exit with error status, but sometimes you can pass argument "cros" or "default", and it would not give you rom images due to no target.cfg files, but these are also ignored because of that. this restores the same behaviour that existed before, for this final error check. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -28,7 +28,7 @@ v="romdir cbdir cbfstool cbrom initmode displaymode cbcfg targetdir tree arch"
|
||||
v="${v} grub_timeout ubdir blobs_required board grub_scan_disk uboot_config"
|
||||
eval "$(setvars "n" ${pv})"
|
||||
eval "$(setvars "" ${v})"
|
||||
eval "$(setvars "" boards _displaymode _payload _keyboard all)"
|
||||
eval "$(setvars "" boards _displaymode _payload _keyboard all targets)"
|
||||
|
||||
main()
|
||||
{
|
||||
@@ -56,8 +56,13 @@ main()
|
||||
eval "$(setvars "" ${v})"
|
||||
board="${x}"
|
||||
check_target
|
||||
prepare_target
|
||||
prepare_target
|
||||
[ -f "bin/${x}" ] || continue
|
||||
targets="bin/${x}\n${targets}"
|
||||
done
|
||||
|
||||
[ -z ${targets} ] && err "No ROM images were compiled"
|
||||
printf "ROM images available in these directories:\n${targets%, }\n"
|
||||
}
|
||||
|
||||
check_target()
|
||||
|
||||
Reference in New Issue
Block a user