summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatryk Duda <pdk@semihalf.com>2023-05-08 18:02:20 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-08 18:08:44 +0000
commit1cef98f0913f36c4668bb7d74a03e701f6dfbebc (patch)
tree4ac1572a40728b818f7eae61b870b885c1b13c74
parent8dc42c6e8a66e3f4252069bc993cada6b58728c9 (diff)
downloadchrome-ec-1cef98f0913f36c4668bb7d74a03e701f6dfbebc.tar.gz
third_party: Link BoringSSL to device tests
EC hardware tests for FPMCU boards require BoringSSL, so link it to these tests. BUG=b:277029648 TEST=make tests -j8 BOARD=bloonchipper TEST=make tests -j8 BOARD=dartmonkey Change-Id: Ie4f05bc6b95d67f902ba87b0fa1366c5d92908fc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4513879 Tested-by: Patryk Duda <patrykd@google.com> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Commit-Queue: Patryk Duda <patrykd@google.com>
-rw-r--r--third_party/rules.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/third_party/rules.mk b/third_party/rules.mk
index 842343b16e..c5075cfd40 100644
--- a/third_party/rules.mk
+++ b/third_party/rules.mk
@@ -111,6 +111,9 @@ $(out)/RW/ec.RW.elf $(out)/RW/ec.RW_B.elf: $(BORINGSSL_OUTDIR)/libcrypto.a
$(out)/$(PROJECT).exe: LDFLAGS_EXTRA += $(BORINGSSL_LDFLAGS)
$(out)/$(PROJECT).exe: $(BORINGSSL_OUTDIR)/libcrypto.a
+# On-device tests.
+third-party-test-targets=$(foreach test,$(test-list-y),\
+ $(out)/RW/$(test).RW.elf $(out)/RO/$(test).RO.elf)
$(third-party-test-targets): LDFLAGS_EXTRA += $(BORINGSSL_LDFLAGS)
$(third-party-test-targets): $(BORINGSSL_OUTDIR)/libcrypto.a
endif # CONFIG_BORINGSSL_CRYPTO