summaryrefslogtreecommitdiff
path: root/utils/samsungtools/Makefile
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-11-29 17:29:13 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-11-29 17:30:54 +0100
commitd66c16749a5c07aadcd0eb97b9340d7fa5ea26b0 (patch)
tree4c1b30ca5073cf2f6f7a227715fca557fbf39999 /utils/samsungtools/Makefile
parentee36a396cd1619585a83803630db2d79b6cbefbd (diff)
downloadrockbox-d66c16749a5c07aadcd0eb97b9340d7fa5ea26b0.zip
rockbox-d66c16749a5c07aadcd0eb97b9340d7fa5ea26b0.tar.gz
rockbox-d66c16749a5c07aadcd0eb97b9340d7fa5ea26b0.tar.bz2
rockbox-d66c16749a5c07aadcd0eb97b9340d7fa5ea26b0.tar.xz
Introduce samsungtools to decrypt samsung firmware
Samsung provides many firmware upgrade in the format of a .dat file, at least for nearly all YP's (checked for Q2, R0, T10, Z5). This is a simple cyclic xor which a fixed key, a md5 sum and a header specifying the model/version/region. Change-Id: Ib0461a74196383189fd2d8162da444a85a229c60
Diffstat (limited to 'utils/samsungtools/Makefile')
-rw-r--r--utils/samsungtools/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/samsungtools/Makefile b/utils/samsungtools/Makefile
new file mode 100644
index 0000000..97af8bb
--- /dev/null
+++ b/utils/samsungtools/Makefile
@@ -0,0 +1,17 @@
+DEFINES=
+CC=gcc
+LD=gcc
+CFLAGS=-g -std=c99 -W -Wall $(DEFINES) `pkg-config --cflags openssl`
+LDFLAGS=`pkg-config --libs openssl`
+BINS=fwdecrypt
+
+all: $(BINS)
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+fwdecrypt: fwdecrypt.o samsung.o
+ $(LD) -o $@ $^ $(LDFLAGS)
+
+clean:
+ rm -fr *.o $(BINS)