diff options
author | Jaeden Amero <jaeden.amero@arm.com> | 2018-10-25 17:37:00 +0100 |
---|---|---|
committer | Jaeden Amero <jaeden.amero@arm.com> | 2018-11-21 12:54:57 +0000 |
commit | 30b340a760031efe87e400f6a749dcce5125c038 (patch) | |
tree | 91e0eafd35a100854d80d2e9c1d4aaff34e6a853 /Makefile | |
parent | 4cb814e3a78054d5d22483085696e89bddbaa62e (diff) | |
download | mbedtls-30b340a760031efe87e400f6a749dcce5125c038.zip mbedtls-30b340a760031efe87e400f6a749dcce5125c038.tar.gz mbedtls-30b340a760031efe87e400f6a749dcce5125c038.tar.bz2 |
crypto: Add mbedtls-psa as a submodule
mbedtls-psa contains an implementation of libmbedcrypto, including the PSA
Crypto API.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -28,7 +28,13 @@ install: no_test mkdir -p $(DESTDIR)/lib cp -RP library/libmbedtls.* $(DESTDIR)/lib cp -RP library/libmbedx509.* $(DESTDIR)/lib +ifdef USE_CRYPTO_SUBMODULE + mkdir -p $(DESTDIR)/include/psa + cp -rp crypto/include/psa $(DESTDIR)/include + cp -RP crypto/library/libmbedcrypto.* $(DESTDIR)/lib +else cp -RP library/libmbedcrypto.* $(DESTDIR)/lib +endif mkdir -p $(DESTDIR)/bin for p in programs/*/* ; do \ @@ -44,6 +50,9 @@ uninstall: rm -f $(DESTDIR)/lib/libmbedtls.* rm -f $(DESTDIR)/lib/libmbedx509.* rm -f $(DESTDIR)/lib/libmbedcrypto.* +ifdef USE_CRYPTO_SUBMODULE + $(MAKE) -C crypto uninstall +endif for p in programs/*/* ; do \ if [ -x $$p ] && [ ! -d $$p ] ; \ @@ -85,6 +94,9 @@ clean: $(MAKE) -C library clean $(MAKE) -C programs clean $(MAKE) -C tests clean +ifdef USE_CRYPTO_SUBMODULE + $(MAKE) -C crypto clean +endif ifndef WINDOWS find . \( -name \*.gcno -o -name \*.gcda -o -name \*.info \) -exec rm {} + endif |