From 703fe444312ad9087cddd322c00d15e5a2c9700f Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 26 Apr 2025 19:16:40 +0100 Subject: lib.sh: move cbfs() to rom.sh it is only ever used there, so move it there Signed-off-by: Leah Rowe --- include/lib.sh | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'include/lib.sh') diff --git a/include/lib.sh b/include/lib.sh index 34d8b8b9..dea015e0 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -118,15 +118,3 @@ check_defconfig() [ -f "$x" ] && printf "%s\n" "$x" && return 1 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 -} -- cgit v1.2.1