diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-22 00:48:33 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-22 00:48:33 +0200 |
commit | 2e0c558064ad6c92624a0a826721a83321b227af (patch) | |
tree | 6a579d0f24e3b3de023bd3241092f0c89598e1fb /rbutil/mkzenboot/Makefile | |
parent | 5cfb148ae275993d6b9bc8d59355196c5f4f7dc1 (diff) | |
download | rockbox-2e0c558064ad6c92624a0a826721a83321b227af.tar.gz rockbox-2e0c558064ad6c92624a0a826721a83321b227af.zip |
Introduce rbutil/mkzenboot, a replacement for tools/mkzenboot
The old tools/mkzenboot has a number of problems: very hard to maintain,
poor integration with rbutil. Restart from scratch by recycling all the
crypto and descrambling code, rewrite the actual firmware modification part
to handle all scenarios in a much clearer way. The code is ready to be
integrated into Rockbox Utility, by using the very similar interface to
mkimxboot.
I copied all the keys from the old mkzenboot, so it can potentially support
the older Creative ports, but since this is untested, I prefer not do so
at the moment. However, I did add a "mixed" boot option to support the
dualboot style used in the older ports.
Change-Id: I80cfc48fa78187baa1b1692e8a30ec7137cea37b
Diffstat (limited to 'rbutil/mkzenboot/Makefile')
-rw-r--r-- | rbutil/mkzenboot/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/rbutil/mkzenboot/Makefile b/rbutil/mkzenboot/Makefile new file mode 100644 index 0000000000..019b8a669f --- /dev/null +++ b/rbutil/mkzenboot/Makefile | |||
@@ -0,0 +1,30 @@ | |||
1 | # __________ __ ___. | ||
2 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
3 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
4 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
5 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
6 | # \/ \/ \/ \/ \/ | ||
7 | |||
8 | # We use the HMAC-SHA1 code from tools/ | ||
9 | TOOLS_DIR=../../tools/ | ||
10 | CFLAGS += -Wall -I$(TOOLS_DIR) | ||
11 | CFLAGS += -std=c99 -g | ||
12 | LDOPTS += -lz | ||
13 | |||
14 | OUTPUT = mkzenboot | ||
15 | |||
16 | # inputs for lib | ||
17 | TOOLS_SOURCES = hmac-sha1.c | ||
18 | LIBSOURCES := dualboot.c mkzenboot.c md5.c utils.c \ | ||
19 | $(addprefix $(TOOLS_DIR),$(TOOLS_SOURCES)) | ||
20 | |||
21 | # inputs for binary only | ||
22 | SOURCES := $(LIBSOURCES) main.c | ||
23 | # dependencies for binary | ||
24 | EXTRADEPS := | ||
25 | |||
26 | include ../libtools.make | ||
27 | |||
28 | # explicit dependencies on dualboot.{c,h} and mkimxboot.h | ||
29 | $(OBJDIR)mkzenboot.o: dualboot.h dualboot.c mkzenboot.c mkzenboot.h | ||
30 | $(OBJDIR)main.o: dualboot.h dualboot.c main.c mkzenboot.h | ||