summaryrefslogtreecommitdiff
path: root/include/rom.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/rom.sh')
-rw-r--r--include/rom.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/rom.sh b/include/rom.sh
index 710df853..b1698ee1 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -277,6 +277,18 @@ cprom()
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()
{
[ "$target" = "$tree" ] && return 0