summaryrefslogtreecommitdiffstats
path: root/utils/nwztools/upgtools/Makefile
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2020-07-21 15:15:10 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2020-10-11 13:08:03 +0200
commit1b5e82440549ab161e26863baa1bb06cc9f2aa64 (patch)
treebcc40634dcd7720de1a950174a9c1d2b2a291ce7 /utils/nwztools/upgtools/Makefile
parent1f338f70789fdb7d6bbd954cc1444f59a156e83c (diff)
downloadrockbox-1b5e824405.tar.gz
rockbox-1b5e824405.tar.bz2
rockbox-1b5e824405.zip
nwztool/upgtool: add support for compression
To decompress some output file(s), simply pass -z <idx> where idx is the index of the file to decompress, starting from 0. For example upgtool -e NW_WM_FW.UPG -o tmp/ -m nw-wm1a -z 6 -z 7 to decompress files 6 and 7. To compress file, use the same options: upgtool -c NW_WM_FW.UPG -m nw-wm1a -z 2 script.sh md5sum.txt system.img Change-Id: I1ef0b3e02c98e58154f1a959fb1ad70ad2ce6500
Diffstat (limited to 'utils/nwztools/upgtools/Makefile')
-rw-r--r--utils/nwztools/upgtools/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/nwztools/upgtools/Makefile b/utils/nwztools/upgtools/Makefile
index 287fe99c65..42b7a62e4c 100644
--- a/utils/nwztools/upgtools/Makefile
+++ b/utils/nwztools/upgtools/Makefile
@@ -31,7 +31,7 @@ endif
CXXFLAGS+=-g -Wall $(DEFINES)
CFLAGS+=-g -Wall -std=c99 $(DEFINES)
-LDLIBS+=-lpthread
+LDLIBS+=-lpthread -lz
BINS=upgtool$(EXE_EXT)