Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 1 | global-incdirs-y += include |
| 2 | srcs-y += aes_impl.c |
| 3 | srcs-y += aes_taf.c |
| 4 | srcs-y += cryp_taf.c |
Joakim Bech | 83a30ca | 2019-05-29 11:22:27 +0200 | [diff] [blame] | 5 | srcs-y += derive_key_taf.c |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 6 | srcs-y += sha2_impl.c |
| 7 | srcs-y += sha2_taf.c |
Igor Opaniuk | 7ddaa78 | 2018-05-25 15:14:05 +0300 | [diff] [blame] | 8 | srcs-$(CFG_SYSTEM_PTA) += seed_rng_taf.c |
Pascal Brand | c639ac8 | 2015-07-02 08:53:34 +0200 | [diff] [blame] | 9 | srcs-y += ta_entry.c |
Jens Wiklander | e9babd9 | 2018-04-20 11:20:59 +0200 | [diff] [blame] | 10 | srcs-$(CFG_TA_MBEDTLS) += mbedtls_taf.c |
Jens Wiklander | 28dfdc4 | 2018-11-15 00:29:08 +0100 | [diff] [blame] | 11 | srcs-y += arith_taf.c |
| 12 | srcs-y += handle.c |
Jens Wiklander | da0208e | 2018-04-30 09:34:01 +0200 | [diff] [blame] | 13 | |
| 14 | CRYPT_FILE_TO_C_SCRIPT = ../../scripts/file_to_c.py |
| 15 | CRYPT_CA_CRT = ../../certs/ca.crt |
| 16 | CRYPT_MID_CRT = ../../certs/mid.crt |
| 17 | CRYPT_MID_KEY = ../../certs/mid.key |
| 18 | |
| 19 | define crypt_embed_file |
| 20 | # 1 prefix/name |
| 21 | # 2 infile |
| 22 | gensrcs-y += embed-file-$(1) |
| 23 | produce-embed-file-$(1) = $(1).c |
| 24 | depends-embed-file-$(1) := $(FILE_TO_C_SCRIPT) $(2) |
| 25 | recipe-embed-file-$(1) := $(CRYPT_FILE_TO_C_SCRIPT) --inf $(2) --out $(sub-dir-out)/$(1).c --name $(1) |
| 26 | cleanfiles += $(sub-dir-out)/$(1).c |
| 27 | endef |
| 28 | |
| 29 | $(eval $(call crypt_embed_file,ca_crt,../../cert/ca.crt)) |
| 30 | $(eval $(call crypt_embed_file,mid_crt,../../cert/mid.crt)) |
| 31 | $(eval $(call crypt_embed_file,mid_key,../../cert/mid.key)) |