Skip to content

Commit 51f0f49

Browse files
committed
[cov] Reduce coverage RAM usage from some test libraries
Change-Id: I8975cccb7d2a300e4e7cca67291a003e1023cada Signed-off-by: Yi-Hsuan Deng <yhdeng@google.com>
1 parent 915033e commit 51f0f49

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

  • sw/device

sw/device/lib/dif/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ cc_library(
104104
hdrs = [
105105
"dif_alert_handler.h",
106106
],
107+
# FIXME: Instrumenting alert_handler uses a large amount of RAM.
108+
features = ["-coverage"],
107109
deps = [
108110
":base",
109111
"//hw/top_earlgrey:alert_handler_c_regs",

sw/device/tests/crypto/cryptotest/json/BUILD

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ cc_library(
88
name = "commands",
99
srcs = ["commands.c"],
1010
hdrs = ["commands.h"],
11+
features = ["-coverage"],
1112
deps = [
1213
":aes_commands",
1314
":aes_gcm_commands",
@@ -26,68 +27,78 @@ cc_library(
2627
name = "aes_commands",
2728
srcs = ["aes_commands.c"],
2829
hdrs = ["aes_commands.h"],
30+
features = ["-coverage"],
2931
deps = ["//sw/device/lib/ujson"],
3032
)
3133

3234
cc_library(
3335
name = "aes_gcm_commands",
3436
srcs = ["aes_gcm_commands.c"],
3537
hdrs = ["aes_gcm_commands.h"],
38+
features = ["-coverage"],
3639
deps = ["//sw/device/lib/ujson"],
3740
)
3841

3942
cc_library(
4043
name = "drbg_commands",
4144
srcs = ["drbg_commands.c"],
4245
hdrs = ["drbg_commands.h"],
46+
features = ["-coverage"],
4347
deps = ["//sw/device/lib/ujson"],
4448
)
4549

4650
cc_library(
4751
name = "ecdsa_commands",
4852
srcs = ["ecdsa_commands.c"],
4953
hdrs = ["ecdsa_commands.h"],
54+
features = ["-coverage"],
5055
deps = ["//sw/device/lib/ujson"],
5156
)
5257

5358
cc_library(
5459
name = "hmac_commands",
5560
srcs = ["hmac_commands.c"],
5661
hdrs = ["hmac_commands.h"],
62+
features = ["-coverage"],
5763
deps = ["//sw/device/lib/ujson"],
5864
)
5965

6066
cc_library(
6167
name = "hash_commands",
6268
srcs = ["hash_commands.c"],
6369
hdrs = ["hash_commands.h"],
70+
features = ["-coverage"],
6471
deps = ["//sw/device/lib/ujson"],
6572
)
6673

6774
cc_library(
6875
name = "ecdh_commands",
6976
srcs = ["ecdh_commands.c"],
7077
hdrs = ["ecdh_commands.h"],
78+
features = ["-coverage"],
7179
deps = ["//sw/device/lib/ujson"],
7280
)
7381

7482
cc_library(
7583
name = "kmac_commands",
7684
srcs = ["kmac_commands.c"],
7785
hdrs = ["kmac_commands.h"],
86+
features = ["-coverage"],
7887
deps = ["//sw/device/lib/ujson"],
7988
)
8089

8190
cc_library(
8291
name = "rsa_commands",
8392
srcs = ["rsa_commands.c"],
8493
hdrs = ["rsa_commands.h"],
94+
features = ["-coverage"],
8595
deps = ["//sw/device/lib/ujson"],
8696
)
8797

8898
cc_library(
8999
name = "sphincsplus_commands",
90100
srcs = ["sphincsplus_commands.c"],
91101
hdrs = ["sphincsplus_commands.h"],
102+
features = ["-coverage"],
92103
deps = ["//sw/device/lib/ujson"],
93104
)

0 commit comments

Comments
 (0)