mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-14 07:19:40 +02:00
build/boot/roms: don't create empty bin/ directory
also: only return zero status if rom images were succesfully built, and print a list of each rom image directory based on what was actually compiled, rather than just saying that the rom images are stored under bin/ Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -35,6 +35,7 @@ read projectname < projectname
|
||||
opts=""
|
||||
boards=
|
||||
firstoption=""
|
||||
targets=""
|
||||
|
||||
main()
|
||||
{
|
||||
@@ -68,14 +69,19 @@ main()
|
||||
if [ "${firstoption}" = "all" ]; then
|
||||
for target in $(./build command options config/coreboot); do
|
||||
buildrom "${target}" || err "build/roms (1): error"
|
||||
[ -d "bin/${target}" ] && targets="${target} ${targets}"
|
||||
done
|
||||
else
|
||||
for board in ${boards}; do
|
||||
buildrom "${board}" || err "build/roms (2): error"
|
||||
[ -d "bin/${board}" ] && targets="${board} ${targets}"
|
||||
done
|
||||
fi
|
||||
|
||||
printf "\n\nDone! Your ROMs are in bin/\n\n"
|
||||
[ -z "${targets}" ] && err "No ROM images were compiled."
|
||||
printf "\n\nYour ROM images are available in these directories:\n"
|
||||
for x in ${targets}; do
|
||||
printf "* bin/%s\n" "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
usage()
|
||||
|
||||
Reference in New Issue
Block a user