summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git-bigdata-wsl-arch@jaseg.de>2020-05-07 12:42:16 +0200
committerjaseg <git-bigdata-wsl-arch@jaseg.de>2020-05-07 12:42:16 +0200
commit5088ff3ae98f7d48743d59d1931f95fcbd0cf987 (patch)
treed47f0c9039615a26353d3421e74a071544d980d6
parentdb50711ba4a1f41f4082981bae58f213d48d96a1 (diff)
downloadmaster-thesis-5088ff3ae98f7d48743d59d1931f95fcbd0cf987.tar.gz
master-thesis-5088ff3ae98f7d48743d59d1931f95fcbd0cf987.tar.bz2
master-thesis-5088ff3ae98f7d48743d59d1931f95fcbd0cf987.zip
fw: make libsodium sha512 small
-rw-r--r--.gitmodules2
-rw-r--r--controller/fw/Makefile4
m---------controller/fw/libsodium0
3 files changed, 4 insertions, 2 deletions
diff --git a/.gitmodules b/.gitmodules
index c7c888f..d8f92a4 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -9,7 +9,7 @@
url = https://git.jaseg.net/bigdata/pub/safety-reset-cmsis.git
[submodule "controller/fw/libsodium"]
path = controller/fw/libsodium
- url = https://github.com/jedisct1/libsodium
+ url = git@git.jaseg.net:bigdata/pub/libsodium-safety-reset.git
[submodule "controller/fw/tinyaes"]
path = controller/fw/tinyaes
url = https://github.com/kokke/tiny-AES-c
diff --git a/controller/fw/Makefile b/controller/fw/Makefile
index c0f01d5..3aae9fb 100644
--- a/controller/fw/Makefile
+++ b/controller/fw/Makefile
@@ -299,7 +299,9 @@ $(BUILDDIR)/%.o: %.c
mkdir -p $(@D)
$(CC) $(COMMON_CFLAGS) $(CFLAGS) $(EXT_CFLAGS) -o $@ -c $<
-$(BUILDDIR)/libsodium/src/libsodium/.libs/libsodium.a:
+$(BUILDDIR)/src/crypto.o: $(BUILDDIR)/libsodium/src/libsodium/include/sodium/version.h
+
+$(BUILDDIR)/libsodium/src/libsodium/.libs/libsodium.a $(BUILDDIR)/libsodium/src/libsodium/include/sodium/version.h &:
mkdir -p $(BUILDDIR)/libsodium
cd $(BUILDDIR)/libsodium && CFLAGS="$(COMMON_CFLAGS) $(CFLAGS) -DDEV_MODE=1" $(LIBSODIUM_DIR_ABS)/configure --host=arm-none-eabi && $(MAKE) -j $(shell nproc)
diff --git a/controller/fw/libsodium b/controller/fw/libsodium
-Subproject afae623190f025e7cf2fb0222bfe796b69a3694
+Subproject 06b56e25342a95322c226e7531a5da73c757c67