lib.sh: move cbfs() to rom.sh
it is only ever used there, so move it there Signed-off-by: Leah Rowe <leah@libreboot.org>25.04_branch
parent
a16d9f35a2
commit
7943fab580
|
@ -118,15 +118,3 @@ check_defconfig()
|
||||||
[ -f "$x" ] && printf "%s\n" "$x" && return 1
|
[ -f "$x" ] && printf "%s\n" "$x" && return 1
|
||||||
done; :
|
done; :
|
||||||
}
|
}
|
||||||
|
|
||||||
cbfs()
|
|
||||||
{
|
|
||||||
ccmd="add-payload" && [ $# -gt 3 ] && [ $# -lt 5 ] && ccmd="add"
|
|
||||||
lzma="-c lzma" && [ $# -gt 3 ] && [ $# -lt 5 ] && lzma="-t $4"
|
|
||||||
|
|
||||||
[ $# -gt 4 ] && [ "$5" = "0x1110000" ] && \
|
|
||||||
ccmd="add-flat-binary" && \
|
|
||||||
lzma="-c lzma -l 0x1110000 -e 0x1110000"
|
|
||||||
|
|
||||||
x_ "$cbfstool" "$1" $ccmd -f "$2" -n "$3" $lzma
|
|
||||||
}
|
|
||||||
|
|
|
@ -275,6 +275,18 @@ cprom()
|
||||||
cbfs "$newrom" "config/data/grub/bootorder_uboot" bootorder raw; :
|
cbfs "$newrom" "config/data/grub/bootorder_uboot" bootorder raw; :
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cbfs()
|
||||||
|
{
|
||||||
|
ccmd="add-payload" && [ $# -gt 3 ] && [ $# -lt 5 ] && ccmd="add"
|
||||||
|
lzma="-c lzma" && [ $# -gt 3 ] && [ $# -lt 5 ] && lzma="-t $4"
|
||||||
|
|
||||||
|
[ $# -gt 4 ] && [ "$5" = "0x1110000" ] && \
|
||||||
|
ccmd="add-flat-binary" && \
|
||||||
|
lzma="-c lzma -l 0x1110000 -e 0x1110000"
|
||||||
|
|
||||||
|
x_ "$cbfstool" "$1" $ccmd -f "$2" -n "$3" $lzma
|
||||||
|
}
|
||||||
|
|
||||||
mkcoreboottar()
|
mkcoreboottar()
|
||||||
{
|
{
|
||||||
[ "$target" = "$tree" ] && return 0
|
[ "$target" = "$tree" ] && return 0
|
||||||
|
|
Loading…
Reference in New Issue