diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-25 00:12:18 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-25 00:12:18 +0100 |
commit | 4e48fa808ec123962c0203282742f9ce641a40d3 (patch) | |
tree | c964404c63110a8e89fb4d65e7c19c39d3df8e23 /script/roms | |
parent | b4fb2510085dc454ec39fcc55619bd38173776ce (diff) |
lib.sh: simplify use of environment variables
don't have a separate variable for them.
just export them directly and use them directly.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/roms')
-rwxr-xr-x | script/roms | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/roms b/script/roms index 5a315202..d5eedd6a 100755 --- a/script/roms +++ b/script/roms @@ -59,7 +59,7 @@ main() [ -d "bin/$board" ] && targets="$targets, $x"; continue done - [ -n "$ser" ] && [ "$xbmk_release" = "y" ] && \ + [ -n "$ser" ] && [ "$XBMK_RELEASE" = "y" ] && \ mkrom_tarball "bin/serprog_$ser" && return 0 [ -z "$ser" ] && [ -z "$targets" ] && $err "No images were compiled" @@ -96,7 +96,7 @@ configure_target() x_ ./update trees -b coreboot $board [ -z "$tree" ] && $err "$board: tree not defined" - [ "$xbmk_release" = "y" ] && [ "$release" = "n" ] && return 1 + [ "$XBMK_RELEASE" = "y" ] && [ "$release" = "n" ] && return 1 [ "$board" = "$tree" ] && return 1 cbdir="src/coreboot/$tree" @@ -186,7 +186,7 @@ add_seabios_payload() cprom() { x_ mkdir -p "${1%/*}"; x_ cp "$tmprom" "$1" - [ "$xbmk_release" = "y" ] && mksha512sum "$1" "vendorhashes" && \ + [ "$XBMK_RELEASE" = "y" ] && mksha512sum "$1" "vendorhashes" && \ x_ ./vendor inject -r "$1" -b "$board" -n nuke; return 0 } |