summaryrefslogtreecommitdiff
path: root/include/rom.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/rom.sh')
-rw-r--r--include/rom.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/rom.sh b/include/rom.sh
index c1b78c75..1eb199cd 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -65,13 +65,9 @@ check_coreboot_util()
utilmode="" && [ -n "$mode" ] && utilmode="clean"
x_ make -C "$utilsrcdir" $utilmode -j$XBMK_THREADS $makeargs
[ -n "$mode" ] && x_ rm -Rf "$utilelfdir" && return 0
- [ -z "$mode" ] || return 0
- [ -f "$utilelfdir/$1" ] && return 0
-
- x_ mkdir -p "$utilelfdir"
- x_ cp "$utilsrcdir/$1" "$utilelfdir"
- [ "$1" = "cbfstool" ] || return 0
- x_ cp "$utilsrcdir/rmodtool" "$utilelfdir"
+ [ ! -f "$utilelfdir/$1" ] && x_ mkdir -p "$utilelfdir" && \
+ x_ cp "$utilsrcdir/$1" "$utilelfdir" && [ "$1" = "cbfstool" ] && \
+ x_ cp "$utilsrcdir/rmodtool" "$utilelfdir"; :
}
mkcorebootbin()