Skip to content

Commit 7dc989a

Browse files
author
itayzafrir
committed
crypto: Update crypto importer
Update crypto importer so it copies crypto_types.h only for non-secure devices. For secure devices, there will be different implementations (between client and server) for the types defined in crypto_types.h for IPC usage.
1 parent 9553c23 commit 7dc989a

File tree

1 file changed

+2
-1
lines changed
  • features/mbedtls/mbed-crypto/importer

1 file changed

+2
-1
lines changed

features/mbedtls/mbed-crypto/importer/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ rsync:
6464
# Copying Mbed Crypto headers to includes...
6565
rm -rf $(TARGET_INC)
6666
mkdir -p $(TARGET_INC)
67-
rsync -a --delete --exclude='crypto_struct.h' $(CRYPTO_API) $(TARGET_INC)/
67+
rsync -a --delete --exclude='crypto_struct.h' --exclude='crypto_types.h' $(CRYPTO_API) $(TARGET_INC)/
6868
#
6969
# Copying licenses
7070
cp $(CRYPTO_DIR)/LICENSE $(TARGET_PREFIX)/
@@ -79,6 +79,7 @@ rsync:
7979
mkdir -p $(TARGET_NSPE)
8080

8181
rsync -a --delete $(CRYPTO_API)/crypto_struct.h $(TARGET_NSPE)/
82+
rsync -a --delete $(CRYPTO_API)/crypto_types.h $(TARGET_NSPE)/
8283
rsync -a --delete $(CRYPTO_API)/crypto_struct.h $(TARGET_SPE)/crypto_struct_spe.h
8384
rsync -a --delete $(CRYPTO_DIR)/library/psa_*.c $(TARGET_SRV_IMPL)/
8485
rsync -a --delete $(CRYPTO_DIR)/library/psa_*.h $(TARGET_SRV_IMPL)/

0 commit comments

Comments
 (0)