diff options
| author | Leah Rowe <leah@libreboot.org> | 2025-05-05 17:53:02 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2025-05-05 17:53:43 +0100 | 
| commit | 2be8d1c7982a37cb4e8e57b302c4039be4bc5bad (patch) | |
| tree | e804fbb70f7d76dc365e95c3fe424f78a4549b23 | |
| parent | 89a8cd4936a7dd24eb4c2db8a484b858ed20dd88 (diff) | |
rom.sh: specifically check keymaps in cprom()
"not seauboot" is a valid check at present, but if
i start supporting other arguments in the future,
this code would have to change.
therefore, i change it in advance, on that theory.
this new check is more technically correct. these
lines are triggered when inserting grub keymaps.
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | include/rom.sh | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/include/rom.sh b/include/rom.sh index 8f605e3a..a92348bf 100644 --- a/include/rom.sh +++ b/include/rom.sh @@ -243,11 +243,11 @@ cprom()  {  	tmpnew=""; newrom="bin/$target/${pname}_${target}_$initmode.rom"  	[ -n "$displaymode" ] && newrom="${newrom%.rom}_$displaymode.rom" -	[ $# -gt 0 ] && [ "$1" != "seauboot" ] && tmpnew="${1##*/}" && \ +	[ $# -gt 0 ] && [ "${1%.gkb}" != "$1" ] && tmpnew="${1##*/}" && \  	    newrom="${newrom%.rom}_${tmpnew%.gkb}.rom"  	x_ mkdir -p "bin/$target" -	x_ cp "$tmprom" "$newrom" && [ $# -gt 0 ] && [ "$1" != "seauboot" ] \ +	x_ cp "$tmprom" "$newrom" && [ $# -gt 0 ] && [ "${1%.gkb}" != "$1" ] \  	    && cbfs "$newrom" "$grubdata/keymap/$tmpnew" keymap.gkb raw  	[ $# -gt 0 ] && [ "$1" = "seauboot" ] && \  	    cbfs "$newrom" "$grubdata/bootorder_uboot" bootorder raw; : | 
