summaryrefslogtreecommitdiff
path: root/script/build/fw
diff options
context:
space:
mode:
Diffstat (limited to 'script/build/fw')
-rwxr-xr-xscript/build/fw/coreboot15
1 files changed, 8 insertions, 7 deletions
diff --git a/script/build/fw/coreboot b/script/build/fw/coreboot
index bf7943ac..487bfa31 100755
--- a/script/build/fw/coreboot
+++ b/script/build/fw/coreboot
@@ -3,7 +3,7 @@
# SPDX-FileCopyrightText: 2014-2016,2020,2021,2023 Leah Rowe <leah@libreboot.org>
# SPDX-FileCopyrightText: 2021,2022 Ferass El Hafidi <vitali64pmemail@protonmail.com>
# SPDX-FileCopyrightText: 2022 Caleb La Grange <thonkpeasant@protonmail.com>
-# SPDX-FileCopyrightText: 2022 Alper Nebi Yasak <alpernebiyasak@gmail.com>
+# SPDX-FileCopyrightText: 2022-2023 Alper Nebi Yasak <alpernebiyasak@gmail.com>
# SPDX-FileCopyrightText: 2023 Riku Viitanen <riku.viitanen@protonmail.com>
[ "x${DEBUG+set}" = 'xset' ] && set -v
@@ -66,8 +66,8 @@ main()
printf "WARNING!!!!!!! PLEASE READ:\n\n"
printf "DO NOT flash ROM images contained under elf/, because they lack"
- printf "payloads and will BRICK your machine. Please flash ROM images"
- printf "contained under bin/ instead. YOU HAVE BEEN WARNED.\n\n"
+ printf " payloads and will BRICK your machine. Please flash ROM images"
+ printf " contained under bin/ instead. YOU HAVE BEEN WARNED.\n\n"
}
check_target()
@@ -132,7 +132,8 @@ prepare_target()
cbfstool="cbutils/${tree}/cbfstool"
cbrom="${cbdir}/build/coreboot.rom"
- x_ ./update project trees -b coreboot utils ${tree}
+ [ -f "${cbfstool}" ] || \
+ x_ ./update project trees -b coreboot utils ${tree}
build_dependency_seabios
@@ -186,8 +187,8 @@ build_dependency_uboot()
x_ ./update project trees -b u-boot ${board}
ubdir="elf/u-boot/${board}/${uboot_config}"
ubootelf="${ubdir}/u-boot.elf"
- [ ! -f "${ubootelf}" ] && [ -f "${ubdir}/u-boot.bin" ] && \
- ubootelf="${ubdir}/u-boot.bin"
+ [ ! -f "${ubootelf}" ] && [ -f "${ubdir}/u-boot" ] && \
+ ubootelf="${ubdir}/u-boot"
[ -f "${ubootelf}" ] && return 0
err "Could not find u-boot build for board, ${board}"
}
@@ -368,7 +369,7 @@ mkUbootRom() {
_ubdir="elf/u-boot/${board}/${uboot_config}"
_ubootelf="${_ubdir}/u-boot.elf"
- [ -f "${_ubootelf}" ] || _ubootelf="${_ubdir}/u-boot.bin"
+ [ -f "${_ubootelf}" ] || _ubootelf="${_ubdir}/u-boot"
[ -f "${_ubootelf}" ] || err "mkUbootRom: ${board}: cant find u-boot"
tmprom=$(mktemp -t coreboot_rom.XXXXXXXXXX)