diff options
author | Leah Rowe <leah@libreboot.org> | 2023-09-04 14:54:36 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-09-04 14:54:36 +0100 |
commit | ea7fae97bd93ecbb82a1100c220d13a1f39d6ab2 (patch) | |
tree | d624807e286bf2f8abea363ba538b98ce2f1ae9e /script/build/boot/roms_helper | |
parent | c62a4239096e860a254a0e3f059007e844aec78a (diff) |
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>
Diffstat (limited to 'script/build/boot/roms_helper')
-rwxr-xr-x | script/build/boot/roms_helper | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/script/build/boot/roms_helper b/script/build/boot/roms_helper index a5cdb85c..76487877 100755 --- a/script/build/boot/roms_helper +++ b/script/build/boot/roms_helper @@ -186,8 +186,6 @@ build_dependencies() ./handle make file -b ${memtest_bin%/*} || \ err "cannot build memtest86+" - [ -d "${romdir}/" ] || mkdir -p "${romdir}/" || \ - err "cannot create rom directory: \"${romdir}\"" rm -f "${romdir}"/* || err "cannot: rm -f \"${romdir}\"/*" build_dependency_grub @@ -529,6 +527,9 @@ moverom() { printf "\nCreating new ROM image: %s\n" "${newrompath}" + [ -d "${newrompath%/*}" ] || mkdir -p "${newrompath%/*}/" || \ + err "moverom: cannot create rom directory: \"${newrompath%/*}\"" + [ "${blobs_required}" = "n" ] && \ newrompath="${newrompath%.rom}_noblobs.rom" |