From 67a607b88cb19619a39f60d8b665a1bd0b4a1285 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 10 May 2023 02:48:34 +0100 Subject: build/boot/roms*: RFC 2646 compliance No more than 80 characters per line. --- resources/scripts/build/boot/roms | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'resources/scripts/build/boot/roms') diff --git a/resources/scripts/build/boot/roms b/resources/scripts/build/boot/roms index 4a34f619..e02ac1b7 100755 --- a/resources/scripts/build/boot/roms +++ b/resources/scripts/build/boot/roms @@ -3,7 +3,8 @@ # # helper script: build coreboot images with various payloads # -# Copyright (C) 2014, 2015, 2016, 2020, 2021 Leah Rowe +# Copyright (C) 2014,2015,2016,2020,2021,2023 Leah Rowe +# # Copyright (C) 2015 Klemens Nanni # Copyright (C) 2022 Caleb La Grange # Copyright (C) 2022 Ferass El Hafidi @@ -51,9 +52,10 @@ help() { -p: payload -k: keyboard layout - Example: ./build boot roms x60 - Example: ./build boot roms x200_8mb x60 - Example: ./build boot roms x230_12mb -p grub -d corebootfb -k usqwerty + Example commands: + ./build boot roms x60 + ./build boot roms x200_8mb x60 + ./build boot roms x60 -p grub -d corebootfb -k usqwerty possible values for 'boardname': $(listboards) @@ -71,13 +73,15 @@ die() { buildrom() { board="$1" - # Start by building blobs and placing them in the coreboot tree only for boards that need them + # Start by building blobs and placing them in the + # coreboot tree only for boards that need them ./blobutil download ${board} || exit 1 if [ -d "resources/coreboot/${board}/" ]; then ./build boot roms_helper "${board}${opts}" else - die "\nbuild/roms: target not defined in the build system: %s\n" "${board}" + printf "\nbuild/roms: target not defined: %s\n" ${board} + die "Run: ./build boot roms list" fi } @@ -118,11 +122,11 @@ fi if [ "${firstoption}" = "all" ]; then for boardname in $(listboards); do - buildrom "${boardname}" || die "build/roms: something went wrong" + buildrom "${boardname}" || die "build/roms: error" done else for board in ${boards}; do - buildrom "${board}" || die "build/roms: something went wrong" + buildrom "${board}" || die "build/roms: error" done fi else @@ -130,6 +134,4 @@ else exit 1 fi - printf "\n\nDone! Your ROMs are in bin/\n\n" - -- cgit v1.2.1