eclair-tf-m: Image for TF-M ECLAIR analysis
A copy of eclair-linaro with base image adjusted.
eclair-tf-m: Copy ECLAIR binary from eclair-linaro job
Where it's being put by tuxput bucket already. Apparently, doesn't make
to duplicate it on the bucket level, better to make such a copy.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Ic38294a65229a5456fae5a3f3aea38de8e6edcd9
diff --git a/eclair-tf-m/bin/forwardPorts b/eclair-tf-m/bin/forwardPorts
new file mode 100755
index 0000000..7b0a6a7
--- /dev/null
+++ b/eclair-tf-m/bin/forwardPorts
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -ex
+
+host=$(uname -n)
+socat "tcp-listen:${HASPLM_PORT},bind=${host},reuseaddr,fork" tcp:127.0.0.1:1947 > /dev/null 2>&1 &
+socat "tcp-listen:${ECLAIR_PORT},bind=${host},reuseaddr,fork" tcp:127.0.0.1:3786 > /dev/null 2>&1 &