summaryrefslogtreecommitdiff
path: root/script/build/roms
diff options
context:
space:
mode:
Diffstat (limited to 'script/build/roms')
-rwxr-xr-xscript/build/roms15
1 files changed, 10 insertions, 5 deletions
diff --git a/script/build/roms b/script/build/roms
index ff50d9b7..a96ad89b 100755
--- a/script/build/roms
+++ b/script/build/roms
@@ -31,8 +31,12 @@ main()
{
while [ $# -gt 0 ]; do
case ${1} in
- help) usage && exit 0 ;;
- list) items config/coreboot && exit 0 ;;
+ help)
+ usage
+ exit 0 ;;
+ list)
+ items config/coreboot || :
+ exit 0 ;;
-d) _displaymode="${2}" ;;
-p) _payload="${2}" ;;
-k) _keyboard="${2}" ;;
@@ -216,10 +220,11 @@ build_target()
build_roms()
{
cbcfg="${1}"
- [ ! -f "${cbcfg}" ] && \
+ if [ ! -f "${cbcfg}" ]; then
printf "'%s' does not exist. Skipping build for %s %s %s\n" \
- "${cbcfg}" "${board}" "${displaymode}" "${initmode}" \
- 1>&2 && return 0
+ "${cbcfg}" "${board}" "${displaymode}" "${initmode}" 1>&2
+ return 0
+ fi
x_ ./update trees -b coreboot ${board}