summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-01-06 18:15:22 +0000
committerLeah Rowe <leah@libreboot.org>2025-01-06 18:15:22 +0000
commitd4cc94d6b449060db7c2224e584b2e84d04e6d1f (patch)
treead1384c6a2bc4391fb7cb0d1d2f2754a8db075e2
parentde6d2f556f16cae1a2c038f50d90a3a3945e3d42 (diff)
rom.sh: don't run mkpicotool on dry builds
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/rom.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rom.sh b/include/rom.sh
index 52e39b52..3e8c9c9b 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -8,9 +8,10 @@
mkserprog()
{
[ $# -lt 1 ] && $err "mkserprog: no arguments provided"
+ [ "$_f" = "-d" ] && return 0 # dry run
+
[ "$1" = "pico" ] && mkpicotool
- [ "$_f" = "-d" ] && return 0 # dry run
basename -as .h "$serdir/"*.h > "$TMPDIR/ser" || $err "!mk $1 $TMPDIR"
while read -r sertarget; do