roms: build u-boot *before* checking ubootelf
the current check is flawed, because if u-boot doesn't exist, but a given build would be the file verified by the first check, the check would still fail even after then building u-boot. building it first will make this check pass, under such a condition. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
parent
57b68302c7
commit
5907022703
1 changed files with 1 additions and 1 deletions
|
@ -141,9 +141,9 @@ add_payloads()
|
|||
[ "$payload_uboot" = "y" ] || return 0
|
||||
|
||||
# add u-boot payload
|
||||
x_ ./update trees -b u-boot $board
|
||||
ubdir="elf/u-boot/$board/$uboot_config"; ubootelf="$ubdir/u-boot.elf" \
|
||||
&& [ ! -f "$ubootelf" ] && ubootelf="$ubdir/u-boot"
|
||||
x_ ./update trees -b u-boot $board
|
||||
[ -f "$ubootelf" ] || $err "$board: Can't find u-boot"
|
||||
|
||||
cbfs "$tmprom" "$ubootelf" "fallback/payload"
|
||||
|
|
Loading…
Reference in a new issue