summaryrefslogtreecommitdiff
path: root/resources/scripts/build/boot/roms_helper
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-07-17 08:20:02 +0100
committerLeah Rowe <leah@libreboot.org>2023-07-17 08:20:02 +0100
commit7c90a4077fa1038394e3d470268ea6e509c2d734 (patch)
tree9d0d3c7b8549084bba84cfde4ce1bc0d85993461 /resources/scripts/build/boot/roms_helper
parentd918139f36fd01ae1fae85a3fab89e6a7924bede (diff)
build/boot/roms mkUBootRoms: initialise variables
they were outside the scope, outside of the if statements. in some shells, this is ok. we use "sh" so the user could have any shell. be a bit nicer to the more asininely technically correct sh implementations out there Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources/scripts/build/boot/roms_helper')
-rwxr-xr-xresources/scripts/build/boot/roms_helper3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/scripts/build/boot/roms_helper b/resources/scripts/build/boot/roms_helper
index 8e1655a5..48ba85ea 100755
--- a/resources/scripts/build/boot/roms_helper
+++ b/resources/scripts/build/boot/roms_helper
@@ -487,6 +487,9 @@ mkUbootRom() {
target_uboot_config="${3}"
cbfstool_path="${4}"
+ target_ubootelf=""
+ target_ubdir=""
+
if [ "${target_uboot_config}" = "default" ]; then
target_ubdir="payload/u-boot/${board}"
else