summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/lib.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 3de05c24..bf734f3a 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -245,3 +245,10 @@ vendor_checksum()
printf "Bad checksum for file: %s\n" "$2" 1>&2
rm -f "$2" || :
}
+
+cbfs()
+{
+ ccmd="add-payload" && [ $# -gt 3 ] && ccmd="add"
+ lzma="-c lzma" && [ $# -gt 3 ] && lzma="-t raw"
+ x_ "$cbfstool" "$1" $ccmd -f "$2" -n "$3" $lzma
+}