diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2017-01-03 13:56:48 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-01-16 19:59:26 +0100 |
commit | 8b3f5a8ad7434850804a4a664d2b07c6ffa9b1c7 (patch) | |
tree | b07d7825f81f7fae599b85c7a21f3f5b8d855576 /rbutil/mkimxboot | |
parent | 5ff3a3a98f23bb1a0dd1fb97e074ddb80337ae27 (diff) | |
download | rockbox-8b3f5a8ad7434850804a4a664d2b07c6ffa9b1c7.tar.gz rockbox-8b3f5a8ad7434850804a4a664d2b07c6ffa9b1c7.zip |
imxtools/sbtools: switch AES implementation to Crypto++
Instead of having our own copy of the AES code, use a good library to do that.
Crypto++ is well-maintained, supports a lot of ciphers, works on many OSes, and
is optimized for many architectures.
Change-Id: I7d7d24b47993206d7338c5f9bac8bbdd3915a667
Diffstat (limited to 'rbutil/mkimxboot')
-rw-r--r-- | rbutil/mkimxboot/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rbutil/mkimxboot/Makefile b/rbutil/mkimxboot/Makefile index 7441e162c2..e635f64103 100644 --- a/rbutil/mkimxboot/Makefile +++ b/rbutil/mkimxboot/Makefile | |||
@@ -10,11 +10,12 @@ IMXTOOLS_DIR=../../utils/imxtools/sbtools/ | |||
10 | CFLAGS += -I$(IMXTOOLS_DIR) -Wall | 10 | CFLAGS += -I$(IMXTOOLS_DIR) -Wall |
11 | # std=gnu99 is required by MinGW on Windows (c99 is sufficient for Linux / MXE) | 11 | # std=gnu99 is required by MinGW on Windows (c99 is sufficient for Linux / MXE) |
12 | CFLAGS += -std=gnu99 -g -O3 | 12 | CFLAGS += -std=gnu99 -g -O3 |
13 | LDFLAGS += -lcrypto++ | ||
13 | 14 | ||
14 | OUTPUT = mkimxboot | 15 | OUTPUT = mkimxboot |
15 | 16 | ||
16 | # inputs for lib | 17 | # inputs for lib |
17 | IMXTOOLS_SOURCES = misc.c sb.c crypto.cpp crc.c aes128.c sha1.c elf.c | 18 | IMXTOOLS_SOURCES = misc.c sb.c crypto.cpp crc.c sha1.c elf.c |
18 | LIBSOURCES := dualboot.c mkimxboot.c md5.c \ | 19 | LIBSOURCES := dualboot.c mkimxboot.c md5.c \ |
19 | $(addprefix $(IMXTOOLS_DIR),$(IMXTOOLS_SOURCES)) | 20 | $(addprefix $(IMXTOOLS_DIR),$(IMXTOOLS_SOURCES)) |
20 | # inputs for binary only | 21 | # inputs for binary only |